diff options
author | Glenn Vriesman <glenn.vriesman@gmail.com> | 2020-02-04 12:43:56 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-02-04 23:21:51 +1100 |
commit | 047c3cf88077e42a88b6c71ff2c95b7f28470e83 (patch) | |
tree | badbf33d39a7b0d8b982d2ad4d0907df28bd7abd | |
parent | 47d7d87c82e80cbdeb933130fa24e6ce93ce8c53 (diff) |
Added more keybindsv0.14.1
* Commit with editor
* Commit without hook
Signed-off-by: Glenn Vriesman <glenn.vriesman@gmail.com>
-rw-r--r-- | pkg/gui/keybindings.go | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index a0906483d..b5dc95820 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1150,7 +1150,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "main", - Contexts: []string{"patch-building", "staging"}, + Contexts: []string{"staging"}, Key: gui.getKey("files.commitChanges"), Modifier: gocui.ModNone, Handler: gui.handleCommitPress, @@ -1158,6 +1158,22 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "main", + Contexts: []string{"staging"}, + Key: gui.getKey("files.commitChangesWithoutHook"), + Modifier: gocui.ModNone, + Handler: gui.handleWIPCommitPress, + Description: gui.Tr.SLocalize("commitChangesWithoutHook"), + }, + { + ViewName: "main", + Contexts: []string{"staging"}, + Key: gui.getKey("files.commitChangesWithEditor"), + Modifier: gocui.ModNone, + Handler: gui.handleCommitEditorPress, + Description: gui.Tr.SLocalize("CommitChangesWithEditor"), + }, + { + ViewName: "main", Contexts: []string{"merging"}, Key: gui.getKey("universal.return"), Modifier: gocui.ModNone, |