summaryrefslogtreecommitdiff
path: root/docs/macos.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/macos.md')
-rw-r--r--docs/macos.md23
1 files changed, 11 insertions, 12 deletions
diff --git a/docs/macos.md b/docs/macos.md
index d767dce2..17294520 100644
--- a/docs/macos.md
+++ b/docs/macos.md
@@ -74,7 +74,7 @@ fourteen are filled in (`src/macos.zig:1761`).
The machine-local half of those methods is no longer this file's. `forkShell`,
`writeFileBytes` and `writeFd` live in `src/host_io.zig` and are shared with
-the tui shell, the SDL shell and the detached daemon; `src/macos.zig` calls
+the tui shell and the SDL shell; `src/macos.zig` calls
them (`:1807`, `:1823`, `:1848`, `:1863`) and its own copies, together with the
four `extern "c"` declarations they needed (`forkpty`, `execv`, `chdir`,
`_exit`), are gone. Two `extern "c"` declarations remain here: `setenv`, and
@@ -1097,17 +1097,16 @@ used for the table and is not folded into the direct-path claim.
- **The `pipe` effect.** Selection filters need `pipeRequest(id)` copied into a
job, a worker to run the command, and a `pipe_resp` event back. Same shape as
`lsp`, one more response type.
-- **Detached sessions.** `Attach` (`SPC s a`) and `Detach` (`SPC s D`) are
- the tui's and the window's alone (`Builtin.enabled` is `pardes.can_attach`);
- were they built here, neither would work. `Detach` emits `Effect.detach`, this
- host fills in no `detach`, and `Pardes.perform` therefore reports
- `error.NotAttached` on the pane's message row (`src/pardes.zig:6837`).
- `Attach` emits `Effect.attach`, which `perform` turns into an `attach_req`
- the shell is supposed to consume from OUTSIDE `pump` with `takeAttach` — and
- `src/macos.zig` never calls `takeAttach`, so the word does nothing at all and
- says nothing either. Wiring it up means a unix-socket frontend loop beside
- the AppKit one, which is `src/detached/client.zig`'s job in the tty and SDL
- shells; see `docs/typ/building.typ`.
+- **Detached sessions.** `Detach` (`SPC s D`), `Adopt` and `Upgrade` are
+ compiled into the tui's and the window's builds alone (`enabled` is
+ `pardes.can_attach`, `src/builtins.zig`), and there is no daemon on macOS
+ (`daemon.supported` is Linux and FreeBSD): this build's session is the one
+ process it started, and closing it ends it. The `Attach` word and
+ `src/detached/` it went through are gone (`docs/next-daemon.md`, "Phase 3
+ notes"); attaching is `pardes attach`, a process of its own. What it would
+ take here is a client: the window build already is one on a Mac
+ (`pardes-gui attach HOST:NAME`), with no daemon on this side; see
+ `docs/typ/running.typ`.
- **IME and marked text.** Only finished characters reach `pardes_key`, so a
dead key composes nothing and Option is Alt rather than a compose modifier.
Real composition means implementing `NSTextInputClient` *and* giving the core