summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-01-07 20:24:10 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-01-07 20:43:01 +1100
commit09aabce3cd38312e854fdbb29046acba42a67f38 (patch)
treebb80f85919cd375f0f8829438896dde73a119725 /pkg/gui/keybindings.go
parenteb2bfd3848bc5178670380f77b675a27d94d2515 (diff)
allow commits to be checked out
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go7
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"),
},