Documentation ¶
Index ¶
- type CloseSearchMsg
- type KeyMap
- type Model
- func (m Model) GetResults() []*bandcamp.Result
- func (m Model) GetSearchTerm() string
- func (m Model) GetSelectedResult() *bandcamp.Result
- func (m Model) Init() tea.Cmd
- func (m Model) SearchBandcamp(searchTerm string) tea.Msg
- func (m *Model) SetShowSearch(v bool)
- func (m *Model) SetSize(width, height int)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
- type Result
- type SelectEntryMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloseSearchMsg ¶
type CloseSearchMsg struct{}
type KeyMap ¶
type KeyMap struct { // Keybindings used when setting a filter. CancelWhileSearching key.Binding AcceptWhileSearching key.Binding OpenEntry key.Binding SelectEntry key.Binding Search key.Binding CloseSearch key.Binding }
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
type Model ¶
type Model struct { // TODO(manuel, 2023-08-09) We can actually use the help widget from the list // by passing our own keys using AdditionalShortHelpKeys and such // however, not sure if this allows us to override the whole filtering stuff SearchInput textinput.Model KeyMap ShowSearch bool // contains filtered or unexported fields }
func (Model) GetResults ¶
func (Model) GetSearchTerm ¶
func (Model) GetSelectedResult ¶
func (*Model) SetShowSearch ¶
type SelectEntryMsg ¶
Click to show internal directories.
Click to hide internal directories.