fix: add viewport keymap help

This commit is contained in:
Ayman Bagabas 2022-04-28 16:09:31 -04:00
parent f5ac64216b
commit c214837839

View File

@ -22,21 +22,27 @@ func DefaultKeyMap() KeyMap {
return KeyMap{ return KeyMap{
PageDown: key.NewBinding( PageDown: key.NewBinding(
key.WithKeys("pgdown", spacebar, "f"), key.WithKeys("pgdown", spacebar, "f"),
key.WithHelp("f/pgdn", "page down"),
), ),
PageUp: key.NewBinding( PageUp: key.NewBinding(
key.WithKeys("pgup", "b"), key.WithKeys("pgup", "b"),
key.WithHelp("b/pgup", "page up"),
), ),
HalfPageUp: key.NewBinding( HalfPageUp: key.NewBinding(
key.WithKeys("u", "ctrl+u"), key.WithKeys("u", "ctrl+u"),
key.WithHelp("ctrl+u/u", "half page up"),
), ),
HalfPageDown: key.NewBinding( HalfPageDown: key.NewBinding(
key.WithKeys("d", "ctrl+d"), key.WithKeys("d", "ctrl+d"),
key.WithHelp("ctrl+d/d", "half page down"),
), ),
Up: key.NewBinding( Up: key.NewBinding(
key.WithKeys("up", "k"), key.WithKeys("up", "k"),
key.WithHelp("↑/k", "up"),
), ),
Down: key.NewBinding( Down: key.NewBinding(
key.WithKeys("down", "j"), key.WithKeys("down", "j"),
key.WithHelp("↓/j", "down"),
), ),
} }
} }