diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-03-12 21:43:56 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-04-07 17:15:01 +1000 |
commit | 55538a36959739e07c4f1146571e27093f2b45a0 (patch) | |
tree | 811cafcbd534657fea823d16a15152abe410cb0b /pkg/gui/keybindings.go | |
parent | 878a15aff40639eb69cca19876da74a1ae8bbcc4 (diff) |
support custom commands
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 7397aa8d2..0387b6028 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -239,6 +239,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleGitFetch, Description: gui.Tr.SLocalize("fetch"), }, { + ViewName: "files", + Key: 'X', + Modifier: gocui.ModNone, + Handler: gui.handleCustomCommand, + Description: gui.Tr.SLocalize("executeCustomCommand"), + }, { ViewName: "branches", Key: gocui.KeySpace, Modifier: gocui.ModNone, |