Skip to content

Commit 205d731

Browse files
author
David Chen
committed
added a seperate keybinding option for checking out commits
1 parent 3e875cc commit 205d731

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docs/Config.md

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Default path for the config file: `~/.config/jesseduffield/lazygit/config.yml`
112112
pasteCommits: 'v'
113113
tagCommit: 'T'
114114
toggleDiffCommit: 'h'
115+
checkoutCommit: '<space>'
115116
stash:
116117
popStash: 'g'
117118
commitFiles:

pkg/config/app_config.go

+1
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ keybinding:
345345
pasteCommits: 'v'
346346
tagCommit: 'T'
347347
toggleDiffCommit: 'h'
348+
checkoutCommit: '<space>'
348349
stash:
349350
popStash: 'g'
350351
commitFiles:

pkg/gui/keybindings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
716716
},
717717
{
718718
ViewName: "commits",
719-
Key: gui.getKey("universal.select"),
719+
Key: gui.getKey("commits.checkoutCommit"),
720720
Modifier: gocui.ModNone,
721721
Handler: gui.handleCheckoutCommit,
722722
Description: gui.Tr.SLocalize("checkoutCommit"),

0 commit comments

Comments
 (0)