Documentation
¶
Overview ¶
Package ui provides a user interface for searching.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTemplatePicker ¶
RunTemplatePicker launches the interactive UI for selecting a markdown template. It returns the path to the chosen template or an error if none was selected.
Types ¶
type SearchModel ¶
type SearchModel struct {
// contains filtered or unexported fields
}
func NewSearchModel ¶
func NewSearchModel(idx bleve.Index) SearchModel
func (SearchModel) Chosen ¶
func (m SearchModel) Chosen() string
func (SearchModel) Init ¶
func (m SearchModel) Init() tea.Cmd
func (SearchModel) View ¶
func (m SearchModel) View() string
type TemplatePickerModel ¶
type TemplatePickerModel struct {
// contains filtered or unexported fields
}
TemplatePickerModel represents the Bubble Tea state for the template selection UI.
func NewTemplatePicker ¶
func NewTemplatePicker(templatesDir string) (TemplatePickerModel, error)
NewTemplatePicker initializes the model with available markdown templates.
func (TemplatePickerModel) Init ¶
func (m TemplatePickerModel) Init() tea.Cmd
Init implements tea.Model.
func (TemplatePickerModel) View ¶
func (m TemplatePickerModel) View() string
View implements tea.Model, rendering the list of templates.
Click to show internal directories.
Click to hide internal directories.