Documentation ¶
Index ¶
Constants ¶
View Source
const AppDir = "fm"
AppDir is the name of the directory where the config file is stored.
View Source
const ConfigFileName = "config.yml"
ConfigFileName is the name of the config file that gets created.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Settings SettingsConfig `yaml:"settings"` Theme ThemeConfig `yaml:"theme"` }
Config represents the main config for the application.
func ParseConfig ¶ added in v0.14.0
ParseConfig parses the config file and returns the config.
type ConfigParser ¶ added in v0.14.0
type ConfigParser struct{}
ConfigParser is the parser for the config file.
type SettingsConfig ¶
type SettingsConfig struct { StartDir string `yaml:"start_dir"` ShowIcons bool `yaml:"show_icons"` EnableLogging bool `yaml:"enable_logging"` PrettyMarkdown bool `yaml:"pretty_markdown"` Borderless bool `yaml:"borderless"` }
SettingsConfig struct represents the config for the settings.
type SyntaxThemeConfig ¶ added in v0.13.0
SyntaxThemeConfig represents light and dark syntax themes.
type ThemeConfig ¶ added in v0.13.0
type ThemeConfig struct { AppTheme string `yaml:"app_theme"` SyntaxTheme SyntaxThemeConfig `yaml:"syntax_theme"` }
ThemeConfig represents the config for themes.
Click to show internal directories.
Click to hide internal directories.