config

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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)
	Theme                 string `yaml:"theme"`                 // The theme to use (default: "tokyo_night")
}

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