1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-09 13:47:11 +02:00

added a seperate keybinding option for checking out commits

This commit is contained in:
David Chen 2020-01-07 19:14:54 -08:00
parent 3e875cc593
commit 205d731d7b
3 changed files with 3 additions and 1 deletions

View File

@ -112,6 +112,7 @@ Default path for the config file: `~/.config/jesseduffield/lazygit/config.yml`
pasteCommits: 'v' pasteCommits: 'v'
tagCommit: 'T' tagCommit: 'T'
toggleDiffCommit: 'h' toggleDiffCommit: 'h'
checkoutCommit: '<space>'
stash: stash:
popStash: 'g' popStash: 'g'
commitFiles: commitFiles:

View File

@ -345,6 +345,7 @@ keybinding:
pasteCommits: 'v' pasteCommits: 'v'
tagCommit: 'T' tagCommit: 'T'
toggleDiffCommit: 'h' toggleDiffCommit: 'h'
checkoutCommit: '<space>'
stash: stash:
popStash: 'g' popStash: 'g'
commitFiles: commitFiles:

View File

@ -716,7 +716,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
}, },
{ {
ViewName: "commits", ViewName: "commits",
Key: gui.getKey("universal.select"), Key: gui.getKey("commits.checkoutCommit"),
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleCheckoutCommit, Handler: gui.handleCheckoutCommit,
Description: gui.Tr.SLocalize("checkoutCommit"), Description: gui.Tr.SLocalize("checkoutCommit"),