Documentation ¶
Index ¶
- type Item
- type ItemDelegate
- type Items
- 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 NewItemDelegate ¶
func NewItemDelegate(common *common.Common, activePane *pane) *ItemDelegate
NewItemDelegate creates a new ItemDelegate.
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 ¶
func (s *Selection) FilterState() list.FilterState
FilterState returns the current filter state.
func (*Selection) IsFiltering ¶
IsFiltering returns true if the selector is currently filtering.
Click to show internal directories.
Click to hide internal directories.