mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-04 23:37:41 +02:00
ShowTotal flag
This commit is contained in:
parent
9fdf92b226
commit
7588d5290b
@ -41,6 +41,7 @@ gui:
|
|||||||
skipUnstageLineWarning: false
|
skipUnstageLineWarning: false
|
||||||
skipStashWarning: true
|
skipStashWarning: true
|
||||||
showFileTree: false # for rendering changes files in a tree format
|
showFileTree: false # for rendering changes files in a tree format
|
||||||
|
showTotal: true
|
||||||
showRandomTip: true
|
showRandomTip: true
|
||||||
showCommandLog: true
|
showCommandLog: true
|
||||||
commandLogSize: 8
|
commandLogSize: 8
|
||||||
|
2
go.mod
2
go.mod
@ -20,7 +20,7 @@ require (
|
|||||||
github.com/imdario/mergo v0.3.11
|
github.com/imdario/mergo v0.3.11
|
||||||
github.com/integrii/flaggy v1.4.0
|
github.com/integrii/flaggy v1.4.0
|
||||||
github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4
|
github.com/jesseduffield/go-git/v5 v5.1.2-0.20201006095850-341962be15a4
|
||||||
github.com/jesseduffield/gocui v0.3.1-0.20210417110745-37f79434200d
|
github.com/jesseduffield/gocui v0.3.2
|
||||||
github.com/jesseduffield/termbox-go v0.0.0-20200823212418-a2289ed6aafe // indirect
|
github.com/jesseduffield/termbox-go v0.0.0-20200823212418-a2289ed6aafe // indirect
|
||||||
github.com/jesseduffield/yaml v2.1.0+incompatible
|
github.com/jesseduffield/yaml v2.1.0+incompatible
|
||||||
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
|
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
|
||||||
|
@ -35,6 +35,7 @@ type GuiConfig struct {
|
|||||||
Theme ThemeConfig `yaml:"theme"`
|
Theme ThemeConfig `yaml:"theme"`
|
||||||
CommitLength CommitLengthConfig `yaml:"commitLength"`
|
CommitLength CommitLengthConfig `yaml:"commitLength"`
|
||||||
SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"`
|
SkipNoStagedFilesWarning bool `yaml:"skipNoStagedFilesWarning"`
|
||||||
|
ShowTotal bool `yaml:"showTotal"`
|
||||||
ShowFileTree bool `yaml:"showFileTree"`
|
ShowFileTree bool `yaml:"showFileTree"`
|
||||||
ShowRandomTip bool `yaml:"showRandomTip"`
|
ShowRandomTip bool `yaml:"showRandomTip"`
|
||||||
ShowCommandLog bool `yaml:"showCommandLog"`
|
ShowCommandLog bool `yaml:"showCommandLog"`
|
||||||
@ -306,6 +307,7 @@ func GetDefaultConfig() *UserConfig {
|
|||||||
},
|
},
|
||||||
CommitLength: CommitLengthConfig{Show: true},
|
CommitLength: CommitLengthConfig{Show: true},
|
||||||
SkipNoStagedFilesWarning: false,
|
SkipNoStagedFilesWarning: false,
|
||||||
|
ShowTotal: true,
|
||||||
ShowCommandLog: true,
|
ShowCommandLog: true,
|
||||||
ShowFileTree: false,
|
ShowFileTree: false,
|
||||||
ShowRandomTip: true,
|
ShowRandomTip: true,
|
||||||
|
@ -496,6 +496,8 @@ func (gui *Gui) Run() error {
|
|||||||
|
|
||||||
g.ASCII = runtime.GOOS == "windows" && runewidth.IsEastAsian()
|
g.ASCII = runtime.GOOS == "windows" && runewidth.IsEastAsian()
|
||||||
|
|
||||||
|
g.ShowTotal = userConfig.Gui.ShowTotal
|
||||||
|
|
||||||
if userConfig.Gui.MouseEvents {
|
if userConfig.Gui.MouseEvents {
|
||||||
g.Mouse = true
|
g.Mouse = true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user