diff --git a/docs/Config.md b/docs/Config.md index cac8a4923..4bcac2064 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -21,7 +21,7 @@ If you want to change the config directory: ```yaml gui: # stuff relating to the UI - screenMode: 'normal' # one of 'normal' | 'half' | 'full' default is 'normal' + windowSize: 'normal' # one of 'normal' | 'half' | 'full' default is 'normal' scrollHeight: 2 # how many lines you scroll by scrollPastBottom: true # enable scrolling past the bottom sidePanelWidth: 0.3333 # number from 0 to 1 diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index b1719ec10..4c5259fe1 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -50,7 +50,7 @@ type GuiConfig struct { ShowIcons bool `yaml:"showIcons"` CommandLogSize int `yaml:"commandLogSize"` SplitDiff string `yaml:"splitDiff"` - ScreenMode string `yaml:"screenMode"` + WindowSize string `yaml:"windowSize"` } type ThemeConfig struct { diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index ddcc30ea8..bcc3400e3 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -311,9 +311,9 @@ func initialScreenMode(startArgs appTypes.StartArgs, config config.AppConfigurer if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone { return SCREEN_HALF } else { - defaultScreenMode := config.GetUserConfig().Gui.ScreenMode + defaultWindowSize := config.GetUserConfig().Gui.WindowSize - switch defaultScreenMode { + switch defaultWindowSize { case "half": return SCREEN_HALF case "full":