picker

package
v0.0.0-...-2fa9275 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action int
const (
	ActionNone Action = iota
	ActionResume
	ActionCopy
	ActionCancel
)

type Model

type Model struct {
	Sessions    []session.SessionCard
	Cursor      int
	Width       int
	Height      int
	ShowDetails bool
	Selected    *session.SessionCard
	Action      Action
}

func New

func New(sessions []session.SessionCard) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

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