diff options
author | Jesse Duffield Duffield <jesseduffieldduffield@Jesses-MacBook-Pro-3.local> | 2019-02-24 13:51:52 +1100 |
---|---|---|
committer | Jesse Duffield Duffield <jesseduffieldduffield@Jesses-MacBook-Pro-3.local> | 2019-02-24 13:51:52 +1100 |
commit | a8858cbd12bd2ef5766f2436a7d43e4ff1c4ca9f (patch) | |
tree | 19febb0f502e2ff050ddde80de166e8354218ced /pkg/gui/keybindings.go | |
parent | 1a19b1412d3da03992403cf62fddf06031de2927 (diff) |
support cherry picking commits
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index ab70616ea..3992513ef 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -359,12 +359,31 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleCommitRevert, Description: gui.Tr.SLocalize("revertCommit"), }, { + ViewName: "commits", + Key: 'c', + Modifier: gocui.ModNone, + Handler: gui.handleCopyCommit, + Description: gui.Tr.SLocalize("cherryPickCopy"), + }, { + ViewName: "commits", + Key: 'C', + Modifier: gocui.ModNone, + Handler: gui.handleCopyCommitRange, + Description: gui.Tr.SLocalize("cherryPickCopyRange"), + }, { + ViewName: "commits", + Key: 'v', + Modifier: gocui.ModNone, + Handler: gui.HandlePasteCommits, + Description: gui.Tr.SLocalize("pasteCommits"), + }, { ViewName: "stash", Key: gocui.KeySpace, Modifier: gocui.ModNone, Handler: gui.handleStashApply, Description: gui.Tr.SLocalize("apply"), }, { + ViewName: "stash", Key: 'g', Modifier: gocui.ModNone, |