summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-21 17:23:40 -0300
committerGabriel Schneider <[email protected]>2026-11-21 17:23:40 -0300
commit3dc3e796a9b69ec35a8a920aa12f3e04e61a0ab5 (patch)
treea62c9dd534adb640fca44b963503c93549efe821 /dev
parentbf813d0a06eb57bc8db0abcfe3dbb1f3e12f5834 (diff)
parent8152cf383c8296be29e80175b57e40f8d41049bf (diff)
downloadpardes-3dc3e796a9b69ec35a8a920aa12f3e04e61a0ab5.tar.gz
pardes-3dc3e796a9b69ec35a8a920aa12f3e04e61a0ab5.zip
integration: `Changes` and its lanes on the gathered line: pardes-merge52 (`pnmtmksv`: plain mode fixed, the narrow view rule, the soak's own faults) and pardes-layers-3 (`xzmopyqr` on `pvtvmpzx`, on pardes-merge50: `Changes [revset]` pins a revset's changes on a file's pane: a lane a change after the line number, nested ones a level to the right on their rows only, a line added whole green across; with it off nothing is paid: the revset and jj's answers are the session's, a view holds one bit (P45): the 121 counts within 0.1%); no conflict; core-test 898/1058 (160 skipped), shell-test 1100/1103; its gate: .scratch/sketch/reorg/merge53, the numbers in PARDES.md (2026-11-21)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev')
-rw-r--r--dev/gui/gui.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig
index aa28a3f0..47fd14d5 100644
--- a/dev/gui/gui.zig
+++ b/dev/gui/gui.zig
@@ -4876,6 +4876,16 @@ fn buildDecor(g: *Gui, gpa: std.mem.Allocator, surface: *const pardes.Surface, g
} else false;
if (grid_bottom < win_h and tag_last) try addDecor(g, gpa, 0, grid_bottom, win_w, win_h, chrome.tag_bg, 1, win_w, win_h);
try paneDecor(g, gpa, regions, surface.rail_ticks[0..surface.nrail_ticks], chrome, layout, surface.cols, surface.rows, win_w, win_h);
+ // The changes' lanes (jj.paint): a strip a level in the gutter's
+ // lane cells, each a third of a cell wide with half that of air
+ // before it, so three take one and a half cells (the ruled
+ // sample A); whole pixels, so every row's strip lines up.
+ for (surface.lanes.items) |lane| {
+ const w = @max(1, @round(layout.w / 3));
+ const x0 = @round(@as(f32, @floatFromInt(lane.x)) * layout.w + w / 2 + @as(f32, @floatFromInt(lane.level)) * (w + w / 2));
+ const y0 = @as(f32, @floatFromInt(lane.y)) * layout.h;
+ try addDecor(g, gpa, x0, y0, x0 + w, y0 + layout.h, lane.rgb, 1, win_w, win_h);
+ }
// A single spine runs down each column, through every tag and body.
for (regions) |column| {
if (column.kind != .column) continue;