diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-30 12:04:45 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-30 12:24:57 -0300 |
| commit | 11e67e636b39b9b2901ec5cc49a13a012088650f (patch) | |
| tree | 06db91646b757af281c7322f84efb9ded91c6179 /docs/typ | |
| parent | c6fa3545cc7b500c0b2b1a754ff7d46abf1d3768 (diff) | |
| download | pardes-11e67e636b39b9b2901ec5cc49a13a012088650f.tar.gz pardes-11e67e636b39b9b2901ec5cc49a13a012088650f.zip | |
daemon: pardes --ps, --kill=<name>, --kill-all: the daemon's registry as a tree (the daemon, each session with its pid, kind, state and name and the shells it holds, then the shells no session holds, which Adopt takes) and sessions ended with their shells: a TERM, a KILL 2 s later, gone once the daemon no longer lists them (a zombie still answers kill 0), a killed session's held masters closed rather than kept for an Adopt and --kill-all's every kept one; in --help, the guide and the reference; --help's ssh default no longer -C; test/daemon.py --manage
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs/typ')
| -rw-r--r-- | docs/typ/guide.typ | 2 | ||||
| -rw-r--r-- | docs/typ/reference.typ | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 4430276f..56fe3ebd 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -344,6 +344,8 @@ 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 keeps, 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 diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index 2d8658c6..4de57d64 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -1012,7 +1012,13 @@ to its end before the write is answered, and one that finds nothing fails, another; a removed line's `-` goes to the line now standing where it was. git's `a/` `b/` (and `c/ i/ w/ o/`) prefixes are dropped; a `--no-prefix` diff's paths are kept. -- *Sessions.* Bare `--detach` names the session after its pid; bare +- *Sessions.* `pardes --ps` prints what the daemon keeps: each session + (its pid, terminal or window, attached or detached, name) with the pids + and commands of the shells it holds, then the shells no session holds, + 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; a second `--detach=NAME` |
