Documentation
¶
Overview ¶
Package tui provides the interactive Bubbletea TUI for template selection and meme generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the bubbletea model for the template picker TUI.
type TemplateItem ¶
type TemplateItem struct {
// contains filtered or unexported fields
}
TemplateItem wraps api.Template to implement the bubbles list.DefaultItem interface. It provides Title, Description, and FilterValue for the fuzzy picker list component.
func NewTemplateItem ¶
func NewTemplateItem(t api.Template) TemplateItem
NewTemplateItem creates a TemplateItem from an api.Template.
func (TemplateItem) Description ¶
func (i TemplateItem) Description() string
Description returns template ID and line count for list display.
func (TemplateItem) FilterValue ¶
func (i TemplateItem) FilterValue() string
FilterValue returns a combined string of name, ID, and keywords for fuzzy matching.
func (TemplateItem) Template ¶
func (i TemplateItem) Template() api.Template
Template returns the wrapped api.Template.
func (TemplateItem) Title ¶
func (i TemplateItem) Title() string
Title returns the template name for list display.
Click to show internal directories.
Click to hide internal directories.