Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeConfigMsg ¶
type ChangeConfigMsg struct {
Context context.Context
To configeditor.Result
}
type Config ¶
type Config struct {
CommonModel *common.CommonModel
KeyBinds *KeyBinds
}
type KeyBinds ¶
type KeyBinds struct {
// Navigation.
Home *keys.KeyBind `json:"home,omitempty"`
End *keys.KeyBind `json:"end,omitempty"`
PageUp *keys.KeyBind `json:"pageUp,omitempty"`
PageDown *keys.KeyBind `json:"pageDown,omitempty"`
// Actions.
Select *keys.KeyBind `json:"select,omitempty"`
}
KeyBinds defines key bindings for menu view.
func (*KeyBinds) EnsureDefaults ¶
func (kb *KeyBinds) EnsureDefaults()
EnsureDefaults sets default key bindings for menu actions.
func (*KeyBinds) GetKeyBinds ¶
GetKeyBinds returns all key bindings.
type KeyHandler ¶
type KeyHandler struct {
// contains filtered or unexported fields
}
func NewKeyHandler ¶
func NewKeyHandler(kb *KeyBinds, ckb *common.KeyBinds) *KeyHandler
func (*KeyHandler) HandleKeys ¶
func (*KeyHandler) HuhKeyMap ¶
func (h *KeyHandler) HuhKeyMap() *huh.KeyMap
Click to show internal directories.
Click to hide internal directories.