picker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package picker is a modal single-choice list used to pick a field option (which column to move a card to, a priority, a state). Like prompt, it is a dumb component: the parent drives navigation keys and reads Selected.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

func New

func New() Model

func (*Model) MoveDown

func (m *Model) MoveDown()

func (*Model) MoveUp

func (m *Model) MoveUp()

func (*Model) Open

func (m *Model) Open(title string, options []string)

Open configures the picker with a title and options and resets the cursor.

func (Model) Selected

func (m Model) Selected() string

Selected returns the highlighted option, or "" when there are none.

func (*Model) SetWidth

func (m *Model) SetWidth(w int)

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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