fuzzy

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFuzzy

func NewFuzzy(
	ctx context.Context,
	info screen.RenderContext,
	options []Option,
	location geom.Vec2,
	result chan<- interface{},
) *taro.Program

Types

type Fuzzy

type Fuzzy struct {
	util.Lifetime
	// contains filtered or unexported fields
}

func (*Fuzzy) Init added in v0.1.1

func (f *Fuzzy) Init() taro.Cmd

func (*Fuzzy) Update added in v0.1.1

func (f *Fuzzy) Update(msg tea.Msg) (taro.Model, tea.Cmd)

func (*Fuzzy) View added in v0.1.1

func (f *Fuzzy) View(state *tty.State)

type Match

type Match struct {
	Score int
	Index *[]int
}

type Option

type Option struct {
	Text   string
	Chars  *util.Chars
	Match  *Match
	Result interface{}
}

func Filter

func Filter(options []Option, search string) []Option

func UnmarshalOptions

func UnmarshalOptions(input *janet.Value) (result []Option, err error)

Directories

Path Synopsis
fzf

Jump to

Keyboard shortcuts

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