fuzzy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fuzzy

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

func NewFuzzy

func NewFuzzy(
	ctx context.Context,
	info screen.RenderContext,
	options []Option,
	location geom.Vec2,
) *Fuzzy

func (*Fuzzy) Resize

func (f *Fuzzy) Resize(size mux.Size) error

func (*Fuzzy) Result

func (f *Fuzzy) Result() <-chan interface{}

func (*Fuzzy) State

func (f *Fuzzy) 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