summaryrefslogtreecommitdiff
path: root/src/macos.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-27 21:55:14 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit49b24196de1afe33023f0129a3d64bdc9775f1af (patch)
tree02cb1e8cddc08d0055c16830a1ec7820dfa4a246 /src/macos.zig
parent41bbbd05dccb02631ed785d19ed54fb4edfcc471 (diff)
downloadpardes-49b24196de1afe33023f0129a3d64bdc9775f1af.tar.gz
pardes-49b24196de1afe33023f0129a3d64bdc9775f1af.zip
Move the pipe's editor side out of pardes.zig into selection_pipe.zig
Pure move, no behaviour change: submitPipe, pipeRequest, pipeFailed, pipeCut, pipeOutput and pipeResponse, the PendingPipe they share, pipeMarker, and the eight pipe tests with their nextPipeEffect helper go verbatim to the end of selection_pipe.zig, so the whole of `|` (runner, boundary values, prompt, request and atomic edit) is one file. Inside that file the `selection_pipe.` prefix drops; the file doc now says it holds both halves. The methods become free functions taking `p: *Pardes`: the four shells' `core.pipeRequest(id)` become `selection_pipe.pipeRequest(core, id)`, and pardes.zig's two calls change the same way. pushUndo becomes pub because the pipe's edit calls it; PendingPipe.deinit becomes pub for Pardes.deinit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/macos.zig')
-rw-r--r--src/macos.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macos.zig b/src/macos.zig
index 402b3c12..b4e03c13 100644
--- a/src/macos.zig
+++ b/src/macos.zig
@@ -2349,7 +2349,7 @@ fn pipeRequest(ctx: ?*anyopaque, id: u32) void {
st.core.update(.{ .pipe_resp = .{ .id = id, .success = false, .outputs = &.{} } });
return;
}
- const view = st.core.pipeRequest(id) orelse return;
+ const view = selection_pipe.pipeRequest(st.core, id) orelse return;
const job = selection_pipe.Job.copy(st.gpa, view) catch |err| {
st.core.update(.{ .pipe_resp = .{ .id = id, .success = false, .outputs = &.{} } });
return st.core.reportError(st.core.active, "pipe", err);