mirror of
https://github.com/charmbracelet/gum
synced 2024-05-20 23:26:43 +02:00
feat(choose): use home/end to go to first/last option
This commit is contained in:
parent
ed52291b33
commit
4b998515fd
|
@ -100,10 +100,10 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
case "left", "h", "ctrl+b":
|
||||
m.index = clamp(m.index-m.height, 0, len(m.items)-1)
|
||||
m.paginator.PrevPage()
|
||||
case "G":
|
||||
case "G", "end":
|
||||
m.index = len(m.items) - 1
|
||||
m.paginator.Page = m.paginator.TotalPages - 1
|
||||
case "g":
|
||||
case "g", "home":
|
||||
m.index = 0
|
||||
m.paginator.Page = 0
|
||||
case "a":
|
||||
|
|
Loading…
Reference in a new issue