summaryrefslogtreecommitdiff
path: root/src/Kind.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-09 03:31:45 -0300
committerGabriel Schneider <[email protected]>2026-11-09 03:31:45 -0300
commit7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c (patch)
tree354ff35a205535ee35f9fa272639206e16ab0cec /src/Kind.zig
parent5de9d27458cd8ff7e326532e8923c933e141ea7f (diff)
downloadpardes-7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c.tar.gz
pardes-7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c.zip
idioms: std.Io's names for the std.fs aliases left in Addon, Kind, rollback and replica (std.Io.Dir.path, std.Io.Dir.max_path_bytes), and the window's handover dump written and removed through the shell's io (Io.Dir.writeFile at 0600, deleteFile) instead of libc open, write and unlink
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Kind.zig')
-rw-r--r--src/Kind.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Kind.zig b/src/Kind.zig
index 0a8fc7ae..2f40c8ea 100644
--- a/src/Kind.zig
+++ b/src/Kind.zig
@@ -972,7 +972,7 @@ fn moreFound(p: *Pardes, id: usize, rows: []const u8) void {
const rf = if (rp.file) |*f| f else return;
const o = if (rf.output) |*x| x else return;
const content = std.mem.concat(p.gpa, u8, &.{ rf.content, rows }) catch |err| return p.reportError(id, "found", err);
- pardes.panes.Output.fillResults(p, id, std.fs.path.dirname(rf.path) orelse p.sessionDir(), .search, o.arg(), content, null) catch |err| p.reportError(id, "found", err);
+ pardes.panes.Output.fillResults(p, id, std.Io.Dir.path.dirname(rf.path) orelse p.sessionDir(), .search, o.arg(), content, null) catch |err| p.reportError(id, "found", err);
}
fn same(o: Outcome) Outcome {
@@ -1136,7 +1136,7 @@ pub var seed_base: u64 = 0;
/// directory, refilled when one is there, whose rows n and N walk from the
/// kind's pane, a Look of one going to its kind (look.zig lookKind).
fn textPane(p: *Pardes, id: usize, slot: *const Slot, name: []const u8, text: []const u8) void {
- const dir = std.fs.path.dirname(slot.path) orelse p.sessionDir();
+ const dir = std.Io.Dir.path.dirname(slot.path) orelse p.sessionDir();
const content = p.gpa.dupe(u8, text) catch |err| return p.reportError(id, name, err);
pardes.panes.Output.fillResults(p, id, dir, .kind, name, content, null) catch |err| p.reportError(id, name, err);
}