1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-28 09:08:41 +02:00

customizable keybinding for toggleDiffCommit

This commit is contained in:
David Chen 2020-01-07 10:03:13 -08:00
parent 844a2db83a
commit e72cab81c1
3 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -344,6 +344,7 @@ keybinding:
cherryPickCopyRange: 'C'
pasteCommits: 'v'
tagCommit: 'T'
toggleDiffCommit: 'h'
stash:
popStash: 'g'
commitFiles:

View File

@ -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"),