Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeymap = Keymap{ CloseTab: key.NewBinding( key.WithKeys("c", "ctrl+w"), key.WithHelp("c/ctrl+w", "Close tab"), ), CycleTabs: key.NewBinding( key.WithKeys("tab"), key.WithHelp("tab", "Cycle tabs"), ), SelectFeed: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "Open"), ), NewFeed: key.NewBinding( key.WithKeys("n", "ctrl+n"), key.WithHelp("n/ctrl+n", "New"), ), EditFeed: key.NewBinding( key.WithKeys("e", "ctrl+e"), key.WithHelp("e/ctrl+e", "Edit"), ), DeleteFeed: 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 ¶ added in v1.1.0
ChosenCategoryMsg is the message displayed when a category is successfully chosen.
type Keymap ¶ added in v1.1.0
type Keymap struct {
CloseTab key.Binding
CycleTabs key.Binding
SelectFeed key.Binding
NewFeed key.Binding
EditFeed key.Binding
DeleteFeed 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 New ¶
func New(colors colorscheme.Colorscheme, width, height int, title string, reader func(string) tea.Cmd) Model
New creates a new category tab with sensible defaults
type Popup ¶ added in v1.1.0
type Popup struct {
// contains filtered or unexported fields
}
Popup is the category popup where a user can create a category.
func NewPopup ¶ added in v1.1.0
func NewPopup(colors colorscheme.Colorscheme, bgRaw string, width, height int, oldName, oldDesc string) Popup
NewPopup creates a new popup window in which the user can choose a new category.
Click to show internal directories.
Click to hide internal directories.