Documentation
¶
Overview ¶
Package tui provides the Bubble Tea interactive TUI for JSON navigation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPalette ¶
ApplyPalette rebuilds all tui-level and panel-level styles from the palette.
func Start ¶
Start launches the TUI for the given node tree. It takes over the terminal (AltScreen) and restores it cleanly on exit. If the user presses 'o' to open a new file, the picker is shown and the explorer restarts with the selected file.
func StartWithPicker ¶
StartWithPicker launches a file picker TUI. Once a .json file is selected it parses it and transitions directly into the main JSON explorer.
Types ¶
type Model ¶
type Model struct {
// Set to true when the user wants to pick a new file (causes clean quit).
ReloadRequest bool
// contains filtered or unexported fields
}
Model is the root Bubble Tea model. It owns all three panels and dispatches keystrokes to the focused sub-panel.
Click to show internal directories.
Click to hide internal directories.