mirror of
https://github.com/charmbracelet/glow
synced 2024-12-13 13:42:34 +00:00
d89d79a00c
closes #502
19 lines
533 B
Go
19 lines
533 B
Go
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
|
|
|
|
// Which directory should we start from?
|
|
WorkingDirectory string
|
|
|
|
// For debugging the UI
|
|
HighPerformancePager bool `env:"GLOW_HIGH_PERFORMANCE_PAGER" envDefault:"true"`
|
|
GlamourEnabled bool `env:"GLOW_ENABLE_GLAMOUR" envDefault:"true"`
|
|
}
|