filterlist

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	PromptText string
	Height     int
	Width      int
	CharLimit  int
	Border     bool
	// contains filtered or unexported fields
}

func New

func New(state *commit.State) Model

func ToModel added in v0.4.0

func ToModel(m tea.Model, c tea.Cmd) (Model, tea.Cmd)

func (*Model) Blur

func (m *Model) Blur()

func (Model) Filter

func (m Model) Filter() string

func (*Model) Focus

func (m *Model) Focus()

func (Model) Focused

func (m Model) Focused() bool

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) Select added in v0.11.0

func (m *Model) Select(i int)

func (Model) SelectedItem

func (m Model) SelectedItem() list.Item

func (*Model) SetHeight added in v0.11.0

func (m *Model) SetHeight(h int)

func (*Model) SetItems

func (m *Model) SetItems(i []list.Item) tea.Cmd

func (*Model) SetPromptText added in v0.11.0

func (m *Model) SetPromptText(txt string)

func (*Model) SetWidth added in v0.11.0

func (m *Model) SetWidth(w int)

func (Model) Update

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

func (Model) View

func (m Model) View() string

type Styles

type Styles struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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