summaryrefslogtreecommitdiff
path: root/core/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 22:46:35 -0300
committerGabriel Schneider <[email protected]>2026-11-24 22:46:35 -0300
commit806dc79a694c9df50cf3e13e9091986ebc74cb96 (patch)
tree04b7383d2b20ab08539a9b384beceee38168c882 /core/root.zig
parent791d47a64db09f842d23b3d0b03c40951f30aae6 (diff)
downloadpardes-806dc79a694c9df50cf3e13e9091986ebc74cb96.tar.gz
pardes-806dc79a694c9df50cf3e13e9091986ebc74cb96.zip
Pick: SPC t t (Themes) is a picker of the themes in the asking pane's own tag, the whole window wearing the theme under the cursor and no pane dimmed (every one flagged previewing), Enter wearing it, Esc putting the session's own back (pick-ui SPEC §5.1, §3.6, walk UI line F item 4): a source `themes` (Pick.Source; its rows the themes in their order, the cursor starting on the one worn; no reader, no acts, no other sources, no second row), its preview colors.previewTheme, the one function the `:theme ` argument rows can call too: Pardes.theme_preview over the session's theme in theme() and chromeTheme() (its chrome worked out once a theme, never a frame; nothing loaded, a ThemeFile and a custom theme untouched under it), set in the step of the key that moved the cursor (Pick.produceAll) and cleared at the roll-up; both fields on root.zig's kept_out list (derived from the picker's cursor, which the digest has); Themes from a 9P script or under `Jumps new-pane` opens +Themes as before; TEST: Pick.zig "SPC t t is a picker of the themes ..." (its host, the cursor on the worn theme, every pane previewing, Down wears the next with the session's unchanged, Esc, Enter); core-test 1027/1194 (167 skipped), 0 failed, load 8
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'core/root.zig')
-rw-r--r--core/root.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/root.zig b/core/root.zig
index a4adf7b1..88ae821b 100644
--- a/core/root.zig
+++ b/core/root.zig
@@ -761,6 +761,7 @@ const kept_out = [_]struct { []const u8, []const u8, []const u8 }{
.{ "Core.zig", "shell_rows", "a terminal's rows as read here, swept at every update; the terminal's own digest covers its active area, not its history (Term.zig `calls`)" },
.{ "Core.zig", "diff_output locations_cache tty_filter_palette body_chrome", "caches of pure functions of their key (a text, a theme): a step finds what it would make; a query row's colours from them are out of its digest (locations.Row.digest), and what a step asks a worker to paint is never decided by them (Stream.paintRows)" },
.{ "Core.zig", "retired_panes", "panes torn down this step, freed at its end" },
+ .{ "Core.zig", "theme_preview preview_chrome", "a themes picker's preview (colors.previewTheme): made from the live picker's cursor, in the digest with it, after every step (Pick.produceAll) and gone at its roll-up; a step reading a theme meanwhile reads the one its own state previews" },
.{ "Core.zig", "multi_first multi_stop multi_index multi_count exec_depth exec_column", "a step's own: set by a key's replay across the ranges (normal.replaySels) and a word's run (exec.zig), each put back before the step ends; between steps what `init` makes, so a load takes them as it makes them (a dump's said 2^30 ranges once: a yank sized its register by it)" },
.{ "Core.zig", "rects col_x col_w", "a view's geometry: the layout pass's (layout.compute) over its columns and screen, at every sync and resize, and at a load (dump.afterLoad); never read before it" },
.{ "Core.zig", "distrusted frames tape", "Options: the client's own list, its runner's statistics, its tape" },