lists

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTitle = "Select project"

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item string

func (Item) FilterValue

func (i Item) FilterValue() string

type KeyMap

type KeyMap struct {
	Select key.Binding
}

func DefaultKeyMap

func DefaultKeyMap() KeyMap

type Model

type Model struct {
	List   list.Model
	Choice string
	Keys   KeyMap
}

func New

func New(paths []string, keys []key.Binding, extra key.Binding) Model

func NewNoExt added in v0.2.0

func NewNoExt(paths []string, keys []key.Binding) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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