diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-27 21:55:14 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:14 -0300 |
| commit | 49b24196de1afe33023f0129a3d64bdc9775f1af (patch) | |
| tree | 02cb1e8cddc08d0055c16830a1ec7820dfa4a246 /src/gui/gui.zig | |
| parent | 41bbbd05dccb02631ed785d19ed54fb4edfcc471 (diff) | |
| download | pardes-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/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 0b9de624..6174c0d8 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1702,7 +1702,7 @@ fn spawnPipe( core.update(.{ .pipe_resp = .{ .id = id, .success = false, .outputs = &.{} } }); return; } - const view = core.pipeRequest(id) orelse return; + const view = selection_pipe.pipeRequest(core, id) orelse return; const job = selection_pipe.Job.copy(gpa, view) catch |err| { core.update(.{ .pipe_resp = .{ .id = id, .success = false, .outputs = &.{} } }); return core.reportError(core.active, "pipe", err); |
