From e24647701854e6264b7fbe92ea58e6626f3dcdbd Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Tue, 8 Jan 2019 22:39:54 +0300 Subject: add copy commit hash command --- gui/keybindings.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gui/keybindings.go') 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, -- cgit v1.2.3