Change switchTabsWithPanelJumpKeys default to true

This commit is contained in:
Alexandre Pereira 2025-04-26 10:30:26 +01:00
parent 66caa25dcd
commit fb3d99a8ce
5 changed files with 5 additions and 5 deletions

View file

@ -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:

View file

@ -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{

View file

@ -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) {
}, },

View file

@ -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) {
}, },

View file

@ -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,