From 2367ed34beccf3f2f1b8bbf6b8a171f50933d7a1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 5 Nov 2026 00:08:16 -0300 Subject: config, exec, look: Placement, BootShell, LookWord, DirLook and DiffLook go, with what each kept of pardes before it took acme's ways (exec's pardesPlace, atFoot, belowParent, pardesDoc and evictLonePristineTty with mouse.zig's call, layout's splitParent and columnFitsHalves that only they called, look's ls in a terminal for a directory, the word and patch looks' other branches, the SPC c p key, their Help and builtins-JSON rows, their lines in docs/typ and a changelog line), and the tests of them: Dir.zig's "DirLook terminal: a look at a directory opens a terminal there, no pane listing it", pardes.zig's "first document fallback splits like Term from the originating pane", "first document keeps its originating shell and only opens a column when it fits", "BootShell keep leaves the untouched boot shell a dragged document joins; replace closes it" and "a Look on a directory does not type ls into an occupied terminal", keys.zig's "keys: SPC j n and SPC j p walk on from the place a Look's +Search listing chose, its keyboard left in the file", look_and_exec.zig's "look-and-exec: a second LookWord list look in a directory refills its +Search rather than stacking another", placement.zig's "placement: Placement pardes puts a new pane right under the asking one, and bare it steps back to acme", output.zig's "LookNext/LookPrev keeps the result output a Look chose through a no-match answer, and a stale serial once it is deleted", and the snapshot scripts that turned them on (cmdword, doccol, look-dir, lookpanes, rsearch, splitparent, ttylook); the Del question's test makes its middle panes the acme way, a New at the column's foot, and the others that turned one on for their layout run without it Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/process/terminals.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'test/process/terminals.zig') diff --git a/test/process/terminals.zig b/test/process/terminals.zig index 250c4fb0..24772ced 100644 --- a/test/process/terminals.zig +++ b/test/process/terminals.zig @@ -212,17 +212,12 @@ fn namedOnce(gpa: std.mem.Allocator, exe: [:0]const u8) !void { const c = try process.Conn.dial(gpa, d.socket()); defer c.deinit(gpa); const root = d.root(); - try expectEqual(@as(c_int, 0), libc.mkdir(try std.fmt.allocPrintSentinel(a, "{s}/sub", .{root}, 0), 0o755)); - // A look at a directory starts a terminal there (DirLook terminal); - // DirLook pane, the default, lists it in a pane. - try c.write("/ctl", "DirLook terminal\n"); var made: std.ArrayList(u32) = .empty; - try made.append(a, try c.look(a, f.at("{s}/sub", .{root}), null)); const before = try serials(a, c); try c.write("/pane/1/ctl", "Term\n"); if (shell(a, "command -v fish >/dev/null", .{}) == 0) try c.write("/pane/1/ctl", "Term fish\n"); for (try serials(a, c)) |s| if (std.mem.indexOfScalar(u32, before, s) == null) try made.append(a, s); - try expect(made.items.len >= 2); + try expect(made.items.len >= 1); process.sleep(1500); // their shells start and say where they are // A shell started again by pty/ctl exec: named as it was. try c.write(f.at("/pane/{d}/pty/ctl", .{made.items[0]}), "exec\n"); -- cgit v1.3