Documentation
¶
Index ¶
- func AddEntry(path, binding string, kbIgnorePrefix bool) error
- func CreateDefaultConfigFile() error
- func GetBaseDir() (string, error)
- func GetorCreateConfigDir(baseDir string) (string, error)
- func Parse(flagKPath, cfgPath string) (Apps, *Config, error)
- type App
- type Apps
- type Color
- type Config
- type KeyBind
- type Keys
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultConfigFile ¶
func CreateDefaultConfigFile() error
Create default config file if does not exist
func GetBaseDir ¶
func GetorCreateConfigDir ¶
Types ¶
type App ¶
type Color ¶
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"`
CounterFg string `yaml:"counter_fg"`
CounterBg string `yaml:"counter_bg"`
PlaceholderFg string `yaml:"placeholder_fg"`
PlaceholderBg string `yaml:"placeholder_bg"`
BorderColor string `yaml:"border_color"`
}
type Config ¶
func ParseConfig ¶
type Keys ¶ added in v0.2.0
type Keys struct {
Quit string
Up string
Down string
UpFocus string `yaml:"up_focus"`
DownFocus string `yaml:"down_focus"`
HalfUp string `yaml:"half_up"`
HalfDown string `yaml:"half_down"`
FullUp string `yaml:"full_up"`
FullDown string `yaml:"full_bottom"`
GoToFirstLine string `yaml:"first_line"`
GoToLastLine string `yaml:"last_line"`
GoToTop string `yaml:"top"`
GoToMiddle string `yaml:"middle"`
GoToBottom string `yaml:"bottom"`
Search string
ClearSearch string `yaml:"clear_search"`
Normal string
}
type Settings ¶
type Settings struct {
KeybPath string `yaml:"keyb_path"`
Debug bool
Reverse bool
Mouse bool
SearchMode bool `yaml:"search_mode"`
SortKeys bool `yaml:"sort_keys"`
Title string
Prompt string
PromptLocation string `yaml:"prompt_location"`
Placeholder string
PrefixSep string `yaml:"prefix_sep"`
SepWidth int `yaml:"sep_width"`
Margin int
Padding int
BorderStyle string `yaml:"border"`
}
Click to show internal directories.
Click to hide internal directories.