From 0fbde0592830cf5fdaf961f481d073164a1679e8 Mon Sep 17 00:00:00 2001 From: DerTeta Date: Sat, 11 Sep 2021 20:42:23 +0200 Subject: Add a menu item and keybinding to `}` to increase the context size --- pkg/gui/keybindings.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pkg/gui') diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 232708b9b..65bd5df42 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1770,6 +1770,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.toggleWhitespaceInDiffView, Description: gui.Tr.ToggleWhitespaceInDiffView, }, + { + ViewName: "", + Key: gui.getKey(config.Universal.IncreaseContextInDiffView), + Handler: gui.IncreaseContextInDiffView, + Description: gui.Tr.IncreaseContextInDiffView, + }, { ViewName: "extras", Key: gocui.MouseWheelUp, -- cgit v1.2.3