diff --git a/docs/Config.md b/docs/Config.md index fd054119f..f4dc1fc92 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -111,6 +111,7 @@ Default path for the config file: `~/.config/jesseduffield/lazygit/config.yml` cherryPickCopyRange: 'C' pasteCommits: 'v' tagCommit: 'T' + toggleDiffCommit: 'h' stash: popStash: 'g' commitFiles: diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index abc650a05..5869ed612 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -344,6 +344,7 @@ keybinding: cherryPickCopyRange: 'C' pasteCommits: 'v' tagCommit: 'T' + toggleDiffCommit: 'h' stash: popStash: 'g' commitFiles: diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index dade5aa51..2928ed63b 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -723,7 +723,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "commits", - Key: 'h', + Key: gui.getKey("commits.toggleDiffCommit"), Modifier: gocui.ModNone, Handler: gui.handleToggleDiffCommit, Description: gui.Tr.SLocalize("CommitsDiff"),