summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-15 10:58:29 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-15 11:41:37 +1000
commit291a8e4de0f5d5557cf6fbd7b5b6b9d42bcaa16e (patch)
tree7f4cca6efd1c11fbccf18e835d8147f30422a0e3 /pkg/gui/keybindings.go
parentf02ccca0e00a2e249afaf6687d60f58e5a130433 (diff)
allow opening files on the selected line in the staging panel
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 6d7273e49..54ec0d108 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -996,6 +996,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Description: gui.Tr.SLocalize("ExitLineByLineMode"),
},
{
+ ViewName: "main",
+ Contexts: []string{"patch-building", "staging"},
+ Key: gui.getKey("universal.openFile"),
+ Handler: gui.wrappedHandler(gui.handleOpenFileAtLine),
+ // Description: gui.Tr.SLocalize("PrevLine"),
+ },
+ {
ViewName: "main",
Contexts: []string{"patch-building", "staging"},
Key: gui.getKey("universal.prevItem"),