Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeymap = Keymap{ SelectCategory: key.NewBinding( key.WithKeys("enter"), key.WithHelp("Enter", "Open"), ), NewCategory: key.NewBinding( key.WithKeys("n", "ctrl+n"), key.WithHelp("n/C-n", "New"), ), EditCategory: key.NewBinding( key.WithKeys("e", "ctrl+e"), key.WithHelp("e/C-e", "Edit"), ), DeleteCategory: key.NewBinding( key.WithKeys("d", "ctrl+d"), key.WithHelp("d/C-d", "Delete"), ), }
DefaultKeymap contains the default key bindings for this tab
Functions ¶
This section is empty.
Types ¶
type Keymap ¶ added in v1.1.0
type Keymap struct {
SelectCategory key.Binding
NewCategory key.Binding
EditCategory key.Binding
DeleteCategory key.Binding
}
Keymap contains the key bindings for this tab
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model contains the state of this tab
func (Model) GetKeyBinds ¶ added in v1.2.0
GetKeyBinds returns the key bindings of the tab
Click to show internal directories.
Click to hide internal directories.