Documentation ¶
Index ¶
- Variables
- type ChosenCategoryMsg
- type Keymap
- type Model
- func (m Model) FullHelp() [][]key.Binding
- func (m Model) Init() tea.Cmd
- func (m Model) SetSize(width, height int) tab.Tab
- func (m Model) ShortHelp() []key.Binding
- func (m Model) Style() tab.Style
- func (m Model) Title() string
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- type Popup
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeymap = Keymap{ NewCategory: key.NewBinding( key.WithKeys("n", "ctrl+n"), key.WithHelp("n/ctrl+n", "New"), ), EditCategory: key.NewBinding( key.WithKeys("e", "ctrl+e"), key.WithHelp("e/ctrl+e", "Edit"), ), DeleteCategory: key.NewBinding( key.WithKeys("d", "ctrl+d"), key.WithHelp("d/ctrl+d", "Delete"), ), }
DefaultKeymap contains the default key bindings for this tab
Functions ¶
This section is empty.
Types ¶
type ChosenCategoryMsg ¶
ChosenCategoryMsg is the message displayed when a category is successfully chosen.
type Keymap ¶
Keymap contains the key bindings for this tab
func (*Keymap) SetEnabled ¶
SetEnabled allows to disable/enable shortcuts
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model contains the state of this tab
type Popup ¶
type Popup struct {
// contains filtered or unexported fields
}
Popup is the category popup where a user can create a category.
Click to show internal directories.
Click to hide internal directories.