summaryrefslogtreecommitdiff
path: root/docs/typ/reference.typ
diff options
context:
space:
mode:
Diffstat (limited to 'docs/typ/reference.typ')
-rw-r--r--docs/typ/reference.typ37
1 files changed, 24 insertions, 13 deletions
diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ
index db4f9c77..47014d1b 100644
--- a/docs/typ/reference.typ
+++ b/docs/typ/reference.typ
@@ -463,7 +463,7 @@ word clicked in a tag does. The same lines go in the startup file
[#word("Wrap"), #word("Debug")], [toggles],
[#word("Font") `<name>[:<size>]`, #word("Fonts")], [SDL and macOS only; size 8-72 (pixels in SDL, points on macOS)],
[#word("TaglineSize") `<1-100>`], [82: tagline face, percent; SDL and macOS],
- [#word("WindowOpacity") `<0-100>`], [100; SDL only: everything but text and the cursor],
+ [#word("WindowOpacity") `<0-100>`], [100; SDL only: everything but text and the cursor; on Wayland the first value under 100 makes the window again (at start, before it shows; while running, it blinks), transparent until it closes],
[#word("Pet") `off|cat|frog`], [off; SDL only: a sprite in the workspace tag's blank space],
)
@@ -1008,10 +1008,12 @@ at 200, ending in `…`. Control characters become spaces.
`+Pager` of the session's.
- #file("/listeners"): the session's dial addresses, a line each
(#doc("building", section: "listeners")).
-- #file("/sessions"): what the pardes daemon keeps, as `pardes --ps`
+- #file("/sessions"): what the pardes daemon lists, as `pardes ps`
shows it, a record a line: `daemon <pid>`, then `session <pid> tty|gui
- attached|detached <name>` with a `shell <pid>` line for each shell it
- holds, then `orphan <pid>` for each shell no session holds. Any of the
+ attached|detached <name>` (attached, the daemon's word: it has a frontend
+ 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
pardes daemon answers` with none, or one too old to list (Upgrade it).
- #file("/os/"): existing regular files take read, write and truncation to
@@ -1186,7 +1188,12 @@ of it is laid out by `view` and drawn by `paint`.
kept through its `dump` and `load` (one with none comes back fresh), and
a library that fails any check leaves the old one running; bare, it says
the kinds here. At start, every `*.so` of `$XDG_DATA_HOME/pardes/addons`,
- then of `<prefix>/lib/pardes/addons`, is loaded.
+ then of `<prefix>/lib/pardes/addons`, is loaded; one loaded before,
+ its file the same since, is listed from what it brought then (kept in
+ `addon-heads` in the data directory) and loaded at the first pane of
+ its kind, from the file as the start found it (renamed over since, it
+ is still that one; written over in place, the pane is refused until
+ `Addon reload`).
- #file("/addons"): a line a kind, `<kind> <version> <abi> <panes open>
<path> <blake3> loaded`, and a line an addon refused, with why:
another ABI's major, no `pardes_addon`, a word, leader path or extension
@@ -1330,8 +1337,9 @@ 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.* `pardes --ps` prints what the daemon keeps: each session
- (its pid, terminal or window, attached or detached, name) with the pids
+- *Sessions.* `pardes --ps` prints what the daemon lists: each session
+ (its pid, terminal or window, whether it has a frontend or is detached,
+ name) with the pids
and commands of its clients and 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),
@@ -1339,11 +1347,14 @@ to its end before the write is answered, and one that finds nothing fails,
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`
+ 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 attached already is joined as a client, as one of
- the other kind or on another machine is (`--attach=SOCKET:NAME`, its own
- process, listed under the session by `--ps`), up to four clients: each
+ 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
+ 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,
scroll and jumps, over the panes, texts, tags, terminals, messages and
registers they share. A terminal pane shown in two takes the size of the
@@ -1352,8 +1363,8 @@ to its end before the write is answered, and one that finds nothing fails,
terminal closing, lets that client go and leaves the others. With none
attached, `size C R` sets the screen, messages clear by the clock, and a
pty reports its size in pixels at the last cell size (8×16 before any),
- as CSI 14, 16 and 18 t do. Attaching from another machine is gone until
- the replicated clients (docs/next-daemon.md, phase 5).
+ as CSI 14, 16 and 18 t do. Each way of running, and what survives
+ what: #doc("running").
- *Config.* The startup file is `$XDG_CONFIG_HOME/pardes/init` when that is
absolute, else `~/.config/pardes/init` (macOS:
`~/Library/Application Support/pardes/init`). A line that fails is a