summaryrefslogtreecommitdiff
path: root/src/recent.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 12:40:11 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commit80f4398f1fed8d46d73cab8045005c02189b34fc (patch)
treead60d6e83a1ba08d9869012ac819ff58ca826248 /src/recent.zig
parenta864ef66736d3cfbdffed8b98a3c46be7985db74 (diff)
downloadpardes-80f4398f1fed8d46d73cab8045005c02189b34fc.tar.gz
pardes-80f4398f1fed8d46d73cab8045005c02189b34fc.zip
idioms #14, the rest: wire's has_cell_pixels (@hasField on a struct that always has the field) goes with its comptime branches, syntax's predicate ops are a stringToEnum switch, the public surfaces of sam_edit, locations, Names, Macro, selection_pipe, recent and builtins_json name their sets (OutOfMemory, Writer.Error), and std.fs.path and max_path_bytes are std.Io.Dir's
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/recent.zig')
-rw-r--r--src/recent.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recent.zig b/src/recent.zig
index 4f744750..31ed9c4c 100644
--- a/src/recent.zig
+++ b/src/recent.zig
@@ -170,7 +170,7 @@ pub const List = struct {
}
/// An entry as a line of the file, `<line> <col> <aline> <acol> <path>`.
- pub fn writeEntry(e: Entry, w: *std.Io.Writer) !void {
+ pub fn writeEntry(e: Entry, w: *std.Io.Writer) std.Io.Writer.Error!void {
// A name with a newline in it would read back as two lines: not kept.
if (std.mem.indexOfScalar(u8, e.path, '\n') == null)
try w.print("{d} {d} {d} {d} {s}\n", .{ e.line, e.col, e.aline, e.acol, e.path });