Documentation ¶
Index ¶
- type Item
- type ItemDelegate
- type Selection
- func (s *Selection) FilterState() list.FilterState
- func (s *Selection) FullHelp() [][]key.Binding
- func (s *Selection) Init() tea.Cmd
- func (s *Selection) IsFiltering() bool
- func (s *Selection) SetSize(width, height int)
- func (s *Selection) ShortHelp() []key.Binding
- func (s *Selection) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (s *Selection) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item represents a single item in the selector.
func (Item) Description ¶
Description returns the item description. Implements list.DefaultItem.
type ItemDelegate ¶
type ItemDelegate struct {
// contains filtered or unexported fields
}
ItemDelegate is the delegate for the item.
func (ItemDelegate) Height ¶
func (d ItemDelegate) Height() int
Height returns the item height. Implements list.ItemDelegate.
func (ItemDelegate) Spacing ¶
func (d ItemDelegate) Spacing() int
Spacing returns the spacing between items. Implements list.ItemDelegate.
type Selection ¶
type Selection struct {
// contains filtered or unexported fields
}
Selection is the model for the selection screen/page.
func (*Selection) FilterState ¶ added in v0.4.2
func (s *Selection) FilterState() list.FilterState
FilterState returns the current filter state.
func (*Selection) IsFiltering ¶ added in v0.4.2
IsFiltering returns true if the selector is currently filtering.
Click to show internal directories.
Click to hide internal directories.