diff options
author | David Chen <weichen2000121@gmail.com> | 2020-01-07 19:14:54 -0800 |
---|---|---|
committer | David Chen <weichen2000121@gmail.com> | 2020-01-07 19:14:54 -0800 |
commit | 205d731d7be974abcece5e02cc351bd26101168c (patch) | |
tree | 75e2ec1225dbd3e8b48cdcf183dcafb4e494d7d7 | |
parent | 3e875cc5935fcdd5db26d612b882ff79f73d9133 (diff) |
added a seperate keybinding option for checking out commits
-rw-r--r-- | docs/Config.md | 1 | ||||
-rw-r--r-- | pkg/config/app_config.go | 1 | ||||
-rw-r--r-- | pkg/gui/keybindings.go | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/docs/Config.md b/docs/Config.md index f4dc1fc92..695e71ab8 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -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: diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 5869ed612..8a6f0bb0c 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -345,6 +345,7 @@ keybinding: pasteCommits: 'v' tagCommit: 'T' toggleDiffCommit: 'h' + checkoutCommit: '<space>' stash: popStash: 'g' commitFiles: diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 2928ed63b..fd2a5ef03 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -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"), |