Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeymap = Keymap{ SelectFeed: key.NewBinding( key.WithKeys("enter"), key.WithHelp("Enter", "Open"), ), NewFeed: key.NewBinding( key.WithKeys("n", "ctrl+n"), key.WithHelp("n/C-n", "New"), ), EditFeed: key.NewBinding( key.WithKeys("e", "ctrl+e"), key.WithHelp("e/C-e", "Edit"), ), DeleteFeed: 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 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 {
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
func (Model) GetKeyBinds ¶ added in v1.2.0
GetKeyBinds returns the key bindings of the tab
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.