Expand description
State for the integrated TUI config editor (Phase 1+).
What: Lives in state so both the renderer (ui::modals::config_editor)
and the key handler (events::modals::config_editor) can read and mutate
it without re-deriving fuzzy-match results or popup buffers per frame.
The editor reuses Pacsea’s three-pane mental model:
- Top pane: file list (default) or matching-keys list (when a query is typed, or when a file has been selected and the key list is shown).
- Middle pane: the search query input.
- Bottom pane: details for the selected key (current value, summary, reload behavior).
settings.conf, keybinds.conf, and theme.conf are editable end-to-end;
repos.conf appears in the file list as a disabled row so users can see
the roadmap without being able to open it yet.
Structs§
- Config
Editor State - Top-level editor state held by
crate::state::AppState::config_editor_state. - Edit
Popup State - State for the harmonized edit popup.
Enums§
- Config
Editor Focus - Which control inside the editor currently consumes typed characters.
- Config
Editor Search Focus - Which sub-panel inside the config-editor search pane is active.
- Config
Editor View - Which top-pane view is active in the config editor.
- Edit
Popup Kind - Editable popup variant.
Functions§
- bool_
to_ canonical - Canonical on-disk representation for a boolean.
- chord_
to_ canonical_ string - What: Serialize a
KeyChordinto the canonical string format understood bytheme::parsing::parse_key_chord. - color_
to_ config_ string - What: Serialize a ratatui color into the
#rrggbbform accepted bytheme.confparsing. - current_
value_ string - What: Read the current value for
entryfromSettings::settings(), returning the canonical string the popup should pre-populate. - key_
event_ to_ canonical_ chord_ string - What: Serialize a raw key event into the canonical chord string used by the keybind parser, for the popup’s capture mode.
- keybind_
chords_ for_ key - What: Look up the in-memory chord list for a canonical keybind action key.
- lookup_
setting - Convenience wrapper used by tests and helpers.
- theme_
color_ value_ string - What: Look up the effective in-memory color for a theme schema key.