mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-03 13:21:56 +02:00
Add a menu entry and keybinding to {
for decreasing the context size
This commit is contained in:
parent
0fbde05928
commit
f7ffbbd72a
@ -155,6 +155,7 @@ keybinding:
|
||||
extrasMenu: '@'
|
||||
toggleWhitespaceInDiffView: '<c-w>'
|
||||
increaseContextInDiffView: '}'
|
||||
decreaseContextInDiffView: '{'
|
||||
status:
|
||||
checkForUpdate: 'u'
|
||||
recentRepos: '<enter>'
|
||||
|
@ -178,6 +178,7 @@ type KeybindingUniversalConfig struct {
|
||||
ExtrasMenu string `yaml:"extrasMenu"`
|
||||
ToggleWhitespaceInDiffView string `yaml:"toggleWhitespaceInDiffView"`
|
||||
IncreaseContextInDiffView string `yaml:"increaseContextInDiffView"`
|
||||
DecreaseContextInDiffView string `yaml:"decreaseContextInDiffView"`
|
||||
}
|
||||
|
||||
type KeybindingStatusConfig struct {
|
||||
@ -440,6 +441,7 @@ func GetDefaultConfig() *UserConfig {
|
||||
ExtrasMenu: "@",
|
||||
ToggleWhitespaceInDiffView: "<c-w>",
|
||||
IncreaseContextInDiffView: "}",
|
||||
DecreaseContextInDiffView: "{",
|
||||
},
|
||||
Status: KeybindingStatusConfig{
|
||||
CheckForUpdate: "u",
|
||||
|
@ -1776,6 +1776,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
||||
Handler: gui.IncreaseContextInDiffView,
|
||||
Description: gui.Tr.IncreaseContextInDiffView,
|
||||
},
|
||||
{
|
||||
ViewName: "",
|
||||
Key: gui.getKey(config.Universal.DecreaseContextInDiffView),
|
||||
Handler: gui.DecreaseContextInDiffView,
|
||||
Description: gui.Tr.DecreaseContextInDiffView,
|
||||
},
|
||||
{
|
||||
ViewName: "extras",
|
||||
Key: gocui.MouseWheelUp,
|
||||
|
@ -428,6 +428,7 @@ type TranslationSet struct {
|
||||
IgnoringWhitespaceInDiffView string
|
||||
ShowingWhitespaceInDiffView string
|
||||
IncreaseContextInDiffView string
|
||||
DecreaseContextInDiffView string
|
||||
CreatePullRequestOptions string
|
||||
LcCreatePullRequestOptions string
|
||||
LcDefaultBranch string
|
||||
@ -969,6 +970,7 @@ func englishTranslationSet() TranslationSet {
|
||||
IgnoringWhitespaceInDiffView: "Whitespace will be ignored in the diff view",
|
||||
ShowingWhitespaceInDiffView: "Whitespace will be shown in the diff view",
|
||||
IncreaseContextInDiffView: "Increase the size of the context shown around changes in the diff view",
|
||||
DecreaseContextInDiffView: "Decrease the size of the context shown around changes in the diff view",
|
||||
CreatePullRequest: "Create pull request",
|
||||
CreatePullRequestOptions: "Create pull request options",
|
||||
LcCreatePullRequestOptions: "create pull request options",
|
||||
|
Loading…
x
Reference in New Issue
Block a user