From c37a700474e8b84cc3c7db8bf550b7c5f18b1871 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 13:15:15 -0300 Subject: kinds #23, the plumber: Plumb, skqrvwks's rules ported (one a line in plumb(6)'s order, the session's and kept in a dump, tried before the built-in ladder, prefix, suffix, isdir and isfile), its ports url, dir, file or any loaded kind by its name from the registry, a rule naming a kind not loaded refused in words when written and passed over like any rule that cannot make its target when its kind has gone since, so `Plumb suffix .svg to image` in init sends a look to the image addon Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/Core.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Core.zig') diff --git a/src/Core.zig b/src/Core.zig index cd7b4ec5..a595e6b0 100644 --- a/src/Core.zig +++ b/src/Core.zig @@ -210,6 +210,9 @@ db: Db = .{}, /// (`stdio.h`, ``) is tried in, in order. The session's, seeded /// with C's (/usr/include, /usr/local/include), kept in a dump. incl: std.ArrayList([]u8) = .empty, +/// Plumb's rules, the user's, tried in order before the built-in ones +/// (look.resolve), the first to match taking the look. Kept in a dump. +plumb: std.ArrayList([]u8) = .empty, /// Zerox's groups of panes on one buffer (File.syncTwins), and the id /// the next takes. twin_groups: std.ArrayList(pardes.panes.File.TwinGroup) = .empty, @@ -761,6 +764,8 @@ pub fn deinit(p: *Pardes) void { p.recent.deinit(p.recentGpa()); for (p.incl.items) |dir| p.gpa.free(dir); p.incl.deinit(p.gpa); + for (p.plumb.items) |rule| p.gpa.free(rule); + p.plumb.deinit(p.gpa); for (p.twin_groups.items) |group| p.gpa.free(group.path); p.twin_groups.deinit(p.gpa); p.fs.batch.bytes.deinit(p.gpa); -- cgit v1.3