config

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	UI    UIConfig    `yaml:"ui"`
	Watch WatchConfig `yaml:"-"`
}

func DefaultConfig

func DefaultConfig() Config

func Load

func Load() Config

type UIConfig

type UIConfig struct {
	HideHeader            bool   `yaml:"hideHeader"`
	HideFooter            bool   `yaml:"hideFooter"`
	ShowFileTree          bool   `yaml:"showFileTree"`
	FileTreeWidth         int    `yaml:"fileTreeWidth"`
	SearchTreeWidth       int    `yaml:"searchTreeWidth"`
	Icons                 string `yaml:"icons"`                 // "nerd-fonts-status" (default), "nerd-fonts-simple", "nerd-fonts-filetype", "nerd-fonts-full", "unicode", "ascii"
	ColorFileNames        bool   `yaml:"colorFileNames"`        // Color filenames by git status (default: true)
	ShowDiffStats         bool   `yaml:"showDiffStats"`         // Show the amount of lines added / removed next to the file
	SideBySide            bool   `yaml:"sideBySide"`            // Side-by-side diff view (default: true)
	StartFoldersOpenDepth int    `yaml:"startFoldersOpenDepth"` // How many levels of folders to open on start (-1 = all, 0 = none)
}

type WatchConfig added in v0.11.0

type WatchConfig struct {
	Enabled  bool
	Cmd      string
	Interval time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL