diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 06:33:52 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 06:33:53 -0300 |
| commit | ffe05cceb897b3ae6a6d36491f9318a8aa3426e7 (patch) | |
| tree | 352414579559060b3e8486af34e29d49fd5df781 /core/look.zig | |
| parent | 5b7124d10f9b2db8d1c5e99eacb9b6d2fffff0cc (diff) | |
| parent | a403340ec5c90238b136ca85fc64d65809b29a65 (diff) | |
| download | pardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.tar.gz pardes-ffe05cceb897b3ae6a6d36491f9318a8aa3426e7.zip | |
integration: the build's second pass on the handle and the devices once: pardes-build-pass2 (pardes-isolate and the tree-sitter=disabled tier deleted; one option, grammars = none | minimal | full; build.zig with the consumer's lines as its head comment; test/lib -> test/consumer; the manual's library section) and pardes-merge31, merged without a textual conflict; one line follows a deletion: dev/file_watch.zig's end-to-end test of a session's watches (written since on the base) guarded on fs.platform_has_fs, which the first of these changes deleted: the guard reads as the file's other tests' (comptime !supported); tui core-test 857/1008 (151 skipped), shell-test 1048/1051, the window builds; the coordinator's gate in the ledger (reorg/merge32)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/look.zig')
| -rw-r--r-- | core/look.zig | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/core/look.zig b/core/look.zig index 1023a532..1d296775 100644 --- a/core/look.zig +++ b/core/look.zig @@ -7,7 +7,6 @@ const exec = @import("exec.zig"); const Plumb = @import("Plumb.zig"); const config = @import("config.zig"); const diff = @import("diff.zig"); -const platform_has_fs = filesystem.platform_has_fs; const layout = @import("layout.zig"); const modal = @import("modal.zig"); const tagline = @import("tagline.zig"); @@ -1758,7 +1757,6 @@ test "parsePathLine: `end` separates a whole-token target from a lenient read" { } test "lookableSpan peels prose punctuation off a path, largest first" { - if (!platform_has_fs) return; var realbuf: [4096]u8 = undefined; try std.testing.expectEqualDeep( @as(?Span, .{ .start = 0, .end = "core/look.zig".len }), @@ -1782,7 +1780,6 @@ test "lookableSpan peels prose punctuation off a path, largest first" { } test "lookableLineSpan takes the row's location and stops before its text" { - if (!platform_has_fs) return; var realbuf: [4096]u8 = undefined; try std.testing.expectEqualDeep( @as(?Span, .{ .start = 0, .end = "core/look.zig:12:5-9".len }), @@ -1813,7 +1810,6 @@ test "lookableLineSpan takes the row's location and stops before its text" { } test "lookableLineSpan prefers the longest run, so a blank inside a path is one span" { - if (!platform_has_fs) return; var realbuf: [4096]u8 = undefined; const io = std.testing.io; var tmp = std.testing.tmpDir(.{}); @@ -2054,7 +2050,6 @@ test "a pointer resting where a look-hover found nothing does not wake the core } test "Look on each kind of diff line opens the new file at the line it names" { - if (!platform_has_fs) return; const numbered = "line 1\nline 2\nline 3\nline 4\nline 5\nline 6\nline 7\nline 8\nline 9\n" ++ "line 10\nline 11\nline 12\nline 13\nline 14\nline 15\n"; const diff_text = @@ -2116,7 +2111,6 @@ test "Look on each kind of diff line opens the new file at the line it names" { } test "Look on plain diff -u output: names as written, timestamps cut, next to the diff" { - if (!platform_has_fs) return; const diff_text = "--- old/x.zig\t2026-09-30 10:00:00.000000000 +0000\n" ++ "+++ new/x.zig\t2026-09-30 11:00:00.000000000 +0000\n" ++ "@@ -1,2 +1,3 @@\n" ++ @@ -2136,7 +2130,6 @@ test "Look on plain diff -u output: names as written, timestamps cut, next to th } test "Look on a diff: headers and a hunk line's prefix are the whole line, hover and click alike" { - if (!platform_has_fs) return; const numbered = "one\ntwo\nthree\nfour\nfive\nsix\n"; const diff_text = \\diff --git a/src/old.zig b/src/new.zig @@ -2223,7 +2216,6 @@ test "Look on a diff: headers and a hunk line's prefix are the whole line, hover } test "a click, a 9P whole-line look and an empty event write-back take one expansion on every kind of diff line, a blank context line too" { - if (!platform_has_fs) return; const diff_text = \\diff --git a/src/new.zig b/src/new.zig \\--- a/src/new.zig @@ -2286,7 +2278,6 @@ test "a click, a 9P whole-line look and an empty event write-back take one expan } test "every entry point to Look takes one expansion: a diff line and a file:12:5: line land in one place by each" { - if (!platform_has_fs) return; const numbered = "l1\nl2\nl3\nl4\nl5\nl6\nl7\nl8\nl9\nl10\nl11\nline 12 here\nl13\n"; const diff_text = \\diff --git a/src/x.zig b/src/x.zig @@ -2378,7 +2369,6 @@ test "every entry point to Look takes one expansion: a diff line and a file:12:5 } test "a tag word looked at by a click and by Enter is one record to an event reader; an exec on a diff line takes its word, never the address" { - if (!platform_has_fs) return; const diff_text = \\diff --git a/src/x.zig b/src/x.zig \\--- a/src/x.zig @@ -2449,7 +2439,6 @@ test "a tag word looked at by a click and by Enter is one record to an event rea } test "Incl's directories find a name found nowhere else, <name> too; bare Incl lists them, Incl - empties them, and a dump keeps them" { - if (!platform_has_fs) return; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); try tmp.dir.createDirPath(std.testing.io, "inc"); @@ -2489,7 +2478,6 @@ test "Incl's directories find a name found nowhere else, <name> too; bare Incl l test "LookNext in a command pane walks its own file:line places, whoever walked last" { if (pardes.Term.ops == null) return error.SkipZigTest; // a command pane - if (!platform_has_fs) return; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "x.c", .data = "a\nb\nc\n" }); @@ -2546,7 +2534,6 @@ test "Look outside a diff pane expands and looks as ever" { } test "Look on a diff under each git prefix opens the repository's file, and a real a/ directory under --no-prefix" { - if (!platform_has_fs) return; const Case = struct { text: []const u8, file: []const u8 }; const cases = [_]Case{ .{ .text = "diff --git a/src/x.zig b/src/x.zig\n--- a/src/x.zig\n+++ b/src/x.zig\n@@ -1,2 +1,2 @@\n-one\n+uno\n two\n", .file = "/src/x.zig" }, @@ -2573,7 +2560,6 @@ test "Look on a diff under each git prefix opens the repository's file, and a re } test "Look on a diff line is the look of the address it names, selected by hand: a cached patch, the checkout elsewhere" { - if (!platform_has_fs) return; const io = std.testing.io; const patch = "diff --git a/entry/src/entry.rs b/entry/src/entry.rs\n--- a/entry/src/entry.rs\n+++ b/entry/src/entry.rs\n" ++ "@@ -1,2 +1,2 @@\n-fn old() {}\n+fn new() {}\n fn kept() {}\n"; @@ -2635,7 +2621,6 @@ test "Look on a diff line is the look of the address it names, selected by hand: } test "Plumb: a look sends what it looks at, the rules written first: a rule's word or port takes it, a name open in a pane is focused unsent, one nothing takes is Look's own" { - if (!platform_has_fs) return; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pic.svg", .data = "<svg/>" }); @@ -2687,7 +2672,6 @@ test "Plumb: a look sends what it looks at, the rules written first: a rule's wo test "Plumb: a commit hash looked at in a git work tree is git show's, paged; outside one Diff declines, and the word is searched for" { if (pardes.Term.ops == null) return error.SkipZigTest; // a command pane - if (!platform_has_fs) return; var tmp = std.testing.tmpDir(.{}); defer tmp.cleanup(); try tmp.dir.createDir(std.testing.io, ".git", .default_dir); |
