diff options
Diffstat (limited to 'pkg/gui/keybindings.go')
| -rw-r--r-- | pkg/gui/keybindings.go | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 5905f2f..a388b51 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -193,7 +193,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: gocui.KeyArrowUp, Modifier: gocui.ModNone, - Handler: gui.commitCursorUp, + Handler: gui.fastCursorUp, Display: "↑", Description: "Page up", Vital: true, @@ -201,7 +201,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: gocui.KeyArrowDown, Modifier: gocui.ModNone, - Handler: gui.commitCursorDown, + Handler: gui.fastCursorDown, Display: "↓", Description: "Page down", Vital: true, @@ -209,7 +209,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: 'k', Modifier: gocui.ModNone, - Handler: gui.commitCursorUp, + Handler: gui.fastCursorUp, Display: "k", Description: "Page up", Vital: false, @@ -217,7 +217,7 @@ func (gui *Gui) generateKeybindings() error { View: commitDiffViewFeature.Name, Key: 'j', Modifier: gocui.ModNone, - Handler: gui.commitCursorDown, + Handler: gui.fastCursorDown, Display: "j", Description: "Page down", Vital: false, @@ -230,6 +230,38 @@ func (gui *Gui) generateKeybindings() error { Description: "close/cancel", Vital: true, }, { + View: cheatSheetViewFeature.Name, + Key: gocui.KeyArrowUp, + Modifier: gocui.ModNone, + Handler: gui.fastCursorUp, + Display: "↑", + Description: "Up", + Vital: true, + }, { + View: cheatSheetViewFeature.Name, + Key: gocui.KeyArrowDown, + Modifier: gocui.ModNone, + Handler: gui.fastCursorDown, + Display: "↓", + Description: "Down", + Vital: true, + }, { + View: cheatSheetViewFeature.Name, + Key: 'k', + Modifier: gocui.ModNone, + Handler: gui.fastCursorUp, + Display: "k", + Description: "Up", + Vital: false, + }, { + View: cheatSheetViewFeature.Name, + Key: 'j', + Modifier: gocui.ModNone, + Handler: gui.fastCursorDown, + Display: "j", + Description: "Down", + Vital: false, + }, { View: errorViewFeature.Name, Key: 'c', Modifier: gocui.ModNone, |
