config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

LoadConfig loads a users config and creates the config if it does not exist located at ~/.fm.yml.

func SetDefaults

func SetDefaults()

SetDefaults sets default values for the config.

Types

type Config

type Config struct {
	Settings SettingsConfig `mapstructure:"settings"`
}

Config represents the main config for the application.

func GetConfig

func GetConfig() (config Config)

GetConfig returns the users config.

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"`
	Theme            string `mapstructure:"theme"`
}

SettingsConfig struct represents the config for the settings.

Jump to

Keyboard shortcuts

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