feat(pager): use home/end to go to top/bottom (#548)

This commit is contained in:
Zimo Li 2024-04-30 12:40:26 -04:00 committed by GitHub
parent 7ad8d1b37b
commit ed0b62f7e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,9 +120,9 @@ func (m model) KeyHandler(key tea.KeyMsg) (model, func() tea.Msg) {
}
} else {
switch key.String() {
case "g":
case "g", "home":
m.viewport.GotoTop()
case "G":
case "G", "end":
m.viewport.GotoBottom()
case "/":
m.search.Begin()