summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-07-21 18:12:05 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-07-21 18:24:39 +1000
commitf4718a904769b372b52cf3cd2c890b34d751620a (patch)
tree91a9c9a44c7524bd664521af005fbdc8eb9d32f1 /pkg/gui/keybindings.go
parent7d5fe4b66c908cdd55487ee40ddb461efe333f11 (diff)
allow editing commit filesv0.20.11
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 283daa779..66d9f086f 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -880,6 +880,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
},
{
ViewName: "commitFiles",
+ Key: gui.getKey("universal.edit"),
+ Handler: gui.handleEditCommitFile,
+ Description: gui.Tr.SLocalize("editFile"),
+ },
+ {
+ ViewName: "commitFiles",
Key: gui.getKey("universal.select"),
Handler: gui.handleToggleFileForPatch,
Description: gui.Tr.SLocalize("toggleAddToPatch"),