summaryrefslogtreecommitdiff
path: root/test/fs_namespace.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-27 22:27:42 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit82551f77833a09b313bd3e58371582abd1aedcc4 (patch)
treeb2d0b53d1c2346bdbaefda8b3a5e965df377d26c /test/fs_namespace.zig
parent5be25178e4bfc2f390164e06697155cb0237babc (diff)
downloadpardes-82551f77833a09b313bd3e58371582abd1aedcc4.tar.gz
pardes-82551f77833a09b313bd3e58371582abd1aedcc4.zip
Move looking out of pardes.zig into look.zig
Pure move, no behaviour change (acme keeps this in look.c): expanding the word under a click (ExpandedWord, expandedWord, expandedSel, cursorWordSel), the n/N walk (LookFrom, lookEdge, lookStand, lookWalkPanes, lookPast, wholeRowSpan, lookSpanIn, lookWalk, landLookSpot, noteLookSource, armLookWalk), search results (Search, SearchStart, submitSearch, lookFirstHit, runSearch, searchStep, jumpResult), the look-hover preview (LookHoverWait, LookHoverPreview, FileWordSpan, PdfWordPreview, invalidateLookHover, cancelLookHover, lookHoverPane, noteLookHover, refreshLookHoverFromRaw, advanceLookHover) and lookAt with its targets (focusPaneLine, selectSpan, openPaneTarget, focusPaneByPath, clearNavigationSelection, resolveLookTarget, locationText, canonicalLookLocation, pdfLinkLocation, followPdfLink), with five tests, go verbatim to the end of look.zig after its word and target resolution. The methods become free functions taking `p: *Pardes`; their 143 call sites change from `p.lookAt(..)` to `look.lookAt(p, ..)` (tests reach them as `pardes.look.x`). Inside look.zig the moved code's `look.` prefix drops. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/fs_namespace.zig')
-rw-r--r--test/fs_namespace.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig
index ec94b509..470615c9 100644
--- a/test/fs_namespace.zig
+++ b/test/fs_namespace.zig
@@ -224,7 +224,7 @@ test "virtual file opens do not request OS watches" {
test "Look at a virtual file opens one pane and failed opens release their slot" {
const p = try pardes.Pardes.init(std.testing.allocator, .{ .tty_only = true });
defer p.deinit();
- p.lookAt(0, "/virtual/index");
+ pardes.look.lookAt(p, 0, "/virtual/index");
var opened: usize = 0;
for (p.panes) |slot| {
const pane = slot orelse continue;