Skip to content

Commit

Permalink
better keybinding ('W') for viewing diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield authored and github-actions[bot] committed Aug 24, 2020
1 parent 771e87e commit 3ebb91c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/Config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 6 additions & 0 deletions pkg/gui/keybindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3ebb91c

Please sign in to comment.