summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorDerTeta <derteta@gmx.de>2021-09-11 19:35:17 +0200
committerJesse Duffield <jessedduffield@gmail.com>2021-12-06 22:37:28 +1100
commitf7ffbbd72a6281b73b68d939b25f98df35296427 (patch)
tree7f8fec6d838f70a72d454a1e423bbbcfcdbd2878 /pkg/gui
parent0fbde0592830cf5fdaf961f481d073164a1679e8 (diff)
Add a menu entry and keybinding to `{` for decreasing the context size
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/keybindings.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 65bd5df42..d9bf2dd69 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -1777,6 +1777,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Description: gui.Tr.IncreaseContextInDiffView,
},
{
+ ViewName: "",
+ Key: gui.getKey(config.Universal.DecreaseContextInDiffView),
+ Handler: gui.DecreaseContextInDiffView,
+ Description: gui.Tr.DecreaseContextInDiffView,
+ },
+ {
ViewName: "extras",
Key: gocui.MouseWheelUp,
Handler: gui.scrollUpExtra,