selector

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

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

func (*Cmd) Run

func (c *Cmd) Run(inputChan chan string) (string, error)

type Selector

type Selector interface {
	Run(inputChan chan string) (string, error)
}

Displays a series of options for user selection.

func New

func New(t Type) (Selector, error)

New creates a new Selector instance based on the provided selector type and options.

func NewCmd

func NewCmd(cmd string) Selector

type Type

type Type uint8

Type represents the different types of selectors available.

const (
	UnknownType Type = iota
	TypeFzy
	TypeFzf
	TypeSkim
)

func TypeFromStr

func TypeFromStr(s string) (Type, error)

Jump to

Keyboard shortcuts

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