Documentation
¶
Index ¶
- Variables
- type Item
- type Model
- type ModelCmdList
- func (m ModelCmdList) Current() string
- func (m *ModelCmdList) Filter(term string)
- func (m ModelCmdList) Height() int
- func (m ModelCmdList) Init() tea.Cmd
- func (m ModelCmdList) Reset()
- func (m ModelCmdList) StringView() string
- func (m ModelCmdList) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m ModelCmdList) View() tea.View
- type ModelFileList
- func (m ModelFileList) Current() string
- func (m *ModelFileList) Filter(term string)
- func (m ModelFileList) Height() int
- func (m ModelFileList) Init() tea.Cmd
- func (m *ModelFileList) SetItems(paths []string)
- func (m ModelFileList) StringView() string
- func (m ModelFileList) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m ModelFileList) View() tea.View
- type ModelModelsList
- func (m ModelModelsList) Current() api.ModelInfo
- func (m *ModelModelsList) Filter(term string)
- func (m *ModelModelsList) GetHeight() int
- func (m ModelModelsList) Height() int
- func (m ModelModelsList) Init() tea.Cmd
- func (m ModelModelsList) NextPage()
- func (m ModelModelsList) PrevPage()
- func (m *ModelModelsList) Refresh(items []api.ModelInfo)
- func (m ModelModelsList) StringView() string
- func (m ModelModelsList) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m ModelModelsList) View() tea.View
- type ModelProvidersList
- func (m ModelProvidersList) Current() config.Provider
- func (m *ModelProvidersList) Filter(term string)
- func (m ModelProvidersList) Height() int
- func (m ModelProvidersList) Init() tea.Cmd
- func (m ModelProvidersList) NextPage()
- func (m ModelProvidersList) PrevPage()
- func (m *ModelProvidersList) Refresh(items []config.Provider)
- func (m ModelProvidersList) StringView() string
- func (m ModelProvidersList) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m ModelProvidersList) View() tea.View
Constants ¶
This section is empty.
Variables ¶
View Source
var COMMANDS = []item{ {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, {/* contains filtered or unexported fields */}, }
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (Item) Description ¶
func (Item) FilterValue ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func LaunchSessionList ¶
type ModelCmdList ¶
type ModelCmdList struct {
// contains filtered or unexported fields
}
func LaunchCommandList ¶
func LaunchCommandList() ModelCmdList
func (ModelCmdList) Current ¶
func (m ModelCmdList) Current() string
func (*ModelCmdList) Filter ¶
func (m *ModelCmdList) Filter(term string)
func (ModelCmdList) Height ¶
func (m ModelCmdList) Height() int
func (ModelCmdList) Init ¶
func (m ModelCmdList) Init() tea.Cmd
func (ModelCmdList) Reset ¶ added in v0.1.15
func (m ModelCmdList) Reset()
func (ModelCmdList) StringView ¶
func (m ModelCmdList) StringView() string
func (ModelCmdList) View ¶
func (m ModelCmdList) View() tea.View
type ModelFileList ¶ added in v1.2.3
type ModelFileList struct {
// contains filtered or unexported fields
}
ModelFileList is the @file mention picker. It mirrors ModelCmdList but ranks entries with fuzzy matching over the file index.
func NewFileList ¶ added in v1.2.3
func NewFileList(paths []string) ModelFileList
func (ModelFileList) Current ¶ added in v1.2.3
func (m ModelFileList) Current() string
Current returns the highlighted path, or "" if the index is empty.
func (*ModelFileList) Filter ¶ added in v1.2.3
func (m *ModelFileList) Filter(term string)
Filter ranks the index against term. An empty term shows everything in index order; otherwise results are fuzzy-ranked.
func (ModelFileList) Height ¶ added in v1.2.3
func (m ModelFileList) Height() int
func (ModelFileList) Init ¶ added in v1.2.3
func (m ModelFileList) Init() tea.Cmd
func (*ModelFileList) SetItems ¶ added in v1.2.3
func (m *ModelFileList) SetItems(paths []string)
SetItems replaces the candidate file index (e.g. after lazily building it).
func (ModelFileList) StringView ¶ added in v1.2.3
func (m ModelFileList) StringView() string
func (ModelFileList) View ¶ added in v1.2.3
func (m ModelFileList) View() tea.View
type ModelModelsList ¶ added in v0.1.8
type ModelModelsList struct {
// contains filtered or unexported fields
}
func LaunchModelsList ¶ added in v0.1.8
func LaunchModelsList() ModelModelsList
func (ModelModelsList) Current ¶ added in v0.1.8
func (m ModelModelsList) Current() api.ModelInfo
func (*ModelModelsList) Filter ¶ added in v0.1.8
func (m *ModelModelsList) Filter(term string)
func (*ModelModelsList) GetHeight ¶ added in v0.1.13
func (m *ModelModelsList) GetHeight() int
func (ModelModelsList) Height ¶ added in v0.1.8
func (m ModelModelsList) Height() int
func (ModelModelsList) Init ¶ added in v0.1.8
func (m ModelModelsList) Init() tea.Cmd
func (ModelModelsList) NextPage ¶ added in v0.1.13
func (m ModelModelsList) NextPage()
func (ModelModelsList) PrevPage ¶ added in v0.1.13
func (m ModelModelsList) PrevPage()
func (*ModelModelsList) Refresh ¶ added in v0.1.8
func (m *ModelModelsList) Refresh(items []api.ModelInfo)
func (ModelModelsList) StringView ¶ added in v0.1.8
func (m ModelModelsList) StringView() string
func (ModelModelsList) View ¶ added in v0.1.8
func (m ModelModelsList) View() tea.View
type ModelProvidersList ¶ added in v1.2.3
type ModelProvidersList struct {
// contains filtered or unexported fields
}
func LaunchProviderList ¶ added in v1.2.3
func LaunchProviderList() ModelProvidersList
func (ModelProvidersList) Current ¶ added in v1.2.3
func (m ModelProvidersList) Current() config.Provider
func (*ModelProvidersList) Filter ¶ added in v1.2.3
func (m *ModelProvidersList) Filter(term string)
func (ModelProvidersList) Height ¶ added in v1.2.3
func (m ModelProvidersList) Height() int
func (ModelProvidersList) Init ¶ added in v1.2.3
func (m ModelProvidersList) Init() tea.Cmd
func (ModelProvidersList) NextPage ¶ added in v1.2.3
func (m ModelProvidersList) NextPage()
func (ModelProvidersList) PrevPage ¶ added in v1.2.3
func (m ModelProvidersList) PrevPage()
func (*ModelProvidersList) Refresh ¶ added in v1.2.3
func (m *ModelProvidersList) Refresh(items []config.Provider)
func (ModelProvidersList) StringView ¶ added in v1.2.3
func (m ModelProvidersList) StringView() string
func (ModelProvidersList) View ¶ added in v1.2.3
func (m ModelProvidersList) View() tea.View
Click to show internal directories.
Click to hide internal directories.