tui

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tui is the interactive picker: a filterable list of sessions with a preview pane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Sessions []*session.Session
	Opener   opener.Opener
	Claude   string
	Rename   func(s *session.Session, name string) error
	// Search runs a Deep search over the given Sessions (copies of the picker's, so a
	// rename never races it). Nil disables ^s.
	Search func(ctx context.Context, sessions []*session.Session, query string, progress func(done, total int)) ([]claude.Result, error)
	// Recap returns a Session's Recap, whether it is outdated, and whether there is one.
	// It may touch the disk, so the picker calls it once per Session. Nil when Recaps are
	// off: no box.
	Recap func(s *session.Session) (r recap.Recap, outdated, ok bool)
}

Options configures the picker.

type Result

type Result struct {
	// Launch is set when the chosen opener must run after the TUI has released the terminal.
	Launch *opener.Launch
}

Result is what the picker hands back when it exits.

func Run

func Run(o Options) (Result, error)

Run starts the picker and blocks until it exits.

Jump to

Keyboard shortcuts

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