Browse Source

Add 'j k G g' shortcuts for moving inside list

merge-requests/2/head
Tryffel 2 years ago
parent
commit
9347d1b2c8
  1. 9
      list.go

9
list.go

@ -936,6 +936,15 @@ func (l *List) InputHandler() func(event *tcell.EventKey, setFocus func(p Primit
}
}
if !found {
if ch == 'j' {
l.transform(TransformNextItem)
} else if ch == 'k' {
l.transform(TransformPreviousItem)
} else if ch == 'g' {
l.transform(TransformFirstItem)
} else if ch == 'G' {
l.transform(TransformLastItem)
}
break
}
}

Loading…
Cancel
Save