1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

add checkout reflog commit keybinding

This commit is contained in:
Jesse Duffield
2020-01-09 22:08:28 +11:00
parent 9b32e99eb8
commit 1b64ea3210
3 changed files with 27 additions and 1 deletions

View File

@ -777,6 +777,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handleTagCommit,
Description: gui.Tr.SLocalize("tagCommit"),
},
{
ViewName: "commits",
Contexts: []string{"reflog-commits"},
Key: gui.getKey("universal.select"),
Modifier: gocui.ModNone,
Handler: gui.handleCheckoutReflogCommit,
Description: gui.Tr.SLocalize("checkoutCommit"),
},
{
ViewName: "stash",
Key: gui.getKey("universal.select"),