From 75e4787be773c8cbfd2e60e59d409b9556898365 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 15:58:05 -0300 Subject: kinds #35, the core's seam for ABI 3 (Kind.zig): each pane of a kind with view told each open view's facts by id when they change (the slot's view table, a hash a view, a stopped view told cols 0, and a step woken for a view a frame's layout changed) and ticked after, the tick's pa_tick and its prefix (placed and retag gone: the art words go on every pane of a PA_PICTURES kind from the first frame, the same bytes whichever view's step lays the tag out, by the session's first view, which was the 30 ms soak's rollbacks), found's rows the search's or appended to its +Search after, cancel's tokens dropped on every core (on the tape), a picture over PA_RASTER_MAX dropped and said once, a record of at most PA_RECORD_MAX, a Debug call over 16 ms of the kind's own (its allocations and job copies the core's) said once a site and failing --addon-test (which gains view N on|off and prints the tag the core makes), and the record ยง17.5's: a Restore, an Addon load and a reload read the pane's file as a Look does, a file not there a placeholder saying is not here, record kept, opened by the next Look or watch of it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/look.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/look.zig') diff --git a/src/look.zig b/src/look.zig index 0414f6d1..7f76602e 100644 --- a/src/look.zig +++ b/src/look.zig @@ -622,8 +622,9 @@ pub fn runSearch(p: *Pardes, id: usize, pat_raw: []const u8, start: SearchStart, var anchor: ?usize = null; if (pane.addon != null) { // A kind's own rows, if it has a search. - const rows = Kind.search(p, id, pat, out) orelse ""; - out_len = rows.len; + const rows = Kind.search(p, id, pat) orelse ""; + out_len = @min(rows.len, out.len); + @memcpy(out[0..out_len], rows[0..out_len]); nrows = std.mem.count(u8, rows, "\n"); } else { const lines = try edit.paneCursorLines(p, &pane.body); @@ -1738,6 +1739,8 @@ pub fn lookAt(p: *Pardes, id: usize, operand_raw: []const u8) void { return missed(p, id, "no pane {s}", .{pl.path[0..@min(pl.path.len, 32)]}); } const target = p.panes[t.id].?; + // A kind's placeholder waiting for its file opens if it is here now. + if (target.addon) |k| if (!k.live) pardes.dump.reviveSlot(p, t.id, k); // A place in a kind's pane is its `address`'s, a miss its to say. if (target.addon != null and t.at.line > 0) { var place: [41]u8 = undefined; -- cgit v1.3