diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-06-14 18:17:08 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-06-14 18:17:08 +1000 |
commit | ce7cbe58a045b9a7efe5fb48bb75eaa8c8593af3 (patch) | |
tree | 51fba42f4aa4f072893c89bcea917dbc1979ea52 | |
parent | 7588d5290b2fc05f2a33236c8b648a5aaf2d9d4a (diff) |
naming change
-rw-r--r-- | docs/Config.md | 2 | ||||
-rw-r--r-- | pkg/config/user_config.go | 4 | ||||
-rw-r--r-- | pkg/gui/gui.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/docs/Config.md b/docs/Config.md index ea248f9b9..b2baf1255 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -41,7 +41,7 @@ gui: skipUnstageLineWarning: false skipStashWarning: true showFileTree: false # for rendering changes files in a tree format - showTotal: true + showListFooter: true # for seeing the '5 of 20' message in list panels showRandomTip: true showCommandLog: true commandLogSize: 8 diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index a30591fc0..1312e4bd8 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -35,7 +35,7 @@ type GuiConfig struct { Theme ThemeConfig `yaml:"theme"` CommitLength CommitLengthConfig `yaml:"commitLength"` SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"` - ShowTotal bool `yaml:"showTotal"` + ShowListFooter bool `yaml:"showListFooter"` ShowFileTree bool `yaml:"showFileTree"` ShowRandomTip bool `yaml:"showRandomTip"` ShowCommandLog bool `yaml:"showCommandLog"` @@ -307,7 +307,7 @@ func GetDefaultConfig() *UserConfig { }, CommitLength: CommitLengthConfig{Show: true}, SkipNoStagedFilesWarning: false, - ShowTotal: true, + ShowListFooter: true, ShowCommandLog: true, ShowFileTree: false, ShowRandomTip: true, diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 81f507542..990654587 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -496,7 +496,7 @@ func (gui *Gui) Run() error { g.ASCII = runtime.GOOS == "windows" && runewidth.IsEastAsian() - g.ShowTotal = userConfig.Gui.ShowTotal + g.ShowListFooter = userConfig.Gui.ShowListFooter if userConfig.Gui.MouseEvents { g.Mouse = true |