feat(choose): use home/end to go to first/last option

This commit is contained in:
Maas Lalani 2023-07-25 12:28:02 -04:00
parent ed52291b33
commit 4b998515fd
No known key found for this signature in database
GPG key ID: 5A6ED5CBF1A0A000

View file

@ -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":