Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
func ParseConfig() (*Config, []ConfigError)
ParseConfig reads and parses all configuration files
Types ¶
type Config ¶
type Config struct {
Workspace []WorkspaceConfig `toml:"workspace"`
SearchDepth int `toml:"search_depth"` // Default: 1, 0 = unlimited
UseZoxide *bool `toml:"use_zoxide"` // Default: true, pointer to distinguish unset from false
MaxRecent *int `toml:"max_recent"` // Default: 10, pointer to distinguish unset from explicit 0
}
Config represents the application configuration
func (*Config) GetMaxRecent ¶ added in v1.1.0
GetMaxRecent safely returns the MaxRecent value, defaulting to 10 if nil
func (*Config) GetSearchDepth ¶ added in v1.0.0
GetSearchDepth returns the search depth, with a minimum of 1
func (*Config) GetUseZoxide ¶ added in v1.0.0
GetUseZoxide safely returns the UseZoxide value, defaulting to true if nil
type ConfigError ¶ added in v0.2.3
ConfigError represents an error that occurred while processing a specific config file
type WorkspaceConfig ¶
type WorkspaceConfig struct {
Directory string `toml:"directory"`
Name string `toml:"name"`
Windows []string `toml:"windows"`
}
WorkspaceConfig represents a single workspace configuration
Click to show internal directories.
Click to hide internal directories.