picker

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package picker provides a fuzzy search picker using bubbletea

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pick

func Pick(title string, items []string) (string, error)

Pick runs the picker and returns the selected item

Types

type Model

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

Model represents the picker state

func New

func New(title string, items []string) Model

New creates a new picker model

func (Model) Cancelled

func (m Model) Cancelled() bool

Cancelled returns true if the user cancelled

func (Model) Init

func (m Model) Init() tea.Cmd

Init implements tea.Model

func (Model) Selected

func (m Model) Selected() string

Selected returns the selected item

func (Model) Update

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

Update implements tea.Model

func (Model) View

func (m Model) View() string

View implements tea.Model

Jump to

Keyboard shortcuts

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