1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

facilitate toggling whitespace in the diff view with a hotkey (c-w by default)

This commit is contained in:
Davyd McColl
2021-05-28 12:02:19 +02:00
committed by Jesse Duffield
parent 83834a2c2e
commit a9f04d3925
9 changed files with 32 additions and 9 deletions

View File

@ -1719,6 +1719,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Description: gui.Tr.LcViewBulkSubmoduleOptions,
OpensMenu: true,
},
{
ViewName: "files",
Contexts: []string{string(FILES_CONTEXT_KEY)},
Key: gui.getKey(config.Universal.ToggleWhitespaceInDiffView),
Handler: gui.toggleWhitespaceInDiffView,
Description: gui.Tr.ToggleWhitespaceInDiffView,
},
{
ViewName: "extras",
Key: gocui.MouseWheelUp,