filter

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 11 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 {
	KeyMap               filterKeyMap
	FilteringWithContext bool
	// contains filtered or unexported fields
}

func New

func New(km keymap.KeyMap) Model

func (*Model) Blur

func (m *Model) Blur()

func (*Model) BlurAndClear

func (m *Model) BlurAndClear()

func (*Model) DecrementFilteredSelectionNum added in v0.2.0

func (m *Model) DecrementFilteredSelectionNum()

func (*Model) Focus

func (m *Model) Focus()

func (Model) Focused

func (m Model) Focused() bool

func (Model) GetContextualMatchIdx

func (m Model) GetContextualMatchIdx() int

func (Model) HasContextualMatches added in v0.4.0

func (m Model) HasContextualMatches() bool

func (Model) HasFilterText

func (m Model) HasFilterText() bool

func (*Model) IncrementFilteredSelectionNum added in v0.2.0

func (m *Model) IncrementFilteredSelectionNum()

func (Model) IsRegex

func (m Model) IsRegex() bool

func (Model) Matches

func (m Model) Matches(renderable Renderable) bool

func (*Model) ResetContextualFilterMatchNum added in v0.2.0

func (m *Model) ResetContextualFilterMatchNum()

func (*Model) SetFilteringWithContext

func (m *Model) SetFilteringWithContext(filteringWithContext bool)

func (*Model) SetIndexesMatchingFilter

func (m *Model) SetIndexesMatchingFilter(indexes []int)

func (*Model) SetIsRegex

func (m *Model) SetIsRegex(isRegex bool)

func (*Model) SetSuffix

func (m *Model) SetSuffix(suffix string)

func (*Model) SetValue

func (m *Model) SetValue(value string)

func (Model) Update

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

func (*Model) UpdateLabelAndSuffix

func (m *Model) UpdateLabelAndSuffix()

func (Model) Value

func (m Model) Value() string

func (Model) View

func (m Model) View() string

type Renderable

type Renderable interface {
	Render() string
}

Jump to

Keyboard shortcuts

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