summaryrefslogtreecommitdiff
path: root/gui/keybindings.go
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2019-01-08 22:39:54 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2019-01-08 22:39:54 +0300
commite24647701854e6264b7fbe92ea58e6626f3dcdbd (patch)
tree682ac10d186f5bf0c5d391b27620623dcc2072bc /gui/keybindings.go
parentMerge pull request #54 from isacikgoz/develop (diff)
downloadgitbatch-master.tar.gz
add copy commit hash commandHEADmaster
Diffstat (limited to 'gui/keybindings.go')
-rw-r--r--gui/keybindings.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/gui/keybindings.go b/gui/keybindings.go
index 668fe90..19cb114 100644
--- a/gui/keybindings.go
+++ b/gui/keybindings.go
@@ -477,6 +477,15 @@ func (gui *Gui) generateKeybindings() error {
Description: "Show commit diff",
Vital: true,
},
+ {
+ View: commitViewFeature.Name,
+ Key: 'c',
+ Modifier: gocui.ModNone,
+ Handler: gui.copyCommitHash,
+ Display: "c",
+ Description: "Copy commit hash",
+ Vital: true,
+ },
// upstream confirmation
{
View: confirmationViewFeature.Name,