diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 16:28:35 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-29 11:37:29 +1100 |
commit | 624ae45ebb3f54499a25c4eba0844fa971277c34 (patch) | |
tree | ca20f93742858b2b4231d083e5b6abdab61d69ba /pkg/gui/keybindings.go | |
parent | 2756b82f5733c2099c43279ebb1a962101411142 (diff) |
allow scoped mode where the commits/reflog/stash panels are scoped to a file
WIP
restrict certain actions in scoped mode
WIP
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index accb30ede..6d5a54bae 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -938,7 +938,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { ViewName: "information", Key: gocui.MouseLeft, Modifier: gocui.ModNone, - Handler: gui.handleDonate, + Handler: gui.handleInfoClick, }, { ViewName: "commitFiles", @@ -983,6 +983,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Description: gui.Tr.SLocalize("enterFile"), }, { + ViewName: "", + Key: gui.getKey("universal.scopingMenu"), + Modifier: gocui.ModNone, + Handler: gui.handleCreateScopingMenuPanel, + Description: gui.Tr.SLocalize("openScopingMenu"), + }, + { ViewName: "secondary", Key: gocui.MouseWheelUp, Modifier: gocui.ModNone, |