mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-23 00:39:13 +02:00
customizable keybinding for toggleDiffCommit
This commit is contained in:
@ -111,6 +111,7 @@ Default path for the config file: `~/.config/jesseduffield/lazygit/config.yml`
|
|||||||
cherryPickCopyRange: 'C'
|
cherryPickCopyRange: 'C'
|
||||||
pasteCommits: 'v'
|
pasteCommits: 'v'
|
||||||
tagCommit: 'T'
|
tagCommit: 'T'
|
||||||
|
toggleDiffCommit: 'h'
|
||||||
stash:
|
stash:
|
||||||
popStash: 'g'
|
popStash: 'g'
|
||||||
commitFiles:
|
commitFiles:
|
||||||
|
@ -344,6 +344,7 @@ keybinding:
|
|||||||
cherryPickCopyRange: 'C'
|
cherryPickCopyRange: 'C'
|
||||||
pasteCommits: 'v'
|
pasteCommits: 'v'
|
||||||
tagCommit: 'T'
|
tagCommit: 'T'
|
||||||
|
toggleDiffCommit: 'h'
|
||||||
stash:
|
stash:
|
||||||
popStash: 'g'
|
popStash: 'g'
|
||||||
commitFiles:
|
commitFiles:
|
||||||
|
@ -723,7 +723,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
ViewName: "commits",
|
ViewName: "commits",
|
||||||
Key: 'h',
|
Key: gui.getKey("commits.toggleDiffCommit"),
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handleToggleDiffCommit,
|
Handler: gui.handleToggleDiffCommit,
|
||||||
Description: gui.Tr.SLocalize("CommitsDiff"),
|
Description: gui.Tr.SLocalize("CommitsDiff"),
|
||||||
|
Reference in New Issue
Block a user