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

better keybinding ('W') for viewing diff

This commit is contained in:
Jesse Duffield 2020-08-25 09:07:16 +10:00 committed by github-actions[bot]
parent 771e87ebeb
commit 3ebb91c07a
3 changed files with 10 additions and 2 deletions

View File

@ -106,7 +106,8 @@ Default path for the config file:
undo: 'z'
redo: '<c-z>'
filteringMenu: '<c-s>'
diffingMenu: '<c-e>'
diffingMenu: 'W'
diffingMenu-alt: '<c-e>' # deprecated
copyToClipboard: '<c-o>'
status:
checkForUpdate: 'u'

View File

@ -334,7 +334,8 @@ keybinding:
undo: 'z'
redo: '<c-z>'
filteringMenu: <c-s>
diffingMenu: '<c-e>'
diffingMenu: 'W'
diffingMenu-alt: '<c-e>'
copyToClipboard: '<c-o>'
status:
checkForUpdate: 'u'

View File

@ -1037,6 +1037,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handleCreateDiffingMenuPanel,
Description: gui.Tr.SLocalize("openDiffingMenu"),
},
{
ViewName: "",
Key: gui.getKey("universal.diffingMenu-alt"),
Handler: gui.handleCreateDiffingMenuPanel,
Description: gui.Tr.SLocalize("openDiffingMenu"),
},
{
ViewName: "secondary",
Key: gocui.MouseWheelUp,