1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00

replaced 'screenMode' to 'windowSize' in config

This commit is contained in:
Phanindra kumar Paladi 2023-01-16 20:07:21 +05:30
parent f4ccb68464
commit a11e91e651
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ If you want to change the config directory:
```yaml ```yaml
gui: gui:
# stuff relating to the UI # 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 scrollHeight: 2 # how many lines you scroll by
scrollPastBottom: true # enable scrolling past the bottom scrollPastBottom: true # enable scrolling past the bottom
sidePanelWidth: 0.3333 # number from 0 to 1 sidePanelWidth: 0.3333 # number from 0 to 1

View File

@ -50,7 +50,7 @@ type GuiConfig struct {
ShowIcons bool `yaml:"showIcons"` ShowIcons bool `yaml:"showIcons"`
CommandLogSize int `yaml:"commandLogSize"` CommandLogSize int `yaml:"commandLogSize"`
SplitDiff string `yaml:"splitDiff"` SplitDiff string `yaml:"splitDiff"`
ScreenMode string `yaml:"screenMode"` WindowSize string `yaml:"windowSize"`
} }
type ThemeConfig struct { type ThemeConfig struct {

View File

@ -311,9 +311,9 @@ func initialScreenMode(startArgs appTypes.StartArgs, config config.AppConfigurer
if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone { if startArgs.FilterPath != "" || startArgs.GitArg != appTypes.GitArgNone {
return SCREEN_HALF return SCREEN_HALF
} else { } else {
defaultScreenMode := config.GetUserConfig().Gui.ScreenMode defaultWindowSize := config.GetUserConfig().Gui.WindowSize
switch defaultScreenMode { switch defaultWindowSize {
case "half": case "half":
return SCREEN_HALF return SCREEN_HALF
case "full": case "full":