summaryrefslogtreecommitdiff
path: root/docs/typ/reference.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 03:20:39 -0300
committerGabriel Schneider <[email protected]>2026-11-20 04:00:32 -0300
commita6c258bec5808ac2b6ef9d3362134e34e759c1c9 (patch)
treef785b15b2a3bcd0f7d3e8f92d7948af634c52b69 /docs/typ/reference.typ
parent1967cf64dc6d7490d386db874cf1866b764f235c (diff)
downloadpardes-a6c258bec5808ac2b6ef9d3362134e34e759c1c9.tar.gz
pardes-a6c258bec5808ac2b6ef9d3362134e34e759c1c9.zip
docs: an attach is always a client, and a session registers again with a restarted daemon, in the documents: the manual's "How pardes runs" (docs/typ/running.typ: one Attach section, its figure of the in-place attach deleted from figures.typ, the glance and survival tables, the words), the guide's Sessions, the reference's /sessions and command line, the building chapter's daemon, the cheatsheet's line, `pardes help attach` (runtime/main.zig, docs/typ/command-line.txt from builtins-json), the Detach word's doc (core/builtins.zig, both builtins JSONs), docs/next-run.md as built (what went, counted on the change: 305 lines deleted, 94 added; the re-registration as built; --detach forking still not) with its figure (Before / Now), and the changelog's Unreleased; the book and the cheatsheet render (typst), tui shell-test 1046/1049 (3 skipped), core-test 855/1005 (150 skipped: the base's 856/1006 less the deleted `find` test)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/typ/reference.typ')
-rw-r--r--docs/typ/reference.typ18
1 files changed, 8 insertions, 10 deletions
diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ
index 4c193e0f..425209a0 100644
--- a/docs/typ/reference.typ
+++ b/docs/typ/reference.typ
@@ -1014,7 +1014,7 @@ at 200, ending in `…`. Control characters become spaces.
of its own, a terminal or window; `pardes ps` says "has a frontend") with a `client <pid>` line for each of its clients and a
`shell <pid>` line for each shell it holds, then `orphan <pid>` for each
shell no session holds. Any of the
- names attaches (`pardes --attach=<name>`, either kind). Read fails `no
+ names attaches (`pardes attach <name>`, either kind, as a client). Read fails `no
pardes daemon answers` with none, or one too old to list (Upgrade it).
- #file("/os/"): existing regular files take read, write and truncation to
zero; create, remove, rename and mode changes are refused as not
@@ -1350,15 +1350,13 @@ to its end before the write is answered, and one that finds nothing fails,
which #word("Adopt") takes. `--kill=NAME` ends that session and its
shells (a TERM, then a KILL 2 s later; unsaved changes are lost),
`--kill-all` every session and every kept shell; with no daemon running
- each says so and exits 1. Bare `--detach` names the session after its pid; bare
- `--attach` needs exactly one detached session of its kind (a terminal's
- for `pardes`, a window's for `pardes-gui`), or with none detached the
- only session of that kind, joined as a client (with none of that kind,
- the only session there is); a second `--detach=NAME`
- while NAME runs (a plain session is named by its pid) says so in words
- and exits 1. A session with a frontend already is joined as a client, as one of
- the other kind is, and one on another machine (`--attach=HOST:NAME`, over
- `ssh -L`; `--attach=SOCKET:NAME` through a socket forwarded already): its
+ each says so and exits 1. Bare `--detach` names the session after its pid; a
+ second `--detach=NAME` while NAME runs (a plain session is named by its
+ pid) says so in words and exits 1. `attach NAME` (`--attach=NAME`) is
+ always a client of session NAME, either kind, here or on another machine
+ (`attach HOST:NAME`, over `ssh -L`; `attach SOCKET:NAME` through a socket
+ forwarded already); bare, of the one detached session, else the only
+ session (with several, it names them and exits 1): its
own process, listed under the session by `--ps`, up to three clients
(four views at once, the session's own among them): each
terminal or window its own layout, focus, cursors, selections, modes,