diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-07 20:24:10 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-07 20:43:01 +1100 |
commit | 09aabce3cd38312e854fdbb29046acba42a67f38 (patch) | |
tree | bb80f85919cd375f0f8829438896dde73a119725 /pkg/gui/keybindings.go | |
parent | eb2bfd3848bc5178670380f77b675a27d94d2515 (diff) |
allow commits to be checked out
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 8d036fc07..1deb6f7e3 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -596,6 +596,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { ViewName: "commits", Key: gocui.KeySpace, Modifier: gocui.ModNone, + Handler: gui.handleCheckoutCommit, + Description: gui.Tr.SLocalize("checkoutCommit"), + }, + { + ViewName: "commits", + Key: 'h', + Modifier: gocui.ModNone, Handler: gui.handleToggleDiffCommit, Description: gui.Tr.SLocalize("CommitsDiff"), }, |