Documentation
¶
Overview ¶
Package settings is the dashboard's configuration view: it shows where the active config came from and what it resolved to, offers a manual reload, and watches the file (on the shared refresh heartbeat) so edits hot-apply without restarting the TUI. Theme and credentials still need a restart — the theme applies once per process and auth requires a new client.
Index ¶
Constants ¶
const ID core.SectionID = "settings"
ID is the section identifier.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the settings section: an interactive menu over the config keys. Enum rows cycle in place and apply live — a theme change re-skins the dashboard on the spot — while numbers and lists edit through a small form. Every change validates, saves atomically, and hot-reloads. The literal config.toml stays one keypress away (e) for the structured tables the menu doesn't model (sections, lenses, keys).
func (*Model) CapturesInput ¶
CapturesInput reports whether an editor or picker owns the keyboard.
func (*Model) HelpBindings ¶
HelpBindings lists the section's contextual bindings.
func (*Model) Init ¶
func (m *Model) Init(ctx *core.ProgramContext) tea.Cmd
Init records the config file's current mtime as the auto-reload baseline.