mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Change switchTabsWithPanelJumpKeys default to true
This commit is contained in:
parent
66caa25dcd
commit
fb3d99a8ce
5 changed files with 5 additions and 5 deletions
|
@ -279,7 +279,7 @@ gui:
|
||||||
switchToFilesAfterStashApply: true
|
switchToFilesAfterStashApply: true
|
||||||
|
|
||||||
# If true, when using the panel jump keys (default 1 through 5) and target panel is already active, go to next tab instead
|
# If true, when using the panel jump keys (default 1 through 5) and target panel is already active, go to next tab instead
|
||||||
switchTabsWithPanelJumpKeys: false
|
switchTabsWithPanelJumpKeys: true
|
||||||
|
|
||||||
# Config relating to git
|
# Config relating to git
|
||||||
git:
|
git:
|
||||||
|
|
|
@ -798,7 +798,7 @@ func GetDefaultConfig() *UserConfig {
|
||||||
StatusPanelView: "dashboard",
|
StatusPanelView: "dashboard",
|
||||||
SwitchToFilesAfterStashPop: true,
|
SwitchToFilesAfterStashPop: true,
|
||||||
SwitchToFilesAfterStashApply: true,
|
SwitchToFilesAfterStashApply: true,
|
||||||
SwitchTabsWithPanelJumpKeys: false,
|
SwitchTabsWithPanelJumpKeys: true,
|
||||||
},
|
},
|
||||||
Git: GitConfig{
|
Git: GitConfig{
|
||||||
Paging: PagingConfig{
|
Paging: PagingConfig{
|
||||||
|
|
|
@ -6,10 +6,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var DisableSwitchTabWithPanelJumpKeys = NewIntegrationTest(NewIntegrationTestArgs{
|
var DisableSwitchTabWithPanelJumpKeys = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
Description: "Verify that the tab does not change by default when jumping to an already focused panel",
|
Description: "Verify that the tab does not change when jumping to an already focused panel with the config SwitchTabsWithPanelJumpKeys to false",
|
||||||
ExtraCmdArgs: []string{},
|
ExtraCmdArgs: []string{},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
|
config.GetUserConfig().Gui.SwitchTabsWithPanelJumpKeys = false
|
||||||
},
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,7 +10,6 @@ var SwitchTabWithPanelJumpKeys = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
ExtraCmdArgs: []string{},
|
ExtraCmdArgs: []string{},
|
||||||
Skip: false,
|
Skip: false,
|
||||||
SetupConfig: func(config *config.AppConfig) {
|
SetupConfig: func(config *config.AppConfig) {
|
||||||
config.GetUserConfig().Gui.SwitchTabsWithPanelJumpKeys = true
|
|
||||||
},
|
},
|
||||||
SetupRepo: func(shell *Shell) {
|
SetupRepo: func(shell *Shell) {
|
||||||
},
|
},
|
||||||
|
|
|
@ -728,7 +728,7 @@
|
||||||
"switchTabsWithPanelJumpKeys": {
|
"switchTabsWithPanelJumpKeys": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "If true, when using the panel jump keys (default 1 through 5) and target panel is already active, go to next tab instead",
|
"description": "If true, when using the panel jump keys (default 1 through 5) and target panel is already active, go to next tab instead",
|
||||||
"default": false
|
"default": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue