filter

package
v0.0.0-...-17ac522 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 4 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 {
	// contains filtered or unexported fields
}

Model is the filter model struct

func New

func New() Model

New returns a filter model with default parameters

func (Model) Focused

func (m Model) Focused() bool

Focused returns the focus state of the model

func (Model) Init

func (m Model) Init() tea.Cmd

Init contains commands that are executed upon model initialization

func (*Model) SetFocus

func (m *Model) SetFocus(state bool)

SetFocus sets the focus state of the model

func (Model) Update

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

Update contains the filter's update loop, which currently checks for focus

func (Model) Value

func (m Model) Value() string

Value returns the content of the filter as a string

func (Model) View

func (m Model) View() string

View renders the filter into a text string

Jump to

Keyboard shortcuts

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