Documentation
¶
Index ¶
- type BackMsg
- type Cache
- type KeyMap
- type Model
- func (m Model) Error() error
- func (m Model) Init() tea.Cmd
- func (m Model) Items() []abs.LibraryItem
- func (m Model) Loading() bool
- func (m Model) Query() string
- func (m Model) Searched() bool
- func (m Model) SelectedPaletteActions() []components.PaletteItem
- func (m *Model) SetSize(width, height int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type NavigateDetailMsg
- type SearchResultsMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackMsg ¶
type BackMsg struct{}
BackMsg signals that the user wants to leave the search screen.
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache keeps lightweight per-library search snapshots in memory.
type KeyMap ¶
KeyMap defines keybindings for the search screen.
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
DefaultKeyMap returns the default keybindings for the search screen.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the bubbletea model for the search screen.
func (Model) Items ¶
func (m Model) Items() []abs.LibraryItem
Items returns the current search results.
func (Model) SelectedPaletteActions ¶ added in v0.2.0
func (m Model) SelectedPaletteActions() []components.PaletteItem
type NavigateDetailMsg ¶
type NavigateDetailMsg struct {
}
NavigateDetailMsg requests navigation to the detail screen for an item.
type SearchResultsMsg ¶
type SearchResultsMsg struct {
Items []abs.LibraryItem
Query string
Err error
}
SearchResultsMsg carries the results of a search query.