Skip to content

Commit

Permalink
fix: add viewport keymap help
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Apr 29, 2022
1 parent f5ac642 commit c214837
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions viewport/keymap.go
Expand Up @@ -22,21 +22,27 @@ func DefaultKeyMap() KeyMap {
return KeyMap{
PageDown: key.NewBinding(
key.WithKeys("pgdown", spacebar, "f"),
key.WithHelp("f/pgdn", "page down"),
),
PageUp: key.NewBinding(
key.WithKeys("pgup", "b"),
key.WithHelp("b/pgup", "page up"),
),
HalfPageUp: key.NewBinding(
key.WithKeys("u", "ctrl+u"),
key.WithHelp("ctrl+u/u", "half page up"),
),
HalfPageDown: key.NewBinding(
key.WithKeys("d", "ctrl+d"),
key.WithHelp("ctrl+d/d", "half page down"),
),
Up: key.NewBinding(
key.WithKeys("up", "k"),
key.WithHelp("↑/k", "up"),
),
Down: key.NewBinding(
key.WithKeys("down", "j"),
key.WithHelp("↓/j", "down"),
),
}
}

0 comments on commit c214837

Please sign in to comment.