Documentation
¶
Index ¶
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 is a single item in a list
func (Item) Description ¶
Description returns the description of the item
func (Item) FilterValue ¶
FilterValue returns the value which is used for filtering
func (Item) StyleContent ¶
StyleContent styles the content of the item with glamour and returns the result
func (Item) WrapDescription ¶
WrapDescription wraps the description to the given width
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model contains state of the list
func New ¶
func New(colors colorscheme.Colorscheme, title string, height int, showDesc bool) Model
New creates a new list
func (Model) GetItem ¶
GetItem checks if the list has an item by a [0-9] index and also a [a-z] index if the list has more than 10 elements
func (Model) SelectedItem ¶
SelectedItem returns the selected item
Click to show internal directories.
Click to hide internal directories.