From c1917b949b9580de8bf0977874a210f0266812da Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 06:24:42 -0300 Subject: kinds #14, the core's PDF code gone: pdf.zig and pdf_view.zig leave and every pdf_enabled branch with them; look, Jump, Recent, dumps (one from before the addon opens as its pane), the watch, mouse, keys, the rail and the tag go through Kind for any kind's pane; test/pdf.zig's behaviours are T1 cases over 9P (addons_pdf.zig) and pane cases (a Shadow over a replica, a file changed under it), the harnesses load pdf.so by path Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/process_test.zig | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/process_test.zig') diff --git a/test/process_test.zig b/test/process_test.zig index 37dd0954..b1f64a45 100644 --- a/test/process_test.zig +++ b/test/process_test.zig @@ -22,14 +22,16 @@ const files = .{ pub fn main(init: std.process.Init) !void { const all = try init.minimal.args.toSlice(init.arena.allocator()); - // [--backend=tui|gui] [--image-addon=] [filter] + // [--backend=tui|gui] [--addon=]... [filter] var args: [3][:0]const u8 = undefined; var n: usize = 0; for (all[1..]) |a| { if (std.mem.startsWith(u8, a, "--backend=")) { process.backend = std.meta.stringToEnum(process.Backend, a["--backend=".len..]) orelse return error.Usage; - } else if (std.mem.startsWith(u8, a, "--image-addon=")) { - process.image_addon = try std.Io.Dir.cwd().realPathFileAlloc(init.io, a["--image-addon=".len..], init.arena.allocator()); + } else if (std.mem.startsWith(u8, a, "--addon=")) { + if (process.naddons == process.addons.len) return error.Usage; + process.addons[process.naddons] = try std.Io.Dir.cwd().realPathFileAlloc(init.io, a["--addon=".len..], init.arena.allocator()); + process.naddons += 1; } else if (n < args.len) { args[n] = a; n += 1; -- cgit v1.3