diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 15:01:49 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 17:07:49 +1000 |
commit | 393ce0586056836a48d9122157991d0800afb2f5 (patch) | |
tree | baf2eb58c456388a0cd92fddfde7e53087d3b63a /pkg/gui/keybindings.go | |
parent | cf78b86cb5eae4c502a747238aba983bf9eb298f (diff) |
allow focusing on command log view
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index a31b47446..4e2f8b26e 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1719,6 +1719,52 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Key: gocui.MouseWheelDown, Handler: gui.scrollDownExtra, }, + { + ViewName: "extras", + Key: gui.getKey(config.Universal.ExtrasMenu), + Handler: gui.handleCreateExtrasMenuPanel, + Description: gui.Tr.LcOpenExtrasMenu, + OpensMenu: true, + }, + { + ViewName: "extras", + Tag: "navigation", + Contexts: []string{string(COMMAND_LOG_CONTEXT_KEY)}, + Key: gui.getKey(config.Universal.PrevItemAlt), + Modifier: gocui.ModNone, + Handler: gui.scrollUpExtra, + }, + { + ViewName: "extras", + Tag: "navigation", + Contexts: []string{string(COMMAND_LOG_CONTEXT_KEY)}, + Key: gui.getKey(config.Universal.PrevItem), + Modifier: gocui.ModNone, + Handler: gui.scrollUpExtra, + }, + { + ViewName: "extras", + Tag: "navigation", + Contexts: []string{string(COMMAND_LOG_CONTEXT_KEY)}, + Key: gui.getKey(config.Universal.NextItem), + Modifier: gocui.ModNone, + Handler: gui.scrollDownExtra, + }, + { + ViewName: "extras", + Tag: "navigation", + Contexts: []string{string(COMMAND_LOG_CONTEXT_KEY)}, + Key: gui.getKey(config.Universal.NextItemAlt), + Modifier: gocui.ModNone, + Handler: gui.scrollDownExtra, + }, + { + ViewName: "extras", + Tag: "navigation", + Key: gocui.MouseLeft, + Modifier: gocui.ModNone, + Handler: gui.handleFocusCommandLog, + }, } for _, viewName := range []string{"status", "branches", "files", "commits", "commitFiles", "stash", "menu"} { |