diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 05:32:50 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 05:32:51 -0300 |
| commit | 038a94400d668406ed5fab9ad8c00e064365dbb1 (patch) | |
| tree | 6d79bf51a9b53e290a7cbf5736516c2536432024 /core/draw.zig | |
| parent | 0e6c60d17dd5f0e48232a46096e3a7a92f8841cf (diff) | |
| download | pardes-038a94400d668406ed5fab9ad8c00e064365dbb1.tar.gz pardes-038a94400d668406ed5fab9ad8c00e064365dbb1.zip | |
bindings, TagState, Band, draw: the registers as UX DESIGN.md D11 rules them: rolled, only the registers holding something (six of S's eleven items were `—`), each `key value` with its value in 20 cells at most (bindings.registerShown: its first line, a path cut from the left, `…proj/core/Query.zig`, where the useless end was cut before, other text from the right, `const best = rank(q…`, a newline that ends what shows said by a dim `⏎`, the value stopping there); unrolled, every register a row `key value` (the key bold in the key ink, the value in the text's, `—` for an empty one in the dim ink) with its name at the row's right end in the dim ink (Band.Row.meta), where the fixed name was at full ink and the value, the content, at 1.58:1; the doc step's verbs `p after P before R replace y into` dim with their letters bold in the key ink (Band.Row.keys; `next` gone); Band.Row.quiet, a byte range in the dim ink; TEST FIRST: bindings.zig's registers test holds D11 (fails on the parent at its rolled level, which shows `a const best = rank(q, nam… / —`): the rolled level with a path and a newline among its registers and the dim `⏎`, the unrolled rows, the empty register's `—` and the names in the dim ink, the verbs' letters bold in the key ink; core-test 1068/1238 (170 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/draw.zig')
| -rw-r--r-- | core/draw.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/draw.zig b/core/draw.zig index 9f9abb58..1e53d1d0 100644 --- a/core/draw.zig +++ b/core/draw.zig @@ -934,7 +934,11 @@ fn joinBand(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane, r: R // A chord (Help's `SPC h t`): keys, at the text's weight. if (b < part.row.chord) style.fg = .{ .rgb = chrome.roles.key }; if (b < part.row.pre) style.fg = .{ .rgb = if (active) chrome.tag_active_name_fg else chrome.tag_name_fg }; - if (part.row.dim or (b >= part.row.pre and b < part.row.pre + part.row.faint)) style.fg = .{ .rgb = on.dim }; + if (part.row.dim or (b >= part.row.pre and b < part.row.pre + part.row.faint) or (b >= part.row.quiet[0] and b < part.row.quiet[1])) style.fg = .{ .rgb = on.dim }; + for (part.row.keys) |k| if (k == b) { + style.fg = .{ .rgb = chrome.roles.key }; + style.bold = true; + }; if (part.row.under) style.ul = .single; // A matched letter: the match ink, bold, on the row's own // ground (never a ground of its own: on the cursor row's |
