config

package
v0.0.0-...-133cabf Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Settings    Settings `yaml:"settings"`
	PrintLastWD string
}

Config represents all of the configuration options

func GetConfig

func GetConfig() (Config, error)

GetConfig reads, pareses and returns the configuration

type Keymap

type Keymap struct {
	NavUp    string `yaml:"up"`
	NavDown  string `yaml:"down"`
	NavLeft  string `yaml:"left"`
	NavRight string `yaml:"right"`
	NavIn    string `yaml:"in"`
	NavOut   string `yaml:"out"`
	NavHome  string `yaml:"go_home"`
	Delete   string `yaml:"delete"`
	Select   string `yaml:"select"`
	Paste    string `yaml:"paste"`
	Copy     string `yaml:"copy"`
}

type Settings

type Settings struct {
	Keymap    Keymap `yaml:"keymap"`
	AltScreen bool   `yaml:"alt_screen"`
}

Jump to

Keyboard shortcuts

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