mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-06 10:47:38 +02:00
replaced 'screenMode' to 'windowSize' in config
This commit is contained in:
parent
f4ccb68464
commit
a11e91e651
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user