Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
LoadConfig loads a users config and creates the config if it does not exist located at ~/.config/fm.yml.
Types ¶
type Config ¶
type Config struct { Settings SettingsConfig `mapstructure:"settings"` Theme ThemeConfig `mapstructure:"theme"` }
Config represents the main config for the application.
type SettingsConfig ¶
type SettingsConfig struct { StartDir string `mapstructure:"start_dir"` ShowIcons bool `mapstructure:"show_icons"` EnableLogging bool `mapstructure:"enable_logging"` EnableMouseWheel bool `mapstructure:"enable_mousewheel"` PrettyMarkdown bool `mapstructure:"pretty_markdown"` Borderless bool `mapstructure:"borderless"` SimpleMode bool `mapstructure:"simple_mode"` CalculatedFileSizes bool `mapstructure:"calculated_file_sizes"` }
SettingsConfig struct represents the config for the settings.
type SyntaxThemeConfig ¶ added in v0.13.0
type SyntaxThemeConfig struct { Light string `mapstructure:"light"` Dark string `mapstructure:"dark"` }
SyntaxThemeConfig represents light and dark syntax themes.
type ThemeConfig ¶ added in v0.13.0
type ThemeConfig struct { AppTheme string `mapstructure:"app_theme"` SyntaxTheme SyntaxThemeConfig `mapstructure:"syntax_theme"` }
ThemeConfig represents the config for themes.
Click to show internal directories.
Click to hide internal directories.