glow/ui/config.go

20 lines
533 B
Go
Raw Normal View History

2020-12-11 01:35:00 +00:00
package ui
// Config contains TUI-specific configuration.
type Config struct {
ShowAllFiles bool
Gopath string `env:"GOPATH"`
HomeDir string `env:"HOME"`
GlamourMaxWidth uint
GlamourStyle string
EnableMouse bool
PreserveNewLines bool
2020-12-11 01:35:00 +00:00
// Which directory should we start from?
WorkingDirectory string
2020-12-11 01:35:00 +00:00
// For debugging the UI
HighPerformancePager bool `env:"GLOW_HIGH_PERFORMANCE_PAGER" envDefault:"true"`
GlamourEnabled bool `env:"GLOW_ENABLE_GLAMOUR" envDefault:"true"`
2020-12-11 01:35:00 +00:00
}