diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-15 10:58:29 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-15 11:41:37 +1000 |
commit | 291a8e4de0f5d5557cf6fbd7b5b6b9d42bcaa16e (patch) | |
tree | 7f4cca6efd1c11fbccf18e835d8147f30422a0e3 /pkg/gui/keybindings.go | |
parent | f02ccca0e00a2e249afaf6687d60f58e5a130433 (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.go | 7 |
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"), |