Documentation
¶
Overview ¶
Package optionspicker implements the /options overlay. It presents options (auto-approve, auto-compact, session-title). j/k navigate; Enter toggles the highlighted row in place; Esc/q cancels.
A row whose model is unconfigured is marked unavailable and Enter is a no-op on it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config seeds the picker. Adding a field here and a matching row in init is the only pairing required when a new option is introduced.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the Bubble Tea model for the optionspicker overlay.
func New ¶
New creates an optionspicker initialised with the current session state.
func (*Model) Reset ¶
Reset re-initialises the picker with fresh state. Call this before showing the overlay to ensure stale state is cleared.
func (*Model) SetSize ¶
SetSize stores the terminal dimensions for the overlay region.
type Option ¶
Option is the on/off/unavailable state of a single /options row.
type ToggleMsg ¶
ToggleMsg is dispatched when the user toggles an available row. Enabled is the new state after the toggle. The overlay stays open.
Source Files
¶
- optionspicker.go