Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Msg ¶
type Msg interface {
// contains filtered or unexported methods
}
Msg marks the picker's async messages so the parent model can route them with a single type-switch case.
type Picker ¶
type Picker struct {
// contains filtered or unexported fields
}
Picker is a tabbed, searchable modal for browsing external sources. Each tab corresponds to a registered source (PRs, issues, etc.) with lazy initialization and per-tab result caching.
func New ¶
New constructs a tabbed picker. initialTab selects the initially active tab by source ID; if not found the first tab is used.
func (*Picker) Init ¶
Init kicks off the initial tab: checks availability, initializes, and searches.
type Result ¶
type Result struct {
Item sources.Item
SourceID string
Source sources.Source
Manifest sources.Manifest
Templates sources.TemplateConfig
}
Result is the item selected by the user, if any. Source and Manifest let the parent fetch the item's detail (capability-gated) before rendering session templates.
type SpinnerTickMsg ¶
SpinnerTickMsg re-exports spinner.TickMsg so the parent can route it.