summaryrefslogtreecommitdiff
path: root/docs/typ/guide.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/guide.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/guide.typ')
-rw-r--r--docs/typ/guide.typ27
1 files changed, 14 insertions, 13 deletions
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ
index e69c756a..3dd8107c 100644
--- a/docs/typ/guide.typ
+++ b/docs/typ/guide.typ
@@ -352,28 +352,29 @@ cheatsheet (#doc("cheatsheet")) say so.
```
pardes --detach=work & a session with no screen of its own
-pardes --attach=work show it here
-pardes-gui --attach=work a window session's window again
-pardes --ps every session the daemon lists, and its shells
-pardes --kill=work end it and its shells (--kill-all: every one)
+pardes attach work show it here, as a client
+pardes-gui attach work show it in a window, as a client
+pardes ps every session the daemon lists, and its shells
+pardes kill work end it and its shells (kill --all: every one)
```
#word("Detach") (#key("SPC s D")) lets the terminal or the window go and
leaves the session running, its panes, shells and files kept; so does a
terminal that closes, while the daemon (below) is there. A window that
-closes ends its session, unless the session has clients.
-`pardes --attach` takes it back in any terminal,
-`pardes-gui --attach` a window session's window: a terminal session takes
-a terminal, a window session a window. Attached already, it takes another
-view: each terminal or window has its own columns, focus, cursors and
-scroll over the same panes, texts and registers, and a terminal shown in
-two takes the size of the one that last typed into it. #word("Detach") in
-one lets only that one go. A session is named by `--9p=` or
+closes ends its session, unless the session has clients. Once let go, a
+session's own terminal or window never comes back: `pardes attach` shows
+it in any terminal, `pardes-gui attach` in a window, either kind of
+session, each as a client, a process of its own. Each terminal or window
+has its own view (columns, focus, cursors, scroll) over the same panes,
+texts and registers, and a terminal shown in two takes the size of the
+one that last typed into it. #word("Detach") in one lets only that one
+go. A session is named by `--9p=` or
`--detach=`, else its pid. A session killed outright leaves its shells
running; #word("Adopt") in another takes them in as terminal panes, what
they showed gone. One `pardes --daemon` per user lists the sessions and
holds their shells' terminals open; the first session starts it, it is
-nobody's parent, and it leaves once it holds nothing. Which processes
+nobody's parent, and it leaves once it holds nothing; killed, the
+sessions start it again. Which processes
run, and what survives what, is in #doc("running").
After a rebuild, #word("Upgrade")
(#key("SPC s U")) moves a running session onto the pardes now installed