summaryrefslogtreecommitdiff
path: root/internal/client/ui
diff options
context:
space:
mode:
Diffstat (limited to 'internal/client/ui')
-rw-r--r--internal/client/ui/core/chat/chat.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/client/ui/core/chat/chat.go b/internal/client/ui/core/chat/chat.go
index b3f6dec..f2b0362 100644
--- a/internal/client/ui/core/chat/chat.go
+++ b/internal/client/ui/core/chat/chat.go
@@ -170,6 +170,16 @@ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) {
m.Scroll(m.messagesHeight / 2)
case "ctrl+d":
m.Scroll(-m.messagesHeight / 2)
+ case "g":
+ // HACK: hacky way to scroll to the top
+ // Also for the first time a user scrolls there will be a visual
+ // glitch that doesn't show the top message being selected
+ m.Scroll(10000) // Large numbers can slow this!!!!
+ case "G":
+ fallthrough
+ case "enter":
+ m.offset = SnapToBottom
+ m.index = -1
}
}