Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeToSymbol ¶
CodeToSymbol returns a code binding with the symbol equivalent
func ParseFromFile ¶
ParseFromFile loads config from path
Types ¶
type Binding ¶
type Binding struct { Key string `json:"key"` Modifiers []string `json:"modifiers"` Command string `json:"command"` // contains filtered or unexported fields }
Binding holds one key binding. Can only be a keysymbol
type ModifierGroup ¶
type ModifierGroup struct { Modifiers []string `json:"modifiers"` Bindings []Binding `json:"bindings"` }
ModifierGroup holds bindings with the same modifiers
func GetModifierGroups ¶
func GetModifierGroups(bindings []Binding) []ModifierGroup
GetModifierGroups groups bindings that have the same modifiers
type SortByVarbyLen ¶
type SortByVarbyLen []Variable
func (SortByVarbyLen) Len ¶
func (a SortByVarbyLen) Len() int
func (SortByVarbyLen) Less ¶
func (a SortByVarbyLen) Less(i, j int) bool
func (SortByVarbyLen) Swap ¶
func (a SortByVarbyLen) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.