list

package
v0.0.0-...-c2b3586 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawList

func DrawList(items []Item, updateFunc UpdateFunc)

Types

type Item

type Item string

func (Item) FilterValue

func (i Item) FilterValue() string

type ListModel

type ListModel struct {
	List       list.Model
	UpdateFunc UpdateFunc
	Choice     string
	Quitting   bool
}

func (ListModel) Init

func (m ListModel) Init() tea.Cmd

func (ListModel) Update

func (m ListModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ListModel) View

func (m ListModel) View() string

type UpdateFunc

type UpdateFunc func(m ListModel, key string) (tea.Model, tea.Cmd)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL