1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-07 13:42:01 +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'
tagCommit: 'T'
toggleDiffCommit: 'h'
checkoutCommit: '<space>'
stash:
popStash: 'g'
commitFiles:

View File

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

View File

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