Discover Packages
github.com/kencx/keyb
config
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func CreateDefaultConfigFile() error
Create default config file if does not exist
type App struct {
Name string `yaml:"name"`
Prefix string `yaml:"prefix,omitempty"`
Keybinds []KeyBind `yaml:"keybinds"`
}
type Color struct {
PromptColor string `yaml:"prompt"`
CursorFg string `yaml:"cursor_fg"`
CursorBg string `yaml:"cursor_bg"`
FilterFg string `yaml:"filter_fg"`
FilterBg string `yaml:"filter_bg"`
BorderColor string `yaml:"border_color"`
}
type Config struct {
Settings `yaml:"settings"`
Color `yaml:"color"`
}
type KeyBind struct {
Name string `yaml:"name"`
Key string `yaml:"key"`
IgnorePrefix bool `yaml:"ignore_prefix,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.