config

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 6 Imported by: 0

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

func ParseConfig() (Config, error)

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

type SyntaxThemeConfig struct {
	Light string `yaml:"light"`
	Dark  string `yaml:"dark"`
}

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.

Jump to

Keyboard shortcuts

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