Documentation
¶
Overview ¶
Package threadpicker provides thread selection UI for fabric channels.
Index ¶
- type Model
- func (m Model) Activate(threads []domain.Thread) Model
- func (m Model) Deactivate() Model
- func (m Model) HandleKey(msg tea.KeyMsg) (Model, bool, *domain.Thread)
- func (m Model) IsActive() bool
- func (m Model) Next() Model
- func (m Model) Prev() Model
- func (m Model) Selected() *domain.Thread
- func (m Model) SetThreads(threads []domain.Thread) Model
- func (m Model) ThreadCount() int
- func (m Model) UpdateQuery(query string) (Model, bool)
- func (m Model) View(maxWidth int) string
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 holds the thread picker state.
func (Model) HandleKey ¶
HandleKey processes key events during picker display. Returns (updated model, consumed bool, selected *domain.Thread if enter pressed).
func (Model) SetThreads ¶
SetThreads updates the list of available threads.
func (Model) ThreadCount ¶
ThreadCount returns the number of available threads.
func (Model) UpdateQuery ¶
UpdateQuery updates the filter query and re-filters. Returns false if no matches (caller may choose to keep open or close).
Click to show internal directories.
Click to hide internal directories.