Documentation
¶
Index ¶
- type ActionHost
- type Feature
- func (f *Feature) Active() bool
- func (f *Feature) Close()
- func (f *Feature) Init() tea.Cmd
- func (f *Feature) MatchCount() int
- func (f *Feature) Name() string
- func (f *Feature) Open() (tea.Model, tea.Cmd)
- func (f *Feature) RenderOverlay(base string) string
- func (f *Feature) ResizeInput()
- func (f *Feature) TopMatchTitle() string
- func (f *Feature) Update(msg tea.Msg) (tea.Cmd, bool)
- func (f *Feature) View(width, height int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionHost ¶
type ActionHost interface {
feature.BaseHost
PromptActive() bool
ContentWidth() int
ActiveTab() panel.Tab
ActivePanel() panel.Panel
SelectedListItem() (panel.Item, bool)
CommandSpecs() []commands.Spec
}
ActionHost exposes palette catalog actions without *Model in callbacks.
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
Feature owns the Ctrl+P command palette.
func (*Feature) MatchCount ¶
MatchCount returns the number of filtered palette entries (for tests).
func (*Feature) RenderOverlay ¶
func (*Feature) ResizeInput ¶
func (f *Feature) ResizeInput()
func (*Feature) TopMatchTitle ¶
TopMatchTitle returns the title of the top filtered entry (for tests).
Click to show internal directories.
Click to hide internal directories.