From c1990b3e6e196ad41379aa432bf3ccca8a65d9f0 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 20 Sep 2026 00:36:50 -0300 Subject: Flatten the 9P control tree and move it out of fs.zig The served tree loses the self/ level: /index /ctl /new /log /screen /listeners /pane//... /os, with /src only in -Dembed-sources=true builds (default off, on for esp32p4). ctl speaks the editor's own language with two lowercase verbs, look TEXT and exec TEXT, plus acme's addr verbs; the new/ factory directory becomes one clone file; cons is gone (exec Msg); name and sel are files; stats report real lengths, modes and mtimes; /log streams pane new/del/rename/save events. The tree code lives in src/ninep/ (tree, pane, ctl, addr, pty, events, screen, sources); fs.zig keeps host access, mounts, resolution and find/grep. Same engine and transports. README (fs-help.txt) and docs rewritten; tests updated and extended. Co-Authored-By: Claude Fable 5.1 --- src/tutor.txt | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/tutor.txt') diff --git a/src/tutor.txt b/src/tutor.txt index ae22ede9..394a48a3 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -387,29 +387,30 @@ typed pardes the 9P socket opens by default - A directory per pane holding `body`, `tag`, `ctl`, `addr`, `data`, - `event`, `pty/` and the rest, plus `index`, `cons` and `new/` at the - top under /self. Every pane shell receives `$PARDES_9P` (the socket) - and `$PARDES_PANE` (its serial). Use a 9P client to read and write: + A directory per pane holding `name`, `body`, `tag`, `ctl`, `addr`, + `data`, `sel`, `event`, `pty/` and the rest, plus `index`, `ctl`, + `new` and `log` at the root. Every pane shell receives `$PARDES_9P` + (the socket) and `$PARDES_PANE` (its serial). Use a 9P client: - /self/pane//body - /self/index - /self/new/ctl + /pane//body + /index + /new reading it makes a pane, answers its serial + /ctl `look FILE:12` and `exec Save`, as the mouse does A terminal pane also has `pty/`: - /self/pane/3/pty/ctl winsize, sig - /self/pane/3/pty/data terminal input/output + /pane/3/pty/ctl winsize, sig + /pane/3/pty/data terminal input/output Over 9P the same tree answers plan9port, from anywhere: 9p -a $XDG_RUNTIME_DIR/pardes-9p-work.sock ls / - 9p -a $XDG_RUNTIME_DIR/pardes-9p-work.sock read /self/index + 9p -a $XDG_RUNTIME_DIR/pardes-9p-work.sock read index ...and pardes is a 9P CLIENT too, so one session can read another's: pardes --mount=peer=work - /n/peer/self/pane/1/body Look opens the other session's body + /n/peer/pane/1/body Look opens the other session's body TWO THINGS WORTH KNOWING. While a program holds a pane's `event` file open, MIDDLE AND RIGHT CLICKS IN THAT PANE BELONG TO IT: pardes reports @@ -467,7 +468,7 @@ typed SPC is the leader (SPC ? lists every path) SCRIPTING 9P is served by default on $PARDES_9P - /self/pane//{body,tag,ctl,addr,data,event,pty/} + /pane//{name,body,tag,ctl,addr,data,sel,event,pty/} a script holding `event` owns that pane's middle and right clicks; writing a record back runs it -- cgit v1.3 From 9070942b29bd10dddcdecdb0e88ba0fb40608467 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 21 Sep 2026 20:07:43 -0300 Subject: Plan 9 idiom for the control filesystem, and the regressions a624a56 left The 9P tree stops being a command language wearing a filesystem. /new created a pane as a side effect of a *read*; it is now Tcreate in /pane, with Tremove to close, which cloud9's engine has always supported and the editor never declared: tree.zig now says `features = .{ .create = true, .remove = true }`. Eleven pane ctl verbs become files that can be read as well as written -- dot, limit, dirty, mark, scroll, look, exec -- leaving ctl with `get`, the one verb no file would say better. Root /ctl splits into a read-only /status and the /look and /exec files whose write IS the click. stat carries real sizes where it used to answer 0, and qid versions track a pane's revision, so a client can poll for change without re-reading the body. Commit a624a56 moved raw-tty keys to an early-return branch that knew only Ctrl-B and bare Escape, and in the same edit deleted the paste branch below it. That cost Shift-Escape (the unconditional way out of tty mode) and both paste chords: Ctrl-V and Ctrl-Shift-V reached the child as keystrokes, so an agent CLI running in a pane took Ctrl-V for its image-paste binding and answered "No image found in clipboard". Both are restored, with tests. Nested detection was not subtly broken but deleted: 60367d8 removed nested.zig's process-ancestry walk and left "am I inside pardes" derived from PARDES_FORWARD_LOOK, which read "0" both for --nested and for "the listener did not come up". PARDES_PID now answers that question on its own, checked with kill(pid, 0); PARDES_9P and PARDES_PANE answer how to reach it; the flag is gone. The posted-9P registry also self-heals now -- a session that aborts cannot unlink its own socket, so posting sweeps entries whose target refuses a connection, symlinks only and on a definite ECONNREFUSED only. Elsewhere: tty scrolling is sticky-bottom, following new output only from the last row, with typing and entering raw mode snapping back to live; the boot layouts are a Boot enum instead of a chain of ifs, and the bare tty startup (Boot.tty, which main.zig names) opens an empty text pane under the shell while tests keep Boot.tty_shell; builtins announce themselves on the message row under a Verbose setting that is on by default; Config prints each setting the way you would type it back, so WindowOpacity 70 rather than "WindowOpacity: 70%"; LocationsConfig opens its window only when called bare; every tagline puts the word that closes the thing last, and a column now outlives its panes -- closing the last one leaves an empty pane, and only Delcol, newly on the column tagline, takes the column away. Co-Authored-By: Claude Opus 5 (1M context) --- .agents/skills/pardes-9p/SKILL.md | 271 +++++++++++++++++++------------- docs/cloud9.md | 11 ++ docs/config.md | 18 ++- docs/design.typ | 31 ++-- docs/fs.md | 120 +++++++++----- docs/v9fs.md | 2 +- features.txt | 48 ++++++ src/9p_io.zig | 290 +++++++++++++++++++++++++++++++--- src/builtins.zig | 15 +- src/config.zig | 187 +++++++++++----------- src/fs-help.txt | 42 ++--- src/fs.zig | 11 +- src/host_io.zig | 3 + src/main.zig | 71 +++++++-- src/ninep/addr.zig | 16 +- src/ninep/ctl.zig | 319 ++++++++++++++++---------------------- src/ninep/events.zig | 15 +- src/ninep/pane.zig | 241 ++++++++++++++++++++++++---- src/ninep/pty.zig | 9 +- src/ninep/screen.zig | 25 ++- src/ninep/testing.zig | 29 +++- src/ninep/tree.zig | 207 ++++++++++++++++--------- src/panes.zig | 14 +- src/pardes.zig | 294 +++++++++++++++++++++++++++++------ src/tty/tty.zig | 31 ++++ src/tutor.txt | 21 +-- test/appearance_gallery.py | 14 +- test/column_tags.py | 4 +- test/e2e_harness.zig | 2 +- test/font_size.py | 6 +- test/fs.py | 134 +++++++++------- test/fs_bench.zig | 4 +- test/fs_namespace.zig | 15 +- test/fs_soak.py | 8 +- test/look_placement.py | 6 +- test/ninep.py | 19 +++ test/output.zig | 32 ++-- test/panes.zig | 76 ++++++++- test/pdf.zig | 2 +- test/tag_cleanup.py | 2 +- test/ui_review.py | 12 +- test/v9fs.py | 35 +++-- test/window_opacity.py | 2 +- 43 files changed, 1898 insertions(+), 816 deletions(-) (limited to 'src/tutor.txt') diff --git a/.agents/skills/pardes-9p/SKILL.md b/.agents/skills/pardes-9p/SKILL.md index 09dee666..2cea4d4a 100644 --- a/.agents/skills/pardes-9p/SKILL.md +++ b/.agents/skills/pardes-9p/SKILL.md @@ -1,23 +1,127 @@ --- name: pardes-9p -description: Inspect and drive a running Pardes editor over 9P, or exercise its panes, builtins, terminal input and rendered output in an isolated session. Use for Pardes interaction, plugin development and end-to-end debugging through its control filesystem. +description: Inspect and drive a running Pardes editor through its control filesystem, or exercise its panes, builtins, terminal input and rendered output in an isolated session. Use for Pardes interaction, plugin development and end-to-end debugging. --- # Pardes over 9P -Use the existing [Python client](../../../test/ninep.py) for ad hoc interaction -and functional tests. Do not build another wire client. Project tooling stays -in Zig. Run the examples from the repository root; paths below are relative to -that root unless linked. +Pardes is driven by reading and writing files. Prefer ordinary file tools over +a mount; reach for the Python client only when nothing is mounted, or when the +work needs a fid held open. Do not build another wire client: project tooling +stays in Zig. Run the examples from the repository root; paths below are +relative to that root unless linked. -## Connect and identify panes +## Find the session through the mount -Every native session opens a Unix socket. Inside a pane, `PARDES_9P` names the -socket and `PARDES_PANE` is that pane's serial. Outside Pardes, find -`pardes-9p-*.sock` under `$XDG_RUNTIME_DIR`, or `~/.local/state/pardes` when -that variable is unset. Select the intended session explicitly; do not assume -the newest socket is the right one. Names come from `--9p=name`, the detached -session name, or the process ID. +This machine keeps a FUSE mount of every posted session under `/mnt/9p`: +`/mnt/9p/pardes//` is one session's served root. Inside a pane, +`$PARDES_9P` is that session's socket (`/run/user/1000/pardes-9p-.sock`), +so its pid is the directory to use, and `$PARDES_PANE` is the calling pane's +serial: + +```sh +m=/mnt/9p/pardes/$(basename "$PARDES_9P" .sock | sed 's/^pardes-9p-//') +cat "$m/index" +cat "$m/pane/$PARDES_PANE/body" +``` + +Entries for dead sessions stay listed and answer `Input/output error` on any +access, so name the session you mean rather than globbing or taking the newest. +`cat "$m/index"` is the cheapest liveness check, and `cat "$m/status"` reports +the `pid`, `version` and `panes` of a session new enough to serve it. + +`/mnt/9p/pardes` is the registry of posted sessions, mounted once for the +machine. It is not the per-pane kernel mount the `Tty9p` builtin makes, which +gives one pane's shell `$PARDES_MOUNT`; see [docs/v9fs.md](../../../docs/v9fs.md) +for that. Either mountpoint serves the same tree. + +A running session serves whatever binary started it. If a listing does not +match this document, that session predates the change; restart it. + +## The tree, and what to do with it + +``` +$m/README the served guide, worth reading first +$m/index one line per pane: serial, kind (text|term|pdf|image), dirty flag, name +$m/status pid, version, panes +$m/look write a line = a right click on it at the active pane +$m/exec write a line = a middle click: an editor command word, or a shell line +$m/log one record per read: new|del|rename|save ; reads park +$m/screen the rendered screen as JSON, frozen per open +$m/listeners this session's dial addresses +$m/pane/ mkdir opens a pane; rmdir closes it +$m/os/ the host filesystem +``` + +The first field of an index row is a stable pane serial, not a slot or row +number. A row is `serial kind dirty name`, so `row.split(maxsplit=3)` keeps a +name with spaces intact. Re-read the index after anything that might open, +reuse or close a pane. + +```sh +cat "$m/index" # which panes exist +mkdir "$m/pane/x"; n=$(awk 'END{print $1}' "$m/index") # open one, take its serial +printf 'text\n' > "$m/pane/$n/body" # append +cat "$m/pane/$n/tag" # what its tagline offers +echo notes.txt > "$m/pane/$n/name" # rename the buffer +echo Save > "$m/pane/$n/exec" # save it +echo "/etc/hosts:3" > "$m/look"; cat "$m/look" # open a file, see where it landed +rmdir "$m/pane/$n" # close it, dirty or not +``` + +The name `mkdir` asks for is ignored: a pane is named by the serial the editor +gives it, and because `/index` is ordered by serial its last row is the pane +just made. Nothing else in the tree can be created or removed, and no read +creates anything, so `ls`, `stat` and `find` over the whole tree are inert. + +`look` and `exec` are the editor's two clicks, one per line of a write, at the +active pane from the root and at that pane from `$m/pane//look` and +`$m/pane//exec`. Reading any of them answers the serials the last command +made, or the pane it focused or acted on. A command that fails is reported in +the editor, not as a write error, so inspect the resulting pane, index, message +or screen; only a malformed line fails the write itself. + +## Edit through addresses, dot and the flag files + +For a file or scratch pane, with `pane=$m/pane/`: + +| Operation | Shell | Python client | +|---|---|---| +| Read text | `cat $pane/body` | `client.read(pane + '/body')` | +| Append text | `echo text >> $pane/body` | `client.write(pane + '/body', b'text\n')` | +| Replace all text | `echo text > $pane/body` | `client.write(pane + '/body', b'text\n', truncate=True)` | +| Address a byte range | `echo '#0,#2' > $pane/addr` | `client.write(pane + '/addr', b'#0,#2')` | +| Replace that range | `echo 'pub fn' > $pane/data` | `client.write(pane + '/data', b'pub fn')` | +| Read the selection | `cat $pane/dot` (offsets), `cat $pane/sel` (text) | the same two reads | +| Select the addressed range | `cp $pane/addr $pane/dot` | `client.write(pane + '/dot', client.read(pane + '/addr'))` | +| Reload from disk | `echo get > $pane/ctl` | `client.write(pane + '/ctl', b'get\n')` | +| Close it | `rmdir $pane` | `client.remove(pane)` | + +`addr`, `dot` and `limit` each read the pair of offsets they also accept, which +is why copying one onto another is all that acme's `addr=dot`, `dot=addr` and +`limit=addr` ever were; a write may also be an address expression (`#0,#5`, +`/pattern/`, `2+1`). Moving `dot` scrolls the pane to it. `limit` bounds a +search and reads empty until set; truncate it to lift it. + +`dirty`, `mark` and `scroll` read `0` or `1` and take `0` or `1`: whether the +buffer differs from its file, whether a write pushes an undo point, and whether +a write scrolls. Truncating `tag` clears the part of the tag you may edit. + +Address state belongs to the pane, not to a client: opening `addr` resets it, +so two clients addressing the same pane will interfere. `$pane/ctl` reads +acme's window status line — serial, tag length, body length, a reserved zero, +the dirty flag, the width in cells, the font and the tab width — and takes the +one verb `get`. + +Terminal panes have no file: writing their `body` sends child input, and +truncation does not erase terminal history. + +## The Python client, for what a shell cannot express + +Use the existing [Python client](../../../test/ninep.py) when there is no +mount, or when the work needs a fid held open across several operations — +`log`, `event` and `pty/data` are consuming queues whose reads park, and shell +redirection cannot hold one open. ```sh PYTHONPATH=test python3 -B - "$PARDES_9P" <<'PY' @@ -25,103 +129,56 @@ import sys from ninep import Client with Client(sys.argv[1]) as client: - print(client.read('/self/index').decode(), end='') - print(client.read('/self/listeners').decode(), end='') + print(client.read('/index').decode(), end='') + print(client.read('/listeners').decode(), end='') PY ``` -`Client` takes a raw Unix socket path, or `(numeric_ip, port)` for TCP; it -does not parse Pardes dial strings or implement QUIC. It negotiates 9P2000, -uses a five-second socket timeout, and closes on leaving `with`. - -The first field of each index row is a stable pane serial, not a slot or row -number. The tag starts after five numeric fields; use `row.split(maxsplit=5)` -to preserve spaces. Inspect `/self/pane//tag`, `body`, or directory -entries before choosing a target. Re-read the index after actions that might -open, reuse or close panes. - -Wire paths start with `/self` or `/os`. `/n/self`, `/n/os`, `/n/peer` and -`/virtual` belong to editor Look paths, not the server root. For example, -Look `/virtual/src/pardes.zig` corresponds to reading `/self/src/pardes.zig`. - -## Edit, Look and execute - -For a file or scratch pane, with a connected `client` and a confirmed -`serial`, let `pane = f'/self/pane/{serial}'`. Terminal body writes instead -send child input; truncation does not erase terminal history. - -| Operation | Client call | -|---|---| -| Read text | `client.read(pane + '/body')` | -| Append text | `client.write(pane + '/body', b'text\n')` | -| Replace all text | `client.write(pane + '/body', b'text\n', truncate=True)` | -| Select a byte range | `client.write(pane + '/addr', b'#0,#2')` | -| Replace that range | `client.write(pane + '/data', b'pub fn')` | -| Show the addressed selection | `client.write(pane + '/ctl', b'dot=addr\n')` | -| Look from this pane | `client.write(pane + '/ctl', b'look /virtual/src/pardes.zig:10\n')` | -| Save | `client.write(pane + '/ctl', b'put\n')` | -| Reload | `client.write(pane + '/ctl', b'get\n')` | -| Close, refusing dirty text | `client.write(pane + '/ctl', b'del\n')` | - -`delete` force-closes, discarding unsaved text. `get` replaces edits with file -contents. Use those only when that loss is intended. Reading `/self/new/ctl` -creates a scratch pane and returns its serial as the first field; it is not -an observational read. - -`ctl` is not a builtin interpreter. Execute builtins through a body Exec event -on an owned scratch pane: - -```python -from fs import new_pane, execute - -control = new_pane(client, b'') -execute(client, control, 'Msg 9p-ready') -``` - -`execute` overwrites that pane's body with the command, then writes -`MX0 \n` to its `event` file. Keep the control pane separate -from user text. The same helper can run `Mini path`, `Mount peer dial`, and -`Unmount peer`; commands resolve relative to the control pane's directory. -A successful event write acknowledges dispatch, not completion: inspect the -resulting pane, message or screen for success. +`Client` takes a raw Unix socket path, or `(numeric_ip, port)` for TCP; it does +not parse Pardes dial strings or implement QUIC. It negotiates 9P2000, uses a +five-second socket timeout, and closes on leaving `with`. Its paths are the +served root: `/index`, `/pane/2/body`, `/os/...`. `/n/self`, `/n/os`, `/n/peer` +and `/virtual` are editor Look paths, not server paths — Look +`/virtual/src/pardes.zig` corresponds to reading `/src/pardes.zig`. -Opening `addr` resets its range. To inspect the current selection, open -`addr` first, write `addr=dot\n` to `ctl`, then use `read_fid` on that already -open handle. Do not replace that last step with `client.read`, which reopens -and resets it. Address state is shared by the pane, not private to a client. +For live terminal output or plugin events, use `open` / `read_fid` / `close`, +not the read-until-EOF helper. `pty/data` captures output while held open; it +is not a history replay. Both files are shared, consuming queues, not +per-client broadcasts, so a slow reader loses older data. Holding `event` open +intercepts that pane's Look and Exec clicks, so it is not a passive logger: for +Look/Exec records whose offsets identify the intended text, forward the short +record ` \n`, not the whole report with flags and text. +Expansion and chord reports need explicit handling, and terminal-body events +can carry text only in the report, which a short writeback cannot reproduce. +Read the event implementation before building an interceptor. Close handles in +`finally`, and disconnect after a socket timeout. The service shares four +connection slots and 32 screen/terminal-history snapshot handles. + +A file's qid version is the pane's revision for `body`, `data` and `xdata`, so +`stat` sees an edit land without reading the text; it stays zero elsewhere. +Stat sizes are real, and for `log`, `event` and `pty/data` report the length of +the record a read would answer — zero when nothing is waiting. ## Terminal input and screen observations Only terminal panes have `pty/`. Write keystroke bytes to `pty/data`, not `body`: `client.write(pane + '/pty/data', b'printf hello\r')` submits a shell -command. For an interactive application, send its actual input bytes; -`b'\x03'` is Ctrl-C, and Ctrl-U is `b'\x15'` where that application supports it. -These inputs go to the child terminal, not Pardes editor key bindings. +command. For an interactive application, send its actual input bytes; `b'\x03'` +is Ctrl-C, and Ctrl-U is `b'\x15'` where that application supports it. These go +to the child terminal, not to Pardes key bindings. `pty/ctl` takes `winsize C R`, +`sig INT` and `exec`, one per line. -`client.screen()` returns `cols`, `rows`, `cursor`, `styles`, and row-major +`client.screen()` returns `cols`, `rows`, `cursor`, `styles` and row-major `cells` of `[grapheme, style_index]`. Reconstruct rows using `cols`; resolve -each cell's style through `styles` when checking highlighting. Compare colors -and attributes, not just style-table indices or flattened text. +each cell's style through `styles` when checking highlighting, and compare +colors and attributes rather than style-table indices or flattened text. -Each screen open freezes one frame. A terminal `body` freezes history on its -first read. `client.read` and `client.screen` reopen each time; use repeated -calls for fresh observations. Do not poll a stale handle. Poll a specific -condition with a deadline and a short delay, rather than a fixed long sleep. -For large histories, measure whole-body reads separately from screen polling; -9P write-to-observation timing includes RPC, rendering and polling overhead. - -For live terminal output or plugin events, use `open` / `read_fid` / `close`, -not the read-until-EOF helper. `pty/data` captures output while held open; -it is not a history replay. Both files are shared, consuming queues, not -per-client broadcasts; slow readers can lose older data. Holding `event` open -intercepts Look/Exec clicks, so it is not a passive logger. For Look/Exec -records whose offsets identify the intended file/tag text, forward the short -record ` \n`, not the entire report with flags and text. -Expansion/chord reports need explicit handling; terminal-body events can have -empty ranges with text carried only in the report, so short writeback cannot -reproduce them. Read the event implementation before building an interceptor. -Close handles in `finally`; disconnect after a socket timeout. The service -shares four connection slots and 32 screen/terminal-history snapshot handles. +Each screen open freezes one frame, and a terminal `body` freezes its history +on its first read. `client.read` and `client.screen` reopen each time, so +repeat the call for a fresh observation rather than polling a stale handle. +Poll a specific condition with a deadline and a short delay, not a fixed long +sleep. For large histories, measure whole-body reads separately from screen +polling; write-to-observation timing includes RPC, rendering and polling. ## Exercise an isolated session @@ -140,22 +197,23 @@ binary = str(Path(sys.argv[1]).resolve()) with tempfile.TemporaryDirectory(prefix='pardes-9p-skill-') as directory: with session(binary, Path(directory), 'skill') as (client, address): serial = new_pane(client, b'fn main() void {}\n') - pane = f'/self/pane/{serial}' - client.write(pane + '/ctl', b'name probe.zig\n') + pane = f'/pane/{serial}' + client.write(pane + '/name', b'probe.zig\n') client.write(pane + '/addr', b'#0,#2') client.write(pane + '/data', b'pub fn') assert client.read(pane + '/body') == b'pub fn main() void {}\n' - control = new_pane(client, b'') - execute(client, control, 'Msg 9p-ready') + execute(client, serial, 'Msg 9p-ready') frame = client.screen() assert '9p-ready' in ''.join(cell[0] for cell in frame['cells']) print('9P edit, builtin and screen checks passed') PY ``` -For terminal tests, use `session(..., tty=True)` and read +`new_pane` is `mkdir` plus a read of the index; `execute` writes one line to a +pane's `exec`. Both are in `test/fs.py`. For terminal tests, use +`session(..., tty=True)` and read [test/agent_session.py](../../../test/agent_session.py) for bounded interactive -driving. Its readiness text and history threshold are application-specific; +driving; its readiness text and history threshold are application-specific, and session cleanup alone does not guarantee arbitrary grandchildren have exited. Use [test/snapshot.zig](../../../test/snapshot.zig) when editor key/mouse input or an independent terminal-rendering comparison matters; 9P screen inspection @@ -163,6 +221,7 @@ alone does not test physical input routing or the host renderer. Read [docs/fs.md](../../../docs/fs.md) for runtime mounts, TCP/QUIC listeners, Plan9port and Linux v9fs compatibility. Unix is always available; network -listeners are opt-in and grant full session/OS-file access. Use isolated -loopback listeners for tests. For less common control verbs or event details, -read their implementation and tests in [src/fs.zig](../../../src/fs.zig). +listeners are opt-in and grant full session and OS-file access, so use isolated +loopback listeners for tests. For event details or anything this page leaves +open, read the implementation and its tests in +[src/ninep/](../../../src/ninep/). diff --git a/docs/cloud9.md b/docs/cloud9.md index 79fda717..d030db1d 100644 --- a/docs/cloud9.md +++ b/docs/cloud9.md @@ -54,6 +54,17 @@ way a private `ZMX_DIR` does for zmx. Stopping unposts, and only while the entry is still ours, so a name another editor has since claimed is never unlinked. +An exit that cannot run any code of its own — an aborted test, a kill, a +crash — leaves its entry and its socket behind, so posting first sweeps the +group: every entry that is a symlink and whose socket answers a connect with +a definite ECONNREFUSED is unlinked, along with the socket it points at when +a `stat` agrees that is a socket of ours. Anything that is not a symlink is +somebody else's, and any other answer — connected, busy, refused permission, +a surprise — counts as live, because uncertainty belongs to the server that +owns the socket rather than to the sweeper. That is `cloud9.post.Probe`'s +classification, repeated in `src/9p_io.zig` only because `post.probe` is raw +Linux syscalls and pardes also builds for darwin. + **Consuming.** Nothing. `9ns --mntgen` mounts the whole registry at `/mnt/9p`, and an interactive fish already self-wraps in one, so a pardes started from a terminal sees every posted service as ordinary files — diff --git a/docs/config.md b/docs/config.md index a55aef1c..04b0fd82 100644 --- a/docs/config.md +++ b/docs/config.md @@ -111,6 +111,10 @@ Workspace, column and pane command text can be edited directly; see `ColumnTags` toggles the column command row in both GUI and TTY; it is on by default. Add `ColumnTags` to startup configuration to reclaim that row on a compact screen. Hiding it preserves your custom column commands. +`Verbose` toggles the message-row announcement every builtin makes of its own +name before it runs; it is on by default, and the builtins that own the message +row themselves (`Msg`) never announce. Turning it off leaves the row to the +messages a builtin chooses to write. `SyntaxBold` toggles bold syntax keywords; it is off by default. These settings are shared by GUI and TTY, and `Config` reports their current states. Like `Colors` and `Wrap`, these commands take no argument and invert @@ -334,10 +338,16 @@ The installed `pardes-v9fs` helper lives beside the editor; development builds can set `PARDES_V9FS_HELPER` to its absolute path. See [v9fs.md](v9fs.md). Ctrl-B switches between raw TTY and editor mode. Plain Escape at a detected -shell prompt hops back to the previous pane. Other keys, including Ctrl-O, Ctrl-W, -paste shortcuts, and modified Escape belong -to the child. Use `Mode` in the pane tag to return to editor -mode in place. Desktop paste events still feed the terminal. +shell prompt hops back to the previous pane. Other keys, including Ctrl-O, +Ctrl-W and modified Escape, belong to the child. Use `Mode` in the pane tag to +return to editor mode in place. Desktop paste events still feed the terminal. + +The paste chords are the exception the window keeps. Ctrl-V types the yank +register at the program, and Ctrl-Shift-V asks the desktop for its clipboard +and types that; both go through the program's bracketed paste when it has +asked for one. Neither reaches the child as a keystroke, so an application +that would otherwise answer Ctrl-V by reading the system clipboard itself +never gets the chance to read the wrong thing. `Font` and `FontSel` exist ONLY in the SDL GUI and native macOS builds — a terminal's font belongs to its emulator and a browser's to the page — so a diff --git a/docs/design.typ b/docs/design.typ index 4c8956ba..f8f0b05c 100644 --- a/docs/design.typ +++ b/docs/design.typ @@ -1492,15 +1492,20 @@ same thread as editing. == Nested Look -Pane shells inherit `PARDES_9P`, `PARDES_PANE` (the pane serial), and -`PARDES_FORWARD_LOOK`. A child launch resolves its OS-relative argument in -the child's working directory, then writes `look ` to the parent's -`self/pane//ctl`. Explicit `/virtual` and `/n` paths resolve in the -parent. The ordinary filesystem update performs layout and drains host effects. - -`--nested` starts a separate editor and disables forwarding from its direct -pane shells. Its 9P socket remains available for control and plugins. There is -no executable-name discovery or separate Look listener. +Pane shells inherit `PARDES_PID` (the editor's process id), `PARDES_9P` and +`PARDES_PANE` (the pane serial). The first answers whether the shell is inside +a pardes at all, the other two answer how to reach it, and they are separate +because a session whose listener never came up still owns its children. A child +launch that finds a live `PARDES_PID` and no way to reach it says so instead of +starting a second editor. Otherwise it resolves its OS-relative argument in the +child's working directory, then writes `look ` to the parent's +`pane//ctl`. Explicit `/virtual` and `/n` paths resolve in the parent. +The ordinary filesystem update performs layout and drains host effects. + +`--nested` starts a separate editor and withholds `PARDES_PID` from its direct +pane shells, which is the whole of the opt-out. Its 9P socket remains available +for control and plugins, so those shells still get `PARDES_9P` and +`PARDES_PANE`. There is no executable-name discovery or separate Look listener. Detached frontends use `pardes-detached-.sock` in the same runtime directory. The shared Unix socket conventions live in `src/9p_io.zig`. @@ -1928,9 +1933,11 @@ arrives bracketed, as one `paste` event. staged edits: Enter commits a new buffer save target, Escape cancels, and no disk rename or write happens until explicit Save. Terminal cwd and image/PDF status stay generated. Save leads the tail of every pane holding text of its own: -`Save Tty Del Collapse` for a file or an output buffer, -`Save Tty Del Togglettymode Filter Collapse` for a terminal, and `Tty Del Collapse` -for an image. PDFs use `Tty Del PdfSections PdfTint Collapse`, without tint status text. +`Save Tty Collapse Del` for a file or an output buffer, +`Tty Save Mode Filter Collapse Del` for a terminal, and `Tty Collapse Del` +for an image. PDFs use `Tty PdfSections PdfTint Collapse Del`, without tint status text. +The word that closes the thing is last on every tagline, so overshooting the +click before it cannot destroy anything. `Collapse` toggles a pane between its tagline alone and its expanded height; hidden body contents and running terminals are retained. An unsaved file has `*` after its name; an image tag diff --git a/docs/fs.md b/docs/fs.md index 55ffdc9c..0bcc0313 100644 --- a/docs/fs.md +++ b/docs/fs.md @@ -1,14 +1,19 @@ # Filesystem Every native session serves 9P2000 on a Unix socket. Pane shells receive -`PARDES_9P` (socket path) and `PARDES_PANE` (pane serial). The socket is +`PARDES_PID` (the editor's process id), `PARDES_9P` (socket path) and +`PARDES_PANE` (pane serial). The socket is `$XDG_RUNTIME_DIR/pardes-9p-.sock`, or lives under `~/.local/state/pardes` when XDG_RUNTIME_DIR is unset. Detached sessions use their session name; `--9p=` overrides it. A `pardes ` launched from a pane forwards Look to that pane over 9P. -`--nested` opens a separate editor and disables forwarding from its pane shells; -its 9P service stays available. +`PARDES_PID` alone says the shell is inside pardes; `PARDES_9P` and +`PARDES_PANE` say how to reach it, and a launch that has the first without the +other two refuses rather than opening a second editor. `--nested` opens a +separate editor and withholds `PARDES_PID` from its pane shells, so a pardes +started in one of them runs a session of its own; its 9P service stays +available. Look resolves the OS filesystem first, then the editor's virtual filesystem. Explicit paths bypass that search: @@ -68,53 +73,79 @@ Existing Plan9port/v9fs clients need a userspace bridge for QUIC. ``` /README this guide, also src/fs-help.txt /index one line per pane: serial, kind (text|term|pdf|image), dirty flag, name -/ctl write: one command per line; read: the serials the last command made or touched -/new reading it creates one empty pane and answers "\n" (the /net/tcp/clone idiom) +/status pid, version and pane count +/look write a line: a right click on it at the active pane; read: the serials it touched +/exec write a line: a middle click; read the same serials /log one line per editor event: new|del|rename|save ; reads park /screen rendered screen JSON; frozen per open handle /listeners the session's dial addresses -/pane// name body tag ctl addr data xdata sel errors event, plus pty/{ctl,status,data} +/pane/ create a directory here to open a pane; remove one to close it +/pane// name body tag ctl addr dot limit data xdata sel dirty mark scroll + errors event look exec, plus pty/{ctl,status,data} on terminals /os/ the host filesystem /src/ the editor's embedded sources, only when built with -Dembed-sources=true ``` -Nothing in the tree is created by list, stat, walk or read, except that -reading `/new` makes a pane; that is its whole purpose, so a recursive read -of the tree makes one pane per open of it. - -`/ctl` and `/pane//ctl` take the editor's own command language, two verbs: - -- `look TEXT` is a right click on `TEXT`: a path opens a file, `file:12` jumps - to a line, a directory opens a shell there, a URL opens in the browser. From - `/ctl` the look happens at the active pane; from a pane's `ctl` at that pane. -- `exec TEXT` is a middle click: a command word from `src/builtins.zig` - (`Save`, `Del`, `New`, `Newcol`, `Mount NAME DIAL`, `Unmount NAME`, `Dump`, - `Restore`, `Msg TEXT`, `Find`, `Grep`, `Tty`, ...), or anything else, which - runs in the pane's terminal. - -Both verbs are lowercase; the words after `exec` are the editor's capitalized -commands. A pane's `ctl` also keeps acme's addr verbs (`addr=dot`, `dot=addr`, -`limit=addr`, `clean`, `dirty`, `cleartag`, `get`, `mark`, `nomark`, -`noscroll`, `scroll`, `show`). Every line of a write is checked before any -line runs; a malformed line fails the write with EINVAL. A command that fails -inside the editor is reported on the message row, not as a write error. - -After a write to either `ctl`, reading `/ctl` answers the serials of the panes -the command created, or, when it created none, the pane a look focused or the -pane an exec acted on (even one it closed), one per line. Before any command it answers `pid`, `version` and `panes` lines. +Nothing in the tree is created by list, stat, walk or read. A pane is opened +by Tcreate in `/pane` (`mkdir`) and closed by Tremove on `/pane/` (`rmdir`), +which is the only create and the only remove the tree serves. The name a +create asks for is ignored, since a pane is named by the serial the editor +gives it: the Rcreate qid names the new directory, and because `/index` is +ordered by serial its last line is the pane just made. + +`/look` and `/exec` are the editor's two clicks, one per line of a write: + +- a line written to `look` is a right click on it: a path opens a file, + `file:12` jumps to a line, a directory opens a shell there, a URL opens in + the browser. +- a line written to `exec` is a middle click: a command word from + `src/builtins.zig` (`Save`, `Del`, `New`, `Newcol`, `Mount NAME DIAL`, + `Unmount NAME`, `Dump`, `Restore`, `Msg TEXT`, `Find`, `Grep`, `Tty`, ...), + or anything else, which runs in the pane's terminal. + +The root's pair clicks at the active pane and `/pane//look` and +`/pane//exec` at that pane. Blank lines are skipped, and every other line +is checked before any of them runs, so a control character fails the whole +write with EINVAL; a command that fails inside the editor is reported on the +message row, not as a write error. Reading any of these files answers the +serials of the panes the last command created, or, when it created none, the +pane a look focused or the pane an exec acted on (even one it closed), one +per line. `/pane//name` reads the pane's file name (a terminal's directory) and writing it renames the buffer; a relative name resolves against the pane's -directory. `sel` reads the editor selection and writing it replaces the -selection. `body` appends on write and replaces on truncating open. `addr` -selects a range and `data` or `xdata` read or replace it. `errors` appends to -the directory's `+Errors` pane. Holding `event` open redirects the pane's Look -and Exec clicks to that client; writing a record back performs the action. - -Stats report real lengths for `index`, `ctl`, `name`, `body`, `tag` and `sel`, -modes 0644/0666 (0444 for read-only files, 0222 for write-only), the pane's -last edit time or the process start as mtime, and stable qids. Directory -entries carry no sizes; stat the entry. +directory. `body` appends on write and replaces on truncating open. `sel` +reads the selected text and writing it replaces the selection. `errors` +appends to the directory's `+Errors` pane. Holding `event` open redirects the +pane's Look and Exec clicks to that client; writing a record back performs the +action. `ctl` reads acme's window status line — serial, tag length, body +length, a reserved zero, the dirty flag, the width in cells, the font and the +tab width — and takes one verb, `get`, which reloads the buffer from the name +it carries. + +The three range files `addr`, `dot` and `limit` each read the pair of offsets +they also accept, so copying one onto another is all that acme's `addr=dot`, +`dot=addr` and `limit=addr` ever were. A write is either that pair or an +address expression (`#0,#5`, `/pattern/`, `2+1`); `addr` selects what `data` +and `xdata` read or replace, `dot` is the editor's own selection and moving it +scrolls the pane into view, and `limit` bounds a search and reads empty until +it is set. Truncating a range file empties it; truncating `limit` lifts it. + +The three flag files `dirty`, `mark` and `scroll` read `0` or `1` and take +`0` or `1`: whether the buffer differs from its file, whether a write pushes +an undo point (writing `1` pushes one now), and whether a write scrolls the +pane. Truncating `tag` clears the part of the tag you may edit. + +Stats report real lengths for `index`, `status`, `look`, `exec`, `listeners`, +`name`, `body`, `tag`, `sel`, `ctl`, the range files and the flag files, and +for `log`, `event` and `pty/data` the length of the record a read would +answer, which is zero when nothing is waiting. Modes are 0644/0666 (0444 for +read-only files, 0222 for write-only); mtime is the pane's last edit or the +process start. The qid version of `body`, `data` and `xdata` is the pane's +revision, so a stat sees an edit land without reading the text; every other +file leaves it zero rather than promise a version it cannot keep. Directory +entries carry no sizes, and neither does `/screen`, which has no length until +an open renders its frame; stat the entry. `/log` records `new`, `del`, `rename` and `save` while at least one client holds it open; a read parks until a record arrives. `/screen` returns JSON with @@ -132,8 +163,10 @@ enables the option by default, so the device can serve its own source. This is a control filesystem, not a complete POSIX export. Native filenames may contain up to 255 bytes. Existing regular OS files support read, write, -and truncation to zero; protocol create, remove, rename, and other metadata -changes are refused. Ownership and permissions under `/os` are synthetic. +and truncation to zero; under `/os` protocol create, remove, rename and other +metadata changes are refused, as is every create and remove in the control +tree but the pane directories. Ownership and permissions under `/os` are +synthetic. Zero-length truncation accepts the accompanying `mtime` hint sent by Linux v9fs; the hint is not stored. Standalone timestamp changes remain refused. @@ -148,7 +181,8 @@ for Unix and TCP, a poll loop for QUIC, and the 9P client for mounts); `zig build fs-test` drives real sessions using the independent Python client in `test/ninep.py`; `zig build fs-discovery-test` checks that browsing creates -nothing and that `new`, `ctl`, `name`, `sel` and `log` behave. `zig build +nothing, that a pane create and remove work, and that `look`, `exec`, `name`, +`sel` and `log` behave. `zig build 9p-test` checks the two engine configurations' budgets (the engine's own tests are cloud9's `zig build test`); `zig build fs-bench` measures filesystem transactions in the core. diff --git a/docs/v9fs.md b/docs/v9fs.md index 6cb4e998..8cc97ff9 100644 --- a/docs/v9fs.md +++ b/docs/v9fs.md @@ -12,7 +12,7 @@ ls "$PARDES_MOUNT/pane" cat "$PARDES_MOUNT/index" cat "$PARDES_MOUNT/README" cat "$PARDES_MOUNT/pane/$PARDES_PANE/body" -echo 'exec Msg hello' > "$PARDES_MOUNT/ctl" +echo 'Msg hello' > "$PARDES_MOUNT/exec" ``` The mount belongs to that pane's subprocess tree. Other panes and the editor diff --git a/features.txt b/features.txt index 3bfc6967..bee079a7 100644 --- a/features.txt +++ b/features.txt @@ -20,3 +20,51 @@ on tty mode the mouse selection works but the pardes selection on that pane shou between tty panes without changing the pardes semantics or adding anything extra, just neat tricks like this. Still, you might need to come up with something to decrease the number of movements/interactions needed to do simple things like copy and pasting text from a terminal to another. + +The 9p protocol needs to be simplified and made plan9 idiomatic. Stop leaning on ctl verbs: a name should be the operation. The filesystem should carry more +in stat metadata (real sizes, mtimes, qid versions so a client can poll for change cheaply) and use the real 9P operations for what is currently a ctl verb or a +magic read. cloud9's engine already exposes fs.Features{create, remove, wstat} and the editor backend simply never declared them, so /new creating a pane on +*read* becomes a Tcreate in /pane, del becomes Tremove, cleartag becomes a truncating write to tag, and clean/dirty, scroll/noscroll, mark/nomark and +addr=dot/dot=addr/limit=addr become their own files. What is left of ctl should be only the verbs with no file analog. + +shift-esc stopped leaving raw tty mode on the sdl backend. Commit a624a56 moved raw tty keys to an early-return branch that only knew ctrl-B and bare Esc, so +shift-esc was forwarded to the child instead. It is the unconditional way out of tty mode and should stay that way. + +On tty mode scrolling should work and not always move the focus down to follow a new line. The terminal only moves down to follow new output when the last line +is already at the bottom, like most terminals and editors. Typing and entering raw mode snap back to live output, so nobody types blind. + +The different kinds of layout pardes can initialize (tty mode, file mode, the classic three-shell boot, and the others that already exist) should be an explicit +enum rather than a chain of ifs over tty_only/shells/file/missing. That part of the code needs to be more explicit. The bare tty startup should always start with +an empty text pane at the bottom, not focused. + +Nested pardes detection stopped working. Spawning a subprocess should export an env variable holding the pardes pid, so a child can see it and call a Look on the +parent through the 9p mount instead of starting a second session; whether 9p is mounted is another env variable the child can check. + +Builtins should call Msg with the builtin name when they are called, minus a few exceptions like Msg itself. This is gated on a verbose config that is on by +default and can be turned off. + +The sr.ht upstream has a macos update pushed to it. Pull it, merge it into the tip here as its own change, then look at what the macos backend gained and port +those features to the sdl backend wherever it makes sense. + +Config options should print symmetrically with the way they are set: instead of showing transparency with a colon and a percent sign it should read like +`Etcetera 70`, exactly what you would type to set it, and the same for every other setting. LocationsConfig should only open an output window with the current +config when it is called with no arguments. + +Closing the last pane in a column should not delete the column: it should leave a new empty pane there instead. A column closes only when it is closed explicitly, +so if there is no builtin for that, add a Delcol that sits on the column tagline by default. And in every tagline the builtin that kills or closes the thing should +come last, which does not look like the case for panes right now. + +Pasting regressed on the terminal: inside agent sessions text is being pasted as an image and simply does not work. Reproduce it first, then fix it. + +The 9p skill documentation should teach interacting with a running pardes through the /mnt/9p mount with ordinary file tools — cat, echo, ls — as the normal +ad-hoc path, and fall back to the python client only when nothing is mounted. + +Dead sessions are never removed from the posted-9P registry, which is a bug. A session that aborts or is killed leaves both its socket in $XDG_RUNTIME_DIR and its +symlink under the registry directory, so /mnt/9p/pardes lists entries that give Input/output error on access. postToRegistry only ever replaces its own name's +entry; nothing sweeps the rest. Posting should sweep the service directory and unlink every entry whose target refuses a connection, and the dangling socket with +it. cloud9 already classifies a refused connect as stale (post.zig Probe), and 9p_io.zig already has `alive`, which treats uncertainty as live -- that is the right +bias, so only a definite refusal reaps. + +After all of the above, do an optimization pass on startup time for the gui and tty platforms: measure first, then optimize. build.zig already has a `perf` step +(gesture latency and bounded terminal stress, with --json and a --base baseline to compare against), so a startup measurement belongs there rather than in a new +harness, and the baseline files are how a regression gets caught later. diff --git a/src/9p_io.zig b/src/9p_io.zig index 4f7c2e97..3d019e0d 100644 --- a/src/9p_io.zig +++ b/src/9p_io.zig @@ -596,7 +596,7 @@ pub const Listener = struct { } for (l.control) |fd| { setCloexec(fd); - setNonblock(fd); + _ = setNonblock(fd); } l.arm(); l.watcher = try std.Thread.spawn(.{}, watchQuic, .{l}); @@ -671,6 +671,7 @@ pub const Listener = struct { log.warn("registry post skipped: cannot create {s}", .{svc}); return; } + sweepRegistry(l.io, svc); var entry_buf: [sun_path_len:0]u8 = undefined; const entry = std.fmt.bufPrintSentinel(&entry_buf, "{s}/{s}", .{ svc, name }, 0) catch { log.warn("registry post skipped: name too long: {s}", .{name}); @@ -679,15 +680,15 @@ pub const Listener = struct { const target = l.path_buf[0..l.path_len]; // Replace only what is provably not live: our own entry, or a - // dead predecessor's symlink. `isListening` treats uncertainty - // as live, so it is only asked about an entry that *is* a - // symlink; anything else is left strictly alone and the - // symlink below simply fails. + // dead predecessor's symlink. `probe` treats uncertainty as + // live, so it is only asked about an entry that *is* a symlink; + // anything else is left strictly alone and the symlink below + // simply fails. var link_buf: [sun_path_len]u8 = undefined; const n = libc.readlink(entry, &link_buf, link_buf.len); if (n >= 0) { const had = link_buf[0..@intCast(n)]; - if (!std.mem.eql(u8, had, target) and alive(entry)) { + if (!std.mem.eql(u8, had, target) and probe(entry) == .live) { log.warn("registry entry pardes/{s} is live; not re-posted", .{name}); return; } @@ -842,12 +843,129 @@ pub fn listen(io: std.Io, gpa: std.mem.Allocator, named: []const u8, fallback: [ const alive = transport.isListening; -fn setNonblock(fd: c_int) void { +/// What is at a socket path, in cloud9's three answers (`post.Probe`). +/// Asked here with libc rather than through `cloud9.post.probe`, whose +/// raw Linux syscalls darwin cannot compile, but the classification is +/// that file's and must not become a second opinion: the one definite +/// refusal is `.stale`, nothing at the path at all is `.none`, and +/// everything else — connected, busy, refused permission, a surprise — +/// is `.live`. Uncertainty belongs to the server that owns the socket, +/// never to a sweeper deciding what to delete. +const Probe = enum { none, stale, live }; + +/// `SOCK.STREAM`, and the kernel's own non-blocking bit where there is +/// one. Darwin's `SOCK.NONBLOCK` is a Zig shim for `std.posix.socket` +/// to unpack, not an ABI value, so handing it to the raw libc call +/// would ask a kernel that has never heard of it; there it is an +/// `fcntl` instead. +const probe_socket_kind: c_uint = libc.SOCK.STREAM | (if (darwin) 0 else libc.SOCK.NONBLOCK); + +fn probe(path: [:0]const u8) Probe { + if (path.len + 1 > sun_path_len) return .live; // cannot ask; assume occupied + var addr: libc.sockaddr.un = .{ .path = @splat(0) }; + @memcpy(addr.path[0 .. path.len + 1], path[0 .. path.len + 1]); + const fd = libc.socket(libc.AF.UNIX, probe_socket_kind, 0); + if (fd < 0) return .live; + defer _ = libc.close(fd); + + // Non-blocking is the whole safety of this function, so it is read + // back rather than assumed: a BLOCKING connect to a live server + // whose backlog is full parks in the kernel with no timeout to end + // it — measured, it simply never returns — and a sweep that parks + // takes the editor's startup with it. An fd that cannot be proven + // non-blocking is never connected at all, which lands on `.live`, + // the answer that deletes nothing. + if (comptime darwin) _ = setNonblock(fd); + if (!isNonblocking(fd)) return .live; + + if (libc.connect(fd, @ptrCast(&addr), @sizeOf(@TypeOf(addr))) == 0) return .live; + // cloud9's `post.probe` mapping, answer for answer. The connection + // is never wanted: EAGAIN (a full Unix backlog) and EINPROGRESS say + // somebody is listening, which is all that was asked, and the fd + // closes without ever waiting for it to become writable. + return switch (libc.errno(-1)) { + .AGAIN, .INPROGRESS, .PERM, .ACCES => .live, + .CONNREFUSED => .stale, + .NOENT, .NOTDIR => .none, + else => .live, + }; +} + +/// Reaps the registry entries whose editor is gone, once per post. +/// +/// A clean exit unposts itself (`unpostFromRegistry`), so everything +/// left behind comes from an exit that could not: an aborted test, a +/// kill, a crash. No code in the dead process can ever run, so the cure +/// has to be somebody else's readdir, and the next editor to start is +/// the somebody. It is only ever a symlink that is followed or +/// unlinked, because that is the only thing `postToRegistry` makes and +/// anything else under a name belongs to whoever put it there; and only +/// a definite refusal counts as gone. The socket a stale entry points +/// at goes too, but not before a stat agrees it is a socket of ours: a +/// plain file answers a connect with the same refusal. +fn sweepRegistry(io: std.Io, svc: [:0]const u8) void { + if (comptime !supported) return; + + // The names are staged before anything is unlinked, so the sweep + // never asks a directory to keep reading while it is being edited. + var names: [4096]u8 = undefined; + var staged: usize = 0; + { + const dir = std.Io.Dir.openDirAbsolute(io, svc, .{ .iterate = true }) catch return; + defer dir.close(io); + var read_buf: [std.Io.Dir.Iterator.reader_buffer_len]u8 align(@alignOf(usize)) = undefined; + var reader: std.Io.Dir.Reader = .init(dir, &read_buf); + while (true) { + const listed = (reader.next(io) catch break) orelse break; + if (listed.name.len == 0 or listed.name.len > 255) continue; + if (staged + 1 + listed.name.len > names.len) break; + names[staged] = @intCast(listed.name.len); + @memcpy(names[staged + 1 ..][0..listed.name.len], listed.name); + staged += 1 + listed.name.len; + } + } + + var reaped: usize = 0; + var i: usize = 0; + while (i < staged) { + const name = names[i + 1 ..][0..names[i]]; + i += 1 + name.len; + var entry_buf: [sun_path_len:0]u8 = undefined; + const entry = std.fmt.bufPrintSentinel(&entry_buf, "{s}/{s}", .{ svc, name }, 0) catch continue; + const facts = statNoFollow(entry) orelse continue; + if (facts.mode & 0o170000 != 0o120000) continue; // not a symlink: not ours to judge + const state = probe(entry); + if (state == .live) continue; + var link_buf: [sun_path_len]u8 = undefined; + const n = libc.readlink(entry, &link_buf, link_buf.len); + if (libc.unlink(entry) != 0) continue; + reaped += 1; + // A relative target would resolve against this editor's working + // directory, which says nothing about what the entry named. + if (state != .stale or n <= 0 or link_buf[0] != '/') continue; + var target_buf: [sun_path_len:0]u8 = undefined; + const target = std.fmt.bufPrintSentinel(&target_buf, "{s}", .{link_buf[0..@intCast(n)]}, 0) catch continue; + const t = statNoFollow(target) orelse continue; + if (t.mode & 0o170000 == 0o140000 and t.uid == libc.getuid()) _ = libc.unlink(target); + } + if (reaped != 0) log.info("reaped {d} stale registry entries under {s}", .{ reaped, svc }); +} + +/// Whether it worked, because `probe` is not allowed to find out the +/// hard way: a caller that needs the guarantee has to be able to check. +fn setNonblock(fd: c_int) bool { const flags = libc.fcntl(fd, libc.F.GETFL, @as(c_int, 0)); - if (flags < 0) return; + if (flags < 0) return false; var o: libc.O = @bitCast(@as(u32, @bitCast(flags))); o.NONBLOCK = true; - _ = libc.fcntl(fd, libc.F.SETFL, @as(c_int, @bitCast(@as(u32, @bitCast(o))))); + return libc.fcntl(fd, libc.F.SETFL, @as(c_int, @bitCast(@as(u32, @bitCast(o))))) >= 0; +} + +fn isNonblocking(fd: c_int) bool { + const flags = libc.fcntl(fd, libc.F.GETFL, @as(c_int, 0)); + if (flags < 0) return false; + const o: libc.O = @bitCast(@as(u32, @bitCast(flags))); + return o.NONBLOCK; } const testing = std.testing; @@ -866,6 +984,108 @@ test "a name that is not one path component is no address at all" { try testing.expect(socketPath(&buf, "/run", "a\x00b") == null); } +test "the registry sweep takes the dead entries and leaves everything else" { + if (comptime !supported) return error.SkipZigTest; + // Under the real runtime directory, because a sun_path is 108 bytes + // and the test cache's temporary directories are longer than that. + var dir_buf: [sun_path_len:0]u8 = undefined; + const base = socketDir(&dir_buf) orelse return error.SkipZigTest; + if (!ensureSocketDir(base)) return error.SkipZigTest; + + var svc_buf: [sun_path_len:0]u8 = undefined; + const svc = std.fmt.bufPrintSentinel(&svc_buf, "{s}/sweep-{d}", .{ base, @as(u32, @intCast(libc.getpid())) }, 0) catch + return error.SkipZigTest; + if (libc.mkdir(svc, 0o700) != 0) return error.SkipZigTest; + + var paths: [5][sun_path_len:0]u8 = undefined; + const live_sock = try std.fmt.bufPrintSentinel(&paths[0], "{s}/live.sock", .{svc}, 0); + const dead_sock = try std.fmt.bufPrintSentinel(&paths[1], "{s}/dead.sock", .{svc}, 0); + const live = try std.fmt.bufPrintSentinel(&paths[2], "{s}/live", .{svc}, 0); + const dead = try std.fmt.bufPrintSentinel(&paths[3], "{s}/dead", .{svc}, 0); + const stranger = try std.fmt.bufPrintSentinel(&paths[4], "{s}/stranger", .{svc}, 0); + defer { + for ([_][:0]const u8{ live_sock, dead_sock, live, dead, stranger }) |p| _ = libc.unlink(p); + _ = libc.rmdir(svc); + } + + const listening = bindSocket(live_sock); + try testing.expect(listening >= 0); + defer _ = libc.close(listening); + try testing.expectEqual(@as(c_int, 0), libc.listen(listening, 1)); + + // Bound and then dropped: the file stays, and nobody answers it — + // exactly what an aborted test leaves behind. + const abandoned = bindSocket(dead_sock); + try testing.expect(abandoned >= 0); + _ = libc.close(abandoned); + + try testing.expectEqual(@as(c_int, 0), libc.symlink(live_sock, live)); + try testing.expectEqual(@as(c_int, 0), libc.symlink(dead_sock, dead)); + // Not a symlink, so not this program's to reason about, even though + // connecting to it is refused exactly like the dead socket. + try std.Io.Dir.cwd().writeFile(testing.io, .{ .sub_path = stranger, .data = "" }); + + // The guarantee itself, asserted rather than inferred from the fact + // that the test finished: if a probe socket ever stops being + // non-blocking the connect below parks instead of failing, and a + // parked test costs whoever is building far more than a red one. + const checking = libc.socket(libc.AF.UNIX, probe_socket_kind, 0); + try testing.expect(checking >= 0); + if (comptime darwin) try testing.expect(setNonblock(checking)); + try testing.expect(isNonblocking(checking)); + _ = libc.close(checking); + + // The listener's backlog is filled before anything is asked, because + // a full backlog is the one place a blocking connect parks forever + // (`unix_wait_for_peer`, no timeout) and a sweep that only answers + // while nobody is queued is the sweep that hangs a build. Nothing + // below accepts any of these, so the queue stays full throughout. + var queued: [8]c_int = @splat(-1); + defer for (queued) |fd| { + if (fd >= 0) _ = libc.close(fd); + }; + for (&queued) |*slot| { + const fd = libc.socket(libc.AF.UNIX, probe_socket_kind, 0); + if (fd < 0) break; + if (comptime darwin) _ = setNonblock(fd); + var addr: libc.sockaddr.un = .{ .path = @splat(0) }; + @memcpy(addr.path[0 .. live_sock.len + 1], live_sock[0 .. live_sock.len + 1]); + _ = libc.connect(fd, @ptrCast(&addr), @sizeOf(@TypeOf(addr))); + slot.* = fd; + } + + const started = transport.nowMs(); + try testing.expectEqual(Probe.live, probe(live)); + try testing.expectEqual(Probe.stale, probe(dead)); + + sweepRegistry(testing.io, svc); + + // Promptly, and not "eventually": a blocking probe never comes back + // at all, so any wall-clock bound at all is the assertion that + // matters. A second is several thousand times what three connects + // and a readdir cost. + try testing.expect(transport.nowMs() - started < 1000); + + try testing.expect(statNoFollow(dead) == null); + try testing.expect(statNoFollow(dead_sock) == null); + try testing.expect(statNoFollow(live) != null); + try testing.expect(statNoFollow(live_sock) != null); + try testing.expect(statNoFollow(stranger) != null); + try testing.expectEqual(Probe.live, probe(live)); +} + +fn bindSocket(path: [:0]const u8) c_int { + const fd = libc.socket(libc.AF.UNIX, libc.SOCK.STREAM, 0); + if (fd < 0) return fd; + var addr: libc.sockaddr.un = .{ .path = @splat(0) }; + @memcpy(addr.path[0 .. path.len + 1], path[0 .. path.len + 1]); + if (libc.bind(fd, @ptrCast(&addr), @sizeOf(@TypeOf(addr))) != 0) { + _ = libc.close(fd); + return -1; + } + return fd; +} + test "one connection's buffers are sized from the one msize constant" { try testing.expect(msize >= ninep.min_msize); try testing.expectEqual(@as(u32, msize), Runner.msize); @@ -1102,24 +1322,41 @@ pub fn start(io: std.Io, gpa: std.mem.Allocator, core: *pardes.Pardes) ?*Listene return listener; } -pub fn exportPaneEnv(listener: ?*const Listener, serial: u32, forward_look: bool) void { - _ = unsetenv("PARDES_FORWARD_LOOK"); +/// What a pane shell is told about the editor above it, set into this +/// process's environment just before `forkpty` so the child inherits it. +/// +/// Two independent facts, and they are separate variables because they answer +/// separate questions. `PARDES_PID` says "you are inside this editor, and it +/// will take a Look from you": a session whose 9P listener never came up still +/// owns its children, so the child says so rather than looking, from its own +/// side, exactly like no pardes at all. `PARDES_9P` and `PARDES_PANE` say how +/// to reach it, and a `--nested` session exports them too — its socket stays +/// open to scripts and to mounted shells — while withholding `PARDES_PID`, +/// which is the whole of what `--nested` means. +pub fn exportPaneEnv(listener: ?*const Listener, serial: u32, adopts: bool) void { + var announced = false; + if (adopts) announcing: { + var buf: [16]u8 = undefined; + const text = std.fmt.bufPrintSentinel(&buf, "{d}", .{@as(u32, @intCast(libc.getpid()))}, 0) catch + break :announcing; + announced = setenv("PARDES_PID", text, 1) == 0; + } + if (!announced) _ = unsetenv("PARDES_PID"); + if (listener) |l| exporting: { var sock: [sun_path_len]u8 = undefined; const path = std.fmt.bufPrintSentinel(&sock, "{s}", .{l.path()}, 0) catch break :exporting; var buf: [16]u8 = undefined; const id = std.fmt.bufPrintSentinel(&buf, "{d}", .{serial}, 0) catch break :exporting; if (setenv("PARDES_9P", path, 1) != 0) break :exporting; - if (setenv("PARDES_PANE", id, 1) != 0) break :exporting; - if (setenv("PARDES_FORWARD_LOOK", if (forward_look) "1" else "0", 1) == 0) return; + if (setenv("PARDES_PANE", id, 1) == 0) return; } _ = unsetenv("PARDES_9P"); _ = unsetenv("PARDES_PANE"); - _ = setenv("PARDES_FORWARD_LOOK", "0", 1); } -test "9P shell environment preserves identity when nested Look forwarding is disabled" { - const names = [_][*:0]const u8{ "XDG_RUNTIME_DIR", "HOME", "PARDES_9P", "PARDES_PANE", "PARDES_FORWARD_LOOK" }; +test "9P shell environment states being inside pardes apart from how to reach it" { + const names = [_][*:0]const u8{ "XDG_RUNTIME_DIR", "HOME", "PARDES_PID", "PARDES_9P", "PARDES_PANE" }; var saved: [names.len]?[:0]u8 = @splat(null); for (names, &saved) |name, *value| { if (libc.getenv(name)) |old| value.* = try testing.allocator.dupeZ(u8, std.mem.span(old)); @@ -1146,17 +1383,32 @@ test "9P shell environment preserves identity when nested Look forwarding is dis const path = "/tmp/pardes-example.sock"; @memcpy(listener.path_buf[0..path.len], path); listener.path_len = path.len; + var own: [16]u8 = undefined; + const own_pid = try std.fmt.bufPrint(&own, "{d}", .{@as(u32, @intCast(libc.getpid()))}); + + // A `--nested` session: reachable for scripts and mounts, but nobody's + // parent, so a pardes started in one of its shells runs a session of + // its own instead of handing its argument over. exportPaneEnv(listener, 7, false); try testing.expectEqualStrings(path, std.mem.span(libc.getenv("PARDES_9P").?)); try testing.expectEqualStrings("7", std.mem.span(libc.getenv("PARDES_PANE").?)); - try testing.expectEqualStrings("0", std.mem.span(libc.getenv("PARDES_FORWARD_LOOK").?)); + try testing.expect(libc.getenv("PARDES_PID") == null); + exportPaneEnv(listener, 8, true); try testing.expectEqualStrings("8", std.mem.span(libc.getenv("PARDES_PANE").?)); - try testing.expectEqualStrings("1", std.mem.span(libc.getenv("PARDES_FORWARD_LOOK").?)); + try testing.expectEqualStrings(own_pid, std.mem.span(libc.getenv("PARDES_PID").?)); + + // A session whose listener never came up is still the session this shell + // is inside: the pid stands on its own, and only the address is missing. + exportPaneEnv(null, 0, true); + try testing.expect(libc.getenv("PARDES_9P") == null); + try testing.expect(libc.getenv("PARDES_PANE") == null); + try testing.expectEqualStrings(own_pid, std.mem.span(libc.getenv("PARDES_PID").?)); + exportPaneEnv(null, 0, false); try testing.expect(libc.getenv("PARDES_9P") == null); try testing.expect(libc.getenv("PARDES_PANE") == null); - try testing.expectEqualStrings("0", std.mem.span(libc.getenv("PARDES_FORWARD_LOOK").?)); + try testing.expect(libc.getenv("PARDES_PID") == null); } pub const Client = struct { diff --git a/src/builtins.zig b/src/builtins.zig index 39d70e5d..aa2b2d6d 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -137,6 +137,14 @@ pub const registry = struct { unreachable; } + /// Does this builtin say its own name on the message row before it runs? + /// The ones that own that row themselves declare `quiet` and do not. + pub fn announces(b: Builtin()) bool { + inline for (manualBuiltinList(), 0..) |T, i| + if (@intFromEnum(b) == i) return !(@hasDecl(T, "quiet") and T.quiet); + return true; // a setting builtin changes something invisible; say so + } + pub fn dispatch(b: Builtin(), c: Ctx) void { inline for (manualBuiltinList(), 0..) |T, i| if (@intFromEnum(b) == i) return T.run(c); @@ -259,6 +267,7 @@ pub const Unmount = struct { pub const Msg = struct { pub const takes_arg = true; + pub const quiet = true; // it IS the message row pub fn run(c: Ctx) void { if (c.arg) |text| c.p.setMessage(c.id, text) @@ -542,11 +551,15 @@ pub const LocationsConfig = struct { pub const output: OutputTraits = .{ .name = "+LocationsConfig" }; pub fn run(c: Ctx) void { - const next = c.p.locations_config.parse(c.arg orelse "") catch |err| { + const argument = std.mem.trim(u8, c.arg orelse "", " \t\r\n"); + const next = c.p.locations_config.parse(argument) catch |err| { c.p.reportError(c.id, "LocationsConfig", err); return; }; c.p.locations_config = next; + // Bare, it is a question, and the window is the answer. With arguments + // it is a setting, and a setting that opens a window is noise. + if (argument.len != 0) return; report(c) catch |err| c.p.reportError(c.id, "LocationsConfig", err); } diff --git a/src/config.zig b/src/config.zig index 440549b3..3169b20c 100644 --- a/src/config.zig +++ b/src/config.zig @@ -71,6 +71,7 @@ pub const leader_path = paths: { .FocusTint = null, .ColumnTags = null, .SyntaxBold = null, + .Verbose = null, .TreeContextTagStyle = null, .Wrap = "tw", .Tagbottom = "tb", @@ -224,10 +225,10 @@ pub const tty_filter_min_contrast: f64 = 1.5; pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill"; -pub const pane_builtins_str = "Tty Del Collapse"; -pub const pdf_pane_builtins_str = "Tty Del PdfSections PdfTint Collapse"; -pub const file_pane_builtins_str = "Save Tty Del Collapse"; -pub const terminal_pane_builtins_str = "Tty Save Del Mode Filter Collapse"; +pub const pane_builtins_str = "Tty Collapse Del"; +pub const pdf_pane_builtins_str = "Tty PdfSections PdfTint Collapse Del"; +pub const file_pane_builtins_str = "Save Tty Collapse Del"; +pub const terminal_pane_builtins_str = "Tty Save Mode Filter Collapse Del"; // Each mode badge is one codepoint. pub const tag_normal = " "; @@ -540,6 +541,8 @@ pub const Runtime = struct { focus_tint: bool = true, column_tags: bool = true, syntax_bold: bool = false, + /// Builtins announce themselves on the message row. + verbose: bool = true, window_opacity: u8 = 100, window_blur: u8 = 0, window_opacity_pending: bool = true, @@ -637,7 +640,7 @@ pub const Runtime = struct { pub const Capability = std.meta.FieldEnum(Capabilities); - pub const Toggle = enum { colors, wrap, tree_context_tag_style, tag_bottom, debug, focus_tint, column_tags, syntax_bold }; + pub const Toggle = enum { colors, wrap, tree_context_tag_style, tag_bottom, debug, focus_tint, column_tags, syntax_bold, verbose }; pub const Scene = std.meta.FieldEnum(layout.SceneEffect); pub const Action = union(enum) { @@ -682,6 +685,7 @@ pub const Runtime = struct { .{ .word = "FocusTint", .action = .{ .toggle = .focus_tint } }, .{ .word = "ColumnTags", .action = .{ .toggle = .column_tags } }, .{ .word = "SyntaxBold", .action = .{ .toggle = .syntax_bold } }, + .{ .word = "Verbose", .action = .{ .toggle = .verbose } }, .{ .word = "Theme", .action = .theme }, .{ .word = "Shell", .action = .shell }, .{ .word = "Font", .action = .font, .availability = .font_picker }, @@ -761,15 +765,10 @@ pub const Runtime = struct { pub fn apply(state: *Runtime, setting: Setting, argument: ?[]const u8) bool { switch (setting.action) { + // Every toggle names a bool field of its own, so one line covers + // all of them and a new toggle needs no arm here. .toggle => |field| switch (field) { - .colors => state.colors = !state.colors, - .wrap => state.wrap = !state.wrap, - .tree_context_tag_style => state.tree_context_tag_style = !state.tree_context_tag_style, - .tag_bottom => state.tag_bottom = !state.tag_bottom, - .debug => state.debug = !state.debug, - .focus_tint => state.focus_tint = !state.focus_tint, - .column_tags => state.column_tags = !state.column_tags, - .syntax_bold => state.syntax_bold = !state.syntax_bold, + inline else => |f| @field(state, @tagName(f)) = !@field(state, @tagName(f)), }, .shell => { const value = std.mem.trim(u8, argument orelse return false, " \t\r\n"); @@ -835,46 +834,42 @@ pub const Runtime = struct { return findAction(.{ .transition = transition }).?.word; } + /// Each line reads as the command that would set it: the word, then the + /// value you would type after it. No colons, no units — `WindowOpacity 70` + /// is both what Config prints and what you write back. pub fn writeReport(out: *std.Io.Writer, context: ReportContext) !void { const state = context.state; var wrote_transition = false; for (settings) |setting| switch (setting.action) { .toggle => |field| { const value = switch (field) { - .colors => state.colors, - .wrap => state.wrap, - .tree_context_tag_style => state.tree_context_tag_style, - .tag_bottom => state.tag_bottom, - .debug => state.debug, - .focus_tint => state.focus_tint, - .column_tags => state.column_tags, - .syntax_bold => state.syntax_bold, + inline else => |f| @field(state, @tagName(f)), }; - try out.print("{s}: {s}\n", .{ setting.word, onOff(value) }); + try out.print("{s} {s}\n", .{ setting.word, onOff(value) }); }, - .theme => try out.print("{s}: {s}\n", .{ setting.word, context.theme_name }), + .theme => try out.print("{s} {s}\n", .{ setting.word, context.theme_name }), .window_opacity => { if (setting.enabled(context.capabilities)) - try out.print("{s}: {d}%{s}\n", .{ + try out.print("{s} {d}{s}\n", .{ setting.word, state.window_opacity, if (state.window_opacity_pending) " (pending)" else "", }) else - try out.print("{s}: unsupported\n", .{setting.word}); + try out.print("{s} unsupported\n", .{setting.word}); }, .window_blur => { if (setting.enabled(context.capabilities)) - try out.print("{s}: {d}%\n", .{ setting.word, state.window_blur }) + try out.print("{s} {d}\n", .{ setting.word, state.window_blur }) else - try out.print("{s}: unsupported\n", .{setting.word}); + try out.print("{s} unsupported\n", .{setting.word}); }, .shell => { const chosen = state.shell.requested.get(); try out.print( - "{s} requested (new panes): {s}{s}\n" ++ - "{s} effective (last spawn): {s}\n" ++ - "{s} pending: {s}\n", + "{s} requested (new panes) {s}{s}\n" ++ + "{s} effective (last spawn) {s}\n" ++ + "{s} pending {s}\n", .{ setting.word, if (chosen.len == 0) context.compiled_default_shell else chosen, @@ -887,18 +882,18 @@ pub const Runtime = struct { ); }, .font => if (!setting.enabled(context.capabilities)) - try out.print("{s}: unsupported\n", .{setting.word}) + try out.print("{s} unsupported\n", .{setting.word}) else { if (state.font.requested_size_hundredths == 0) - try out.print("{s} requested size: unchanged\n", .{setting.word}) + try out.print("{s} requested size unchanged\n", .{setting.word}) else - try out.print("{s} requested size: {d}.{d:0>2}\n", .{ setting.word, state.font.requested_size_hundredths / 100, state.font.requested_size_hundredths % 100 }); + try out.print("{s} requested size {d}.{d:0>2}\n", .{ setting.word, state.font.requested_size_hundredths / 100, state.font.requested_size_hundredths % 100 }); try out.print( - "{s} requested: {s}\n" ++ - "{s} requested path: {s}\n" ++ - "{s} effective: {s}\n" ++ - "{s} pending: {s}\n" ++ - "{s} effective size: {d}.{d:0>2} {s}\n", + "{s} requested {s}\n" ++ + "{s} requested path {s}\n" ++ + "{s} effective {s}\n" ++ + "{s} pending {s}\n" ++ + "{s} effective size {d}.{d:0>2} {s}\n", .{ setting.word, shown(state.font.requested_name.get()), @@ -916,28 +911,28 @@ pub const Runtime = struct { ); }, .tagline_size => if (!context.capabilities.tagline_font_size) - try out.print("{s}: unsupported\n", .{setting.word}) + try out.print("{s} unsupported\n", .{setting.word}) else if (!setting.enabled(context.capabilities)) - try out.print("{s}: {d}% (build-time only)\n", .{ setting.word, state.font.tagline_percent }) + try out.print("{s} {d} (build-time only)\n", .{ setting.word, state.font.tagline_percent }) else - try out.print("{s}: {d}%\n", .{ setting.word, state.font.tagline_percent }), + try out.print("{s} {d}\n", .{ setting.word, state.font.tagline_percent }), .transition => { if (wrote_transition) continue; wrote_transition = true; if (!setting.enabled(context.capabilities)) - try out.writeAll("Panel transition: unsupported\n") + try out.writeAll("Panel transition unsupported\n") else - try out.print("Panel transition: {s}\n", .{transitionSettingName(state.panel_transition)}); + try out.print("Panel transition {s}\n", .{transitionSettingName(state.panel_transition)}); }, .scene => |effect| { if (!setting.enabled(context.capabilities)) { - try out.print("{s}: unsupported\n", .{setting.word}); + try out.print("{s} unsupported\n", .{setting.word}); continue; } const enabled = switch (effect) { inline else => |field| @field(state.scene_effects, @tagName(field)), }; - try out.print("{s}: {s}\n", .{ setting.word, onOff(enabled) }); + try out.print("{s} {s}\n", .{ setting.word, onOff(enabled) }); }, }; @@ -1073,7 +1068,8 @@ pub const Runtime = struct { test "Config report observes every simple setting and all live context" { var state: Runtime = .{}; - var storage: [4096]u8 = undefined; + // Every setting, every context line: the report outgrows 4K. + var storage: [8192]u8 = undefined; const context: ReportContext = .{ .startup_config_path = "/tmp/pardes/init", .platform = "gui", @@ -1112,37 +1108,38 @@ pub const Runtime = struct { const report = storage[0..out.end]; const expected = switch (setting.action) { .toggle => |field| switch (field) { - .colors => "Colors: off\n", - .wrap => "Wrap: off\n", - .tree_context_tag_style => "TreeContextTagStyle: off\n", - .tag_bottom => "Tagbottom: on\n", - .debug => "Debug: on\n", - .focus_tint => "FocusTint: off\n", - .column_tags => "ColumnTags: off\n", - .syntax_bold => "SyntaxBold: on\n", + .colors => "Colors off\n", + .wrap => "Wrap off\n", + .tree_context_tag_style => "TreeContextTagStyle off\n", + .tag_bottom => "Tagbottom on\n", + .debug => "Debug on\n", + .focus_tint => "FocusTint off\n", + .column_tags => "ColumnTags off\n", + .syntax_bold => "SyntaxBold on\n", + .verbose => "Verbose off\n", }, - .shell => "Shell requested (new panes): fish\n", - .tagline_size => "TaglineSize: 73%\n", - .window_opacity => "WindowOpacity: 85% (pending)\n", - .window_blur => "WindowBlur: 40%\n", + .shell => "Shell requested (new panes) fish\n", + .tagline_size => "TaglineSize 73\n", + .window_opacity => "WindowOpacity 85 (pending)\n", + .window_blur => "WindowBlur 40\n", .transition => |transition| switch (transition) { .off => unreachable, - .slide => "Panel transition: PanelSlide\n", - .zoom => "Panel transition: PanelZoom\n", - .dissolve => "Panel transition: PanelDissolve\n", - .ascii => "Panel transition: PanelAscii\n", - .vertical => "Panel transition: PanelVertical\n", - .edges => "Panel transition: PanelEdges\n", - .fall => "Panel transition: PanelFall\n", - .wave => "Panel transition: PanelWave\n", - .curtain => "Panel transition: PanelCurtain\n", - .scramble => "Panel transition: PanelScramble\n", - .typewriter => "Panel transition: PanelType\n", + .slide => "Panel transition PanelSlide\n", + .zoom => "Panel transition PanelZoom\n", + .dissolve => "Panel transition PanelDissolve\n", + .ascii => "Panel transition PanelAscii\n", + .vertical => "Panel transition PanelVertical\n", + .edges => "Panel transition PanelEdges\n", + .fall => "Panel transition PanelFall\n", + .wave => "Panel transition PanelWave\n", + .curtain => "Panel transition PanelCurtain\n", + .scramble => "Panel transition PanelScramble\n", + .typewriter => "Panel transition PanelType\n", }, .scene => |effect| switch (effect) { - .crt => "Crt: on\n", - .ripple => "Ripple: on\n", - .glitch => "Glitch: on\n", + .crt => "Crt on\n", + .ripple => "Ripple on\n", + .glitch => "Glitch on\n", }, .theme, .font => unreachable, }; @@ -1163,15 +1160,15 @@ pub const Runtime = struct { try writeReport(&out, context); const report = storage[0..out.end]; for ([_][]const u8{ - "Theme: acme\n", - "WindowOpacity: 85%\n", - "Font requested size: 18.50\n", - "Font requested: Wanted Mono\n", - "Font requested path: /fonts/wanted.ttf\n", - "Font effective: Effective Mono\n", - "Font pending: on\n", - "Font effective size: 13.75 points\n", - "TaglineSize: 82%\n", + "Theme acme\n", + "WindowOpacity 85\n", + "Font requested size 18.50\n", + "Font requested Wanted Mono\n", + "Font requested path /fonts/wanted.ttf\n", + "Font effective Effective Mono\n", + "Font pending on\n", + "Font effective size 13.75 points\n", + "TaglineSize 82\n", "Startup config: /tmp/pardes/init\n", "Platform: gui\n", "Compiled default shell: /bin/sh\n", @@ -1197,23 +1194,23 @@ pub const Runtime = struct { out = .fixed(&storage); try writeReport(&out, defaults_context); const defaults_report = storage[0..out.end]; - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "WindowOpacity: unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "WindowOpacity unsupported\n") != null); try std.testing.expect(!find("WindowOpacity").?.enabled(defaults_context.capabilities)); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "WindowBlur: unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "WindowBlur unsupported\n") != null); try std.testing.expect(!find("WindowBlur").?.enabled(defaults_context.capabilities)); try std.testing.expect(find("WindowOpacity").?.enabled(context.capabilities)); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Shell requested (new panes): /bin/sh (default)\n") != null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Shell effective (last spawn): (none)\n") != null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Shell pending: on\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Shell requested (new panes) /bin/sh (default)\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Shell effective (last spawn) (none)\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Shell pending on\n") != null); try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Startup config: no per-user config path\n") != null); try std.testing.expect(std.mem.indexOf(u8, defaults_report, "GUI shader source:") == null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Font: unsupported\n") != null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Font requested:") == null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Panel transition: off\n") != null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Crt: unsupported\n") != null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Ripple: unsupported\n") != null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Glitch: unsupported\n") != null); - try std.testing.expect(std.mem.indexOf(u8, defaults_report, "TaglineSize: unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Font unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Font requested") == null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Panel transition off\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Crt unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Ripple unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Glitch unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, defaults_report, "TaglineSize unsupported\n") != null); try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Look hover delay: off\n") != null); try std.testing.expect(std.mem.indexOf(u8, defaults_report, "Native images: off\n") != null); @@ -1223,8 +1220,8 @@ pub const Runtime = struct { out = .fixed(&storage); try writeReport(&out, defaults_context); const web_report = storage[0..out.end]; - try std.testing.expect(std.mem.indexOf(u8, web_report, "Panel transition: unsupported\n") != null); - try std.testing.expect(std.mem.indexOf(u8, web_report, "TaglineSize: 100% (build-time only)\n") != null); + try std.testing.expect(std.mem.indexOf(u8, web_report, "Panel transition unsupported\n") != null); + try std.testing.expect(std.mem.indexOf(u8, web_report, "TaglineSize 100 (build-time only)\n") != null); } }; diff --git a/src/fs-help.txt b/src/fs-help.txt index a0a84b28..1e5d64c2 100644 --- a/src/fs-help.txt +++ b/src/fs-help.txt @@ -2,41 +2,43 @@ Pardes control filesystem ========================= README this guide index one line per pane: serial, kind (text|term|pdf|image), dirty flag, name -ctl write commands; read the serials the last command made or touched -new reading it creates one empty pane and answers its serial +status pid, version and pane count +look write a line: a right click on it at the active pane; read: the serials it touched +exec write a line: a middle click, an editor command word or a shell line; read the same log one line per editor event (new/del/rename/save ); reads wait screen rendered screen as JSON, frozen from open to close listeners the session's dial addresses -pane// name body tag ctl addr data xdata sel errors event, and pty/ for terminals +pane/ mkdir makes a pane, rmdir closes it +pane// name body tag ctl addr dot limit data xdata sel dirty mark scroll + errors event look exec, and pty/ for terminals os/ the host filesystem src/ the editor's own sources, only in a -Dembed-sources=true build -Commands, on /ctl (applied at the active pane) or on pane//ctl (at that pane): - look TEXT a right click: open a file, a file:12 location, a directory, a URL - exec TEXT a middle click: an editor command word (Save Del New Newcol Mount Unmount - Dump Restore Msg Find Grep Tty ...), or a shell command for the pane's terminal Below, $m is the mount point (PARDES_MOUNT in a Tty9p shell; 9ns and 9p work too): cat $m/index which panes exist - n=$(cat $m/new) make a pane, remember its serial - echo 'look /etc/hosts:3' > $m/ctl; cat $m/ctl open a file, see the pane it went to - printf 'text\n' > $m/pane/$n/body append to a pane (>| truncates first) + mkdir $m/pane/x; n=$(awk 'END{print $1}' $m/index) make a pane, take its serial + echo /etc/hosts:3 > $m/look; cat $m/look open a file, see the pane it went to + printf 'text\n' > $m/pane/$n/body append to a pane (>| truncates first) cat $m/pane/$n/name; echo notes.txt > $m/pane/$n/name read, then rename - echo 'exec Save' > $m/pane/$n/ctl save it (exec Del closes it) - echo 'exec Msg hello' > $m/ctl show text in the editor + echo Save > $m/pane/$n/exec save it; rmdir $m/pane/$n closes it + echo 'Msg hello' > $m/exec show text in the editor echo '#0,#5' > $m/pane/$n/addr; echo NEW > $m/pane/$n/data replace bytes 0..5 - echo 'dot=addr' > $m/pane/$n/ctl; cat $m/pane/$n/sel select the range, read it + cp $m/pane/$n/addr $m/pane/$n/dot; cat $m/pane/$n/sel select the range, read it + cat $m/pane/$n/dirty; echo 0 > $m/pane/$n/dirty is it modified? say it is not cat $m/log block until a pane is made, renamed, saved or closed cat $m/pane/$n/event hold it open to own that pane's clicks - echo 'exec' > $m/pane/$n/pty/ctl restart a shell; also winsize C R, sig INT + echo exec > $m/pane/$n/pty/ctl restart a shell; also winsize C R, sig INT Pitfalls, one each: - Every open of new makes another pane, so `cat $m/new` twice makes two. - ls, stat and find create nothing; reading log, event or pty/data blocks until something happens. - exec Del closes a pane even when it is dirty; index shows the dirty flag first. - look and exec are lowercase verbs; the words after exec are the editor's capitalized commands. - ctl also takes acme's addr verbs (addr=dot dot=addr limit=addr clean dirty get show ...), one per line. + Only mkdir in pane/ makes a pane; ls, stat, find and every read create nothing. + Panes are named by the serial the editor gives them, not by the name mkdir asked for. + rmdir closes a pane even when it is dirty; index and pane//dirty show the flag. + addr, dot and limit read the same pair of offsets they take, so cp between them works. + dirty, mark and scroll read "0" or "1" and take "0" or "1"; truncating limit lifts it. Writing body appends; open it with truncation to replace; writes are whole UTF-8 sequences. + Truncating tag clears the part you may edit; truncating dot or addr empties it. A terminal's body is a history snapshot frozen per open; pty/data is the live stream. screen is frozen per open handle as well; reopen it for a fresh frame. - A command that fails is reported in the editor, not as a write error; a malformed line fails the write. + A failing command is reported in the editor, not as a write error; a bad line fails the write. + pane//ctl reads acme's window status line and takes one verb, get, which reloads from disk. diff --git a/src/fs.zig b/src/fs.zig index 7f416440..7cb08980 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -260,12 +260,13 @@ test "unmount refuses pane paths inherited directories and queued save targets" } gpa.free(pane.file.?.path); pane.file.?.path = try gpa.dupe(u8, "/n/peer2/file"); - const shell = try p.newShell(1, "/n/peer/dir"); - p.setCwd(1, "/n/peer/dir"); + const slot = p.freeSlot().?; + const shell = try p.newShell(slot, "/n/peer/dir"); + p.setCwd(slot, "/n/peer/dir"); try std.testing.expectError(error.MountInUse, unmount(p, "peer")); pane.cwd = .{ .inherited = shell }; try std.testing.expectError(error.MountInUse, unmount(p, "peer")); - p.setCwd(1, "/"); + p.setCwd(slot, "/"); while (p.nextEffect()) |_| {} p.emit(.{ .save_text = .{ .pane = 0, .serial = pane.serial, .path = .from("/n/peer/pending") } }); try std.testing.expectError(error.MountInUse, unmount(p, "peer")); @@ -1261,10 +1262,10 @@ pub const Namespace = struct { /// The editor-wide event stream, recorded only while /log is held open. log: tree.events.Queue = .{}, log_readers: u16 = 0, - /// What the last ctl command created or touched, answered by reading /ctl. + /// What the last look or exec created or touched, answered by reading + /// either of those files. results: [MAX_PANES]u32 = undefined, results_len: u8 = 0, - results_valid: bool = false, /// Process start, the mtime of everything that has no edit time of its own. started: u32 = 0, diff --git a/src/host_io.zig b/src/host_io.zig index 212c23b4..fb09fcc7 100644 --- a/src/host_io.zig +++ b/src/host_io.zig @@ -874,6 +874,9 @@ pub fn forkShell( if (fs == null) return error.SessionSocketRequired; break :blk try @import("linux/v9fs.zig").helperPath(&helper_buf); } else null; + // The last argument is whether this session takes its children's Looks — + // every session does but a `--nested` one, and a fork with no core at all + // (the tests below) is nobody's parent. ninep_io.exportPaneEnv( fs, if (core) |c| (if (c.panes[pane]) |pn| pn.serial else 0) else 0, diff --git a/src/main.zig b/src/main.zig index 4b1910bd..1cbdf24c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -112,6 +112,16 @@ const nested_text = \\ ; +/// $PARDES_PID named a live editor, so this shell IS inside one, but the Look +/// never got there. Saying so beats quietly opening the second editor that +/// $PARDES_PID exists to prevent. +const unreachable_text = + \\pardes: this shell is inside pardes, but that session did not take the + \\file. Check that it is still running, or pass --nested to start a second + \\editor in here anyway. + \\ +; + // The browser runtime calls a C main (exported below); everything else keeps // the std.process.Init entry. pub const main = if (is_emscripten) webMain else nativeMain; @@ -260,6 +270,10 @@ fn nativeMain(init: std.process.Init) !void { } } opts.tty_only = explicit_tty or session_only; + // The real bare-tty startup wants the editor half present from the first + // frame, so it names that layout; a core booted for a test names none and + // gets the raw shell by itself. + if (opts.tty_only) opts.boot = .tty; opts.mounts = mounts[0..mounts_len]; if (detach != null and attach != null) badArgs(init.io, "--detach and --attach are opposites: one runs the session, the other joins one", .{}); @@ -272,31 +286,60 @@ fn nativeMain(init: std.process.Init) !void { if (opts.mounts.len != 0 and attach != null) badArgs(init.io, "--mount configures a session's own core, and --attach has none of its own", .{}); if (!new_session and !opts.nested and detach == null and attach == null) forwarding: { - const enabled = std.c.getenv("PARDES_FORWARD_LOOK") orelse break :forwarding; - if (!std.mem.eql(u8, std.mem.span(enabled), "1")) break :forwarding; - const dial = std.mem.span(std.c.getenv("PARDES_9P") orelse break :forwarding); - ninep_io.Client.validateDial(dial) catch break :forwarding; - const pane_text = std.mem.span(std.c.getenv("PARDES_PANE") orelse break :forwarding); - for (pane_text) |byte| if (!std.ascii.isDigit(byte)) break :forwarding; - const serial = std.fmt.parseInt(u32, pane_text, 10) catch break :forwarding; - if (serial == 0) break :forwarding; - var ctl_buf: [64]u8 = undefined; - const ctl = try std.fmt.bufPrint(&ctl_buf, "/pane/{d}/ctl", .{serial}); + // Am I inside a pardes at all? That is $PARDES_PID and nothing else — + // one variable, exported by every session that means to take its + // children's Looks, so a session that could not open a socket is still + // recognisably the session this shell is inside. A pid naming no live + // process is a shell that outlived its editor (a daemon started from a + // pane, a stale environment carried into a new terminal), which is not + // nested at all. + const owner = std.mem.span(std.c.getenv("PARDES_PID") orelse break :forwarding); + const pid = std.fmt.parseInt(std.c.pid_t, owner, 10) catch break :forwarding; + if (pid <= 0 or std.c.kill(pid, @enumFromInt(0)) != 0) break :forwarding; + + // Can I reach it? That is the other two, and it is a separate answer. + const Parent = struct { dial: []const u8, serial: u32 }; + const found: ?Parent = reaching: { + const dial = std.mem.span(std.c.getenv("PARDES_9P") orelse break :reaching null); + ninep_io.Client.validateDial(dial) catch break :reaching null; + const pane_text = std.mem.span(std.c.getenv("PARDES_PANE") orelse break :reaching null); + for (pane_text) |byte| if (!std.ascii.isDigit(byte)) break :reaching null; + const serial = std.fmt.parseInt(u32, pane_text, 10) catch break :reaching null; + if (serial == 0) break :reaching null; + break :reaching .{ .dial = dial, .serial = serial }; + }; + const parent = found orelse { + try std.Io.File.stderr().writeStreamingAll(init.io, unreachable_text); + std.process.exit(1); + }; + // The pane's `look` file: one line, and the line is the clicked text + // itself, which is what a right click in that pane would have been. + var look_buf: [64]u8 = undefined; + const look = try std.fmt.bufPrint(&look_buf, "/pane/{d}/look", .{parent.serial}); const word = positional orelse { var tag_buf: [64]u8 = undefined; - const tag = try std.fmt.bufPrint(&tag_buf, "/pane/{d}/tag", .{serial}); - const contents = ninep_io.Client.read(arena, dial, tag, tag) catch break :forwarding; + const tag = try std.fmt.bufPrint(&tag_buf, "/pane/{d}/tag", .{parent.serial}); + const contents = ninep_io.Client.read(arena, parent.dial, tag, tag) catch { + try std.Io.File.stderr().writeStreamingAll(init.io, unreachable_text); + std.process.exit(1); + }; arena.free(contents); try std.Io.File.stderr().writeStreamingAll(init.io, nested_text); std.process.exit(1); }; + // A word this launch cannot turn into a path is an argument problem + // rather than a nesting one: fall through and let the session that + // starts report it, the way `pardes typo` outside pardes does. if (std.mem.indexOfAny(u8, word, "\r\n") != null) break :forwarding; const target = @import("look.zig").parsePathLine(word); var realbuf: [4096]u8 = undefined; const path = if (pardes.filesystem.isVirtual(target.path)) target.path else (pardes.filesystem.resolveOs(target.path, &realbuf) orelse break :forwarding).path; var command_buf: [8192]u8 = undefined; - const command = std.fmt.bufPrint(&command_buf, "look {s}{s}\n", .{ path, word[target.path.len..] }) catch break :forwarding; - ninep_io.Client.write(arena, dial, ctl, command) catch break :forwarding; + const command = std.fmt.bufPrint(&command_buf, "{s}{s}\n", .{ path, word[target.path.len..] }) catch break :forwarding; + ninep_io.Client.write(arena, parent.dial, look, command) catch { + try std.Io.File.stderr().writeStreamingAll(init.io, unreachable_text); + std.process.exit(1); + }; return; } if (positional) |a| { diff --git a/src/ninep/addr.zig b/src/ninep/addr.zig index f7642b9e..566e2364 100644 --- a/src/ninep/addr.zig +++ b/src/ninep/addr.zig @@ -255,17 +255,25 @@ test "the address language, form by form" { try testing.expectEqual(@as(u32, 6), p.fs.panes[0].addr.q0); // the `o` in "two" try testing.expectEqual(@as(u32, 7), p.fs.panes[0].addr.q1); + // limit is its own file: copying addr onto it bounds the search, and + // truncating it lifts the bound again. + const limit = Node.of(serial, .limit); _ = th.wr(p, addr, "1"); - _ = th.wr(p, Node.of(serial, .ctl), "limit=addr\n"); + try testing.expectEqualStrings("", th.rd(p, limit, 0, 64).bytes); + var copied: [64]u8 = undefined; + const pair = th.rd(p, addr, 0, 64).bytes; + @memcpy(copied[0..pair.len], pair); + _ = th.wr(p, limit, copied[0..pair.len]); + try testing.expectEqual(@as(u32, 4), p.fs.panes[0].limit.?.q1); + try testing.expectEqualStrings(" 0 4 ", th.rd(p, limit, 0, 64).bytes); _ = th.wr(p, addr, "#0"); try testing.expectEqual(E.INVAL, th.wr(p, addr, "/three/").errno()); - _ = th.wr(p, Node.of(serial, .ctl), "clean\n"); - _ = th.call(p, .{ .tag = 6, .op = .open, .node = Node.of(serial, .ctl) }); + _ = th.call(p, .{ .tag = 6, .op = .setattr, .node = limit, .truncate = true }); try testing.expect(p.fs.panes[0].limit == null); _ = th.wr(p, addr, "#0"); try testing.expectEqual(Status.ok, th.wr(p, addr, "/three/").reply.status); - for ([_][]const u8{ "zzz", "#", "//", "/nomatch/", "1 2", "99", "/a\\" }) |bad| { + for ([_][]const u8{ "zzz", "#", "//", "/nomatch/", "1 2 3", "99", "/a\\" }) |bad| { _ = th.wr(p, addr, "#0"); try testing.expectEqual(E.INVAL, th.wr(p, addr, bad).errno()); } diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index d61ebf75..c213ece5 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -1,6 +1,9 @@ -//! The two ctl files. `look TEXT` is a right click and `exec TEXT` a middle -//! click in the editor's own command language; a pane's ctl adds the addr -//! verbs. Reading /ctl answers the serials the last command made or touched. +//! The command files and the status they answer. Writing a line to `look` is +//! a right click on it and writing one to `exec` a middle click, at the +//! active pane from the root and at that pane from /pane//; reading either +//! answers the serials the last command made or touched. /status reports the +//! editor, and a pane's ctl its acme status line and the one verb, `get`, +//! that no file of its own would say any better. const std = @import("std"); const pardes = @import("../pardes.zig"); const panes = @import("../panes.zig"); @@ -16,36 +19,6 @@ const Req = tree.Req; const Reply = tree.Reply; const E = tree.E; -const Verb = enum { - @"addr=dot", - clean, - cleartag, - dirty, - @"dot=addr", - get, - @"limit=addr", - mark, - nomark, - noscroll, - scroll, - show, -}; - -fn verbIs(line: []const u8, word: []const u8) bool { - if (!std.mem.startsWith(u8, line, word)) return false; - return line.len == word.len or line[word.len] == ' ' or line[word.len] == '\t'; -} - -/// The text after `look` or `exec`, or null when the line is not that verb. -/// Control characters other than tab are refused. -fn textAfter(line: []const u8, verb: []const u8) ?[]const u8 { - if (!verbIs(line, verb)) return null; - const text = std.mem.trim(u8, line[verb.len..], " \t"); - if (text.len == 0) return ""; - for (text) |c| if (c < ' ' and c != '\t') return ""; - return text; -} - // ---- which panes a command made or touched ---- const Serials = struct { @@ -96,37 +69,49 @@ fn run(p: *Pardes, id: usize, exec: bool, text: []const u8) void { noteResult(p, if (exec) context else activeSerial(p) orelse return); } -fn beginResults(p: *Pardes) void { - p.fs.results_len = 0; - p.fs.results_valid = true; -} - -// ---- /ctl ---- +// ---- look and exec ---- -pub fn writeRoot(p: *Pardes, req: Req) Reply { +/// One command per line, checked whole before any line runs: a line is the +/// clicked text itself, so it may not be empty or carry control characters. +/// A null `serial` clicks at whichever pane is active as each line runs, +/// which is what the root's own look and exec mean; a serial stays put. +pub fn command(p: *Pardes, req: Req, serial: ?u32, exec: bool) Reply { for ([2]bool{ false, true }) |apply| { - if (apply) beginResults(p); + if (apply) p.fs.results_len = 0; var it = std.mem.splitScalar(u8, req.data, '\n'); while (it.next()) |raw| { - const line = std.mem.trim(u8, raw, " \t\r"); - if (line.len == 0) continue; - const exec = verbIs(line, "exec"); - const text = textAfter(line, if (exec) "exec" else "look") orelse return Reply.fail(req.tag, E.INVAL); - if (text.len == 0) return Reply.fail(req.tag, E.INVAL); + const text = std.mem.trim(u8, raw, " \t\r"); + if (text.len == 0) continue; + for (text) |c| if (c < ' ' and c != '\t') return Reply.fail(req.tag, E.INVAL); if (!apply) continue; - if (p.panes[p.active] == null) return Reply.fail(req.tag, E.NOENT); - run(p, p.active, exec, text); + const id = if (serial) |s| p.paneBySerial(s) orelse break else p.active; + if (p.panes[id] == null) return Reply.fail(req.tag, E.NOENT); + run(p, id, exec, text); } } return .{ .tag = req.tag, .written = @intCast(req.data.len) }; } -pub fn rootText(p: *Pardes, buf: []u8) []const u8 { - var w = std.Io.Writer.fixed(buf); - if (p.fs.results_valid) { - for (p.fs.results[0..p.fs.results_len]) |serial| w.print("{d}\n", .{serial}) catch break; - return w.buffered(); +pub fn resultsLen(p: *Pardes) u64 { + var n: u64 = 0; + for (p.fs.results[0..p.fs.results_len]) |serial| { + var digits: [16]u8 = undefined; + n += (std.fmt.bufPrint(&digits, "{d}\n", .{serial}) catch unreachable).len; } + return n; +} + +pub fn readResults(p: *Pardes, req: Req) Reply { + const out = p.fs.stage(p.gpa); + for (p.fs.results[0..p.fs.results_len]) |serial| + out.print(p.gpa, "{d}\n", .{serial}) catch return Reply.fail(req.tag, E.NOMEM); + return tree.stagedReply(p, req); +} + +// ---- /status ---- + +fn statusText(p: *Pardes, buf: []u8) []const u8 { + var w = std.Io.Writer.fixed(buf); var count: usize = 0; for (p.panes) |slot| count += @intFromBool(slot != null); const pid: u32 = if (comptime pardes.hosted) @intCast(std.c.getpid()) else 0; @@ -134,13 +119,17 @@ pub fn rootText(p: *Pardes, buf: []u8) []const u8 { return w.buffered(); } -pub const root_text_cap = @max(MAX_PANES * 11, 64 + pardes.version.len); +pub const status_text_cap = 64 + pardes.version.len; + +pub fn statusLen(p: *Pardes) u64 { + var buf: [status_text_cap]u8 = undefined; + return statusText(p, &buf).len; +} -pub fn readRoot(p: *Pardes, req: Req) Reply { - var buf: [root_text_cap]u8 = undefined; - const text = rootText(p, &buf); +pub fn readStatus(p: *Pardes, req: Req) Reply { + var buf: [status_text_cap]u8 = undefined; const out = p.fs.stage(p.gpa); - out.appendSlice(p.gpa, text) catch return Reply.fail(req.tag, E.NOMEM); + out.appendSlice(p.gpa, statusText(p, &buf)) catch return Reply.fail(req.tag, E.NOMEM); return tree.stagedReply(p, req); } @@ -190,74 +179,35 @@ pub fn readPane(p: *Pardes, req: Req, pane: *Pane) Reply { return tree.stagedReply(p, req); } -pub fn writePane(p: *Pardes, req: Req, serial: u32) Reply { - for ([2]bool{ false, true }) |apply| { - if (apply) beginResults(p); - var it = std.mem.splitScalar(u8, req.data, '\n'); - while (it.next()) |raw| { - const line = std.mem.trim(u8, raw, " \t\r"); - if (line.len == 0) continue; - const live = p.paneBySerial(serial) orelse if (apply) break else return Reply.fail(req.tag, E.NOENT); - const errno = paneVerb(p, live, line, apply); - if (errno != 0) return Reply.fail(req.tag, errno); - } +/// `get` is the one thing here that no file of the pane's own would say: it +/// reloads the buffer from the name it carries, wherever that name resolves. +/// Repeating it in one write would only reload the same bytes, so it runs once. +pub fn writePane(p: *Pardes, req: Req, pane: *Pane) Reply { + var asked = false; + var it = std.mem.splitScalar(u8, req.data, '\n'); + while (it.next()) |raw| { + const line = std.mem.trim(u8, raw, " \t\r"); + if (line.len == 0) continue; + if (!std.mem.eql(u8, line, "get")) return Reply.fail(req.tag, E.INVAL); + asked = true; + } + if (asked) { + const errno = get(p, pane); + if (errno != 0) return Reply.fail(req.tag, errno); } return .{ .tag = req.tag, .written = @intCast(req.data.len) }; } -fn paneVerb(p: *Pardes, id: usize, line: []const u8, apply: bool) u16 { - const pane = p.panes[id] orelse return E.INVAL; - const pf = &p.fs.panes[id]; - - for ([_]bool{ false, true }) |exec| if (textAfter(line, if (exec) "exec" else "look")) |text| { - if (text.len == 0) return E.INVAL; - if (apply) run(p, id, exec, text); - return 0; +fn get(p: *Pardes, pane: *Pane) u16 { + const f = pane_files.fileOf(pane) orelse return 0; + if (!panes.Output.fileTraits(f.output).saves) return 0; + const bytes = fs.read(p, f.path) catch |err| return switch (err) { + error.FileNotFound => E.NOENT, + else => E.IO, }; - const v = std.meta.stringToEnum(Verb, line) orelse return E.INVAL; - if (!apply) return 0; - - switch (v) { - .@"addr=dot" => pf.addr = pane_files.dotOf(pane), - .@"dot=addr" => { - pane_files.clampAddr(pf, pane_files.bodyOf(pane).len); - pane_files.setDot(pane, pf.addr); - }, - .@"limit=addr" => { - pane_files.clampAddr(pf, pane_files.bodyOf(pane).len); - pf.limit = pf.addr; - }, - .clean => if (pane_files.fileOf(pane)) |f| { - f.saved_revision = f.revision; - }, - .dirty => if (pane_files.fileOf(pane)) |f| { - f.saved_revision = f.revision -% 1; - }, - .cleartag => { - pane.tag_tail_len = 0; - pane.tag_init = true; - }, - .get => if (pane_files.fileOf(pane)) |f| { - if (panes.Output.fileTraits(f.output).saves) { - if (fs.read(p, f.path)) |bytes| { - panes.File.pushUndo(p, pane); - panes.File.setContent(p, f, bytes); - f.saved_revision = f.revision; - } else |err| return switch (err) { - error.FileNotFound => E.NOENT, - else => E.IO, - }; - } - }, - .mark => { - pf.nomark = false; - panes.File.pushUndo(p, pane); - }, - .nomark => pf.nomark = true, - .noscroll => pf.noscroll = true, - .scroll => pf.noscroll = false, - .show => pane_files.showOffset(pane, pane_files.dotOf(pane).q0), - } + panes.File.pushUndo(p, pane); + panes.File.setContent(p, f, bytes); + f.saved_revision = f.revision; return 0; } @@ -272,7 +222,9 @@ const withFile = th.withFile; const serialOf = th.serialOf; const Node = tree.Node; const Status = tree.Status; -const root_ctl = @intFromEnum(tree.TopFile.ctl); +const root_status = @intFromEnum(tree.TopFile.status); +const root_look = @intFromEnum(tree.TopFile.look); +const root_exec = @intFromEnum(tree.TopFile.exec); test "pane ctl read is index's five fields plus width in cells, font and tab width" { const gpa = testing.allocator; @@ -299,37 +251,18 @@ test "pane ctl read is index's five fields plus width in cells, font and tab wid try testing.expectEqualStrings("'it''s'", w.buffered()); } -test "every pane ctl verb, and every refusal" { +test "the pane ctl takes get, and nothing that a file of its own now answers" { const gpa = testing.allocator; const p = try withFile(gpa, "one\ntwo\n"); defer p.deinit(); - const serial = serialOf(p); - const ctl_node = Node.of(serial, .ctl); - const pane = p.panes[0].?; - const pf = &p.fs.panes[0]; - - try testing.expectEqual(Status.ok, wr(p, ctl_node, "nomark\nnoscroll\ndirty\n").reply.status); - try testing.expect(pf.nomark and pf.noscroll and pane_files.dirtyOf(pane)); - try testing.expectEqual(Status.ok, wr(p, ctl_node, "mark\nscroll\nclean\n").reply.status); - try testing.expect(!pf.nomark and !pf.noscroll and !pane_files.dirtyOf(pane)); - - _ = wr(p, ctl_node, "cleartag\n"); - try testing.expectEqual(@as(usize, 0), pane.tag_tail_len); - - _ = wr(p, Node.of(serial, .addr), "2"); - _ = wr(p, ctl_node, "limit=addr\n"); - try testing.expectEqual(@as(u32, 4), pf.limit.?.q0); - _ = wr(p, ctl_node, "dot=addr\nshow\n"); - try testing.expectEqual(@as(i32, 1), pane.cur_row); - + const ctl_node = Node.of(serialOf(p), .ctl); for ([_][]const u8{ - "menu", "nomenu", "dump echo hi", "dumpdir /tmp", "font Go Mono", "lock", "unlock", "bogus", "DEL", - "name x.txt", "put", "del", "delete", "Look x", "Exec Save", + "menu", "nomenu", "dump echo hi", "font Go Mono", "lock", "bogus", "DEL", + "name x.txt", "put", "del", "delete", "Look x", "Exec Save", "clean", + "dirty", "cleartag", "dot=addr", "addr=dot", "show", "mark", "nomark", + "scroll", "limit=addr", "get x", "look /tmp", "exec Del", }) |bad| try testing.expectEqual(E.INVAL, wr(p, ctl_node, bad).errno()); - - try testing.expect(!pane_files.dirtyOf(pane)); - try testing.expectEqual(E.INVAL, wr(p, ctl_node, "dirty\nbogus\n").errno()); - try testing.expect(!pane_files.dirtyOf(pane)); + try testing.expect(p.paneBySerial(serialOf(p)) != null); } test "exec runs a builtin at the pane and records the pane it acted on" { @@ -338,61 +271,69 @@ test "exec runs a builtin at the pane and records the pane it acted on" { defer p.deinit(); const serial = serialOf(p); const pane = p.panes[0].?; - try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "exec Msg from ctl\n").reply.status); - try testing.expectEqualStrings("from ctl", pane.msg[0..pane.msg_len]); + try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .exec), "Msg from exec\n").reply.status); + try testing.expectEqualStrings("from exec", pane.msg[0..pane.msg_len]); var expected: [16]u8 = undefined; - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{serial}), rd(p, root_ctl, 0, 4096).bytes); + const own = try std.fmt.bufPrint(&expected, "{d}\n", .{serial}); + try testing.expectEqualStrings(own, rd(p, root_exec, 0, 4096).bytes); + // Either command file reads back what the last one did. + try testing.expectEqualStrings(own, rd(p, Node.of(serial, .look), 0, 4096).bytes); + try testing.expectEqual(@as(u64, own.len), call(p, .{ .tag = 1, .op = .getattr, .node = root_exec }).reply.attr.size); - try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "exec New\n").reply.status); + try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .exec), "New\n").reply.status); const made = p.panes[p.active].?; try testing.expect(made.serial != serial); - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{made.serial}), rd(p, root_ctl, 0, 4096).bytes); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{made.serial}), rd(p, root_exec, 0, 4096).bytes); - try testing.expectEqual(Status.ok, wr(p, Node.of(made.serial, .ctl), "exec Del\n").reply.status); + try testing.expectEqual(Status.ok, wr(p, Node.of(made.serial, .exec), "Del\n").reply.status); try testing.expect(p.paneBySerial(made.serial) == null); - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{made.serial}), rd(p, root_ctl, 0, 4096).bytes); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{made.serial}), rd(p, root_exec, 0, 4096).bytes); } -test "the root ctl reads editor status until a command runs and validates whole batches" { +test "status reads the editor, and look and exec validate whole batches" { const gpa = testing.allocator; const p = try withFile(gpa, "Msg root\n"); defer p.deinit(); - const status = rd(p, root_ctl, 0, 4096); + const status = rd(p, root_status, 0, 4096); try testing.expectEqual(Status.ok, status.reply.status); var lines = std.mem.tokenizeScalar(u8, status.bytes, '\n'); try testing.expect(std.mem.startsWith(u8, lines.next().?, "pid ")); var expected: [64]u8 = undefined; try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "version {s}", .{pardes.version}), lines.next().?); - try testing.expectEqualStrings("panes 1", lines.next().?); + var live: usize = 0; + for (p.panes) |slot| live += @intFromBool(slot != null); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "panes {d}", .{live}), lines.next().?); try testing.expect(lines.next() == null); - const stat = call(p, .{ .tag = 1, .op = .getattr, .node = root_ctl }); + const stat = call(p, .{ .tag = 1, .op = .getattr, .node = root_status }); try testing.expectEqual(@as(u64, status.bytes.len), stat.reply.attr.size); - try testing.expectEqual(@as(u16, 0o666), stat.reply.attr.mode); + try testing.expectEqual(@as(u16, 0o444), stat.reply.attr.mode); + try testing.expectEqual(E.PERM, wr(p, root_status, "anything\n").errno()); + try testing.expectEqualStrings("", rd(p, root_exec, 0, 4096).bytes); const serial = p.next_serial; - for ([_][]const u8{ "look", "exec", "look \t", "Look /virtual/index", "exec Msg a\x00b", "exec Msg x\nbogus\n", "name x", "put" }) |invalid| { - try testing.expectEqual(E.INVAL, wr(p, root_ctl, invalid).errno()); + for ([_][]const u8{ "Msg a\x00b", "Msg x\nMsg \x01y\n" }) |invalid| { + try testing.expectEqual(E.INVAL, wr(p, root_exec, invalid).errno()); try testing.expectEqual(serial, p.next_serial); } - try testing.expectEqualStrings(status.bytes, rd(p, root_ctl, 0, 4096).bytes); + // An empty write is a no-op, not a command. + try testing.expectEqual(Status.ok, wr(p, root_exec, "\n \n").reply.status); + try testing.expectEqualStrings("", rd(p, root_exec, 0, 4096).bytes); + try testing.expectEqualStrings(status.bytes, rd(p, root_status, 0, 4096).bytes); const pane = p.panes[0].?; - try testing.expectEqual(Status.ok, wr(p, root_ctl, "exec Msg hello there\n").reply.status); + try testing.expectEqual(Status.ok, wr(p, root_exec, "Msg hello there\n").reply.status); try testing.expectEqualStrings("hello there", pane.msg[0..pane.msg_len]); - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{pane.serial}), rd(p, root_ctl, 0, 4096).bytes); - - try testing.expectEqual(Status.ok, wr(p, root_ctl, "look /virtual/index\nexec New\n").reply.status); - var made: [MAX_PANES]u32 = undefined; - var n: usize = 0; - for (p.panes) |slot| if (slot) |q| if (q.serial != pane.serial) { - made[n] = q.serial; - n += 1; - }; - try testing.expectEqual(@as(usize, 2), n); - const listed = rd(p, root_ctl, 0, 4096); - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n{d}\n", .{ @min(made[0], made[1]), @max(made[0], made[1]) }), listed.bytes); - const opened = p.panes[p.paneBySerial(@min(made[0], made[1])).?].?; + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{pane.serial}), rd(p, root_exec, 0, 4096).bytes); + + try testing.expectEqual(Status.ok, wr(p, root_look, "/virtual/index\n").reply.status); + const opened = p.panes[p.active].?; try testing.expectEqualStrings("/virtual/index", opened.file.?.path); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{opened.serial}), rd(p, root_look, 0, 4096).bytes); + + try testing.expectEqual(Status.ok, wr(p, root_exec, "New\n").reply.status); + const made = p.panes[p.active].?; + try testing.expect(made.serial != opened.serial); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{made.serial}), rd(p, root_exec, 0, 4096).bytes); } test "look opens spaced paths and locations without editing the source pane" { @@ -406,12 +347,12 @@ test "look opens spaced paths and locations without editing the source pane" { const p = try withFile(gpa, "source stays intact\n"); defer p.deinit(); const source = p.panes[0].?; - const ctl_node = Node.of(source.serial, .ctl); + const look_node = Node.of(source.serial, .look); const revision = source.file.?.revision; const undo_len = source.file.?.history.undo_len; source.cur_col = 3; - var command: [4200]u8 = undefined; - try testing.expectEqual(Status.ok, wr(p, ctl_node, try std.fmt.bufPrint(&command, "look {s}:2:3\n", .{path})).reply.status); + var clicked: [4200]u8 = undefined; + try testing.expectEqual(Status.ok, wr(p, look_node, try std.fmt.bufPrint(&clicked, "{s}:2:3\n", .{path})).reply.status); const opened = p.panes[p.active].?; try testing.expect(opened != source); try testing.expectEqualStrings(path, opened.file.?.path); @@ -423,14 +364,14 @@ test "look opens spaced paths and locations without editing the source pane" { try testing.expectEqual(undo_len, source.file.?.history.undo_len); try testing.expectEqual(@as(i32, 3), source.cur_col); var expected: [16]u8 = undefined; - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{opened.serial}), rd(p, root_ctl, 0, 4096).bytes); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{opened.serial}), rd(p, root_look, 0, 4096).bytes); p.active = 0; - try testing.expectEqual(Status.ok, wr(p, root_ctl, try std.fmt.bufPrint(&command, "look {s}:3:2\n", .{path})).reply.status); + try testing.expectEqual(Status.ok, wr(p, root_look, try std.fmt.bufPrint(&clicked, "{s}:3:2\n", .{path})).reply.status); try testing.expect(p.panes[p.active].? == opened); try testing.expectEqual(@as(i32, 2), opened.cur_row); try testing.expectEqual(@as(i32, 1), opened.cur_col); - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{opened.serial}), rd(p, root_ctl, 0, 4096).bytes); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}\n", .{opened.serial}), rd(p, root_look, 0, 4096).bytes); } test "look validates the whole batch before opening virtual files" { @@ -438,17 +379,17 @@ test "look validates the whole batch before opening virtual files" { const p = try withFile(gpa, "source\n"); defer p.deinit(); const source = p.panes[0].?; - const ctl_node = Node.of(source.serial, .ctl); + const look_node = Node.of(source.serial, .look); const serial = p.next_serial; for ([_][]const u8{ - "look", "look \t", "look /virtual/index\x00ignored", "look /virtual/index\nbogus\n", + "/virtual/index\x00ignored", "/virtual/index\n/virtual/\x01index\n", }) |invalid| { - try testing.expectEqual(E.INVAL, wr(p, ctl_node, invalid).errno()); + try testing.expectEqual(E.INVAL, wr(p, look_node, invalid).errno()); try testing.expectEqual(serial, p.next_serial); try testing.expectEqual(@as(usize, 0), p.active); try testing.expectEqualStrings("source\n", source.file.?.content); } - try testing.expectEqual(Status.ok, wr(p, ctl_node, "look /n/self/index\n").reply.status); + try testing.expectEqual(Status.ok, wr(p, look_node, "/n/self/index\n").reply.status); const opened = p.panes[p.active].?; try testing.expectEqualStrings("/virtual/index", opened.file.?.path); try testing.expect(std.mem.indexOf(u8, opened.file.?.content, "/test.txt") != null); @@ -480,7 +421,7 @@ test "get reloads the pane from disk and reports a missing file without losing d _ = wr(p, Node.of(serial, .name), try std.fmt.bufPrint(&name, "{s}/missing.txt\n", .{directory})); _ = wr(p, Node.of(serial, .body), "unsaved\n"); - try testing.expectEqual(E.NOENT, wr(p, ctl_node, "get\nexec Del\n").errno()); + try testing.expectEqual(E.NOENT, wr(p, ctl_node, "get\n").errno()); try testing.expect(p.paneBySerial(serial) != null); try testing.expectEqualStrings("from disk\nunsaved\n", pane.file.?.content); try testing.expect(pane_files.dirtyOf(pane)); @@ -494,7 +435,7 @@ test "exec Save writes the named file through the host" { const pane = p.panes[0].?; try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .name), "/tmp/renamed.txt\n").reply.status); try testing.expect(pane_files.dirtyOf(pane)); - const saved = wr(p, Node.of(serial, .ctl), "exec Save\n"); + const saved = wr(p, Node.of(serial, .exec), "Save\n"); try testing.expectEqual(Status.ok, saved.reply.status); try testing.expect(saved.saved); p.perform(.{ .save_file = .{ .pane = 0 } }); diff --git a/src/ninep/events.zig b/src/ninep/events.zig index fb49e41b..bd53bcd9 100644 --- a/src/ninep/events.zig +++ b/src/ninep/events.zig @@ -89,6 +89,13 @@ pub const Queue = struct { } }; +/// What the next read would answer, which is the size a stat reports: a +/// client can see there is something waiting without parking on it. +pub fn pending(q: *const Queue) u64 { + const record = q.peek() orelse return 0; + return record.len; +} + /// One record per read; `.again` parks the read until a record arrives. pub fn readQueue(p: *Pardes, req: Req, q: *Queue) Reply { const record = q.peek() orelse return .{ .tag = req.tag, .status = .again }; @@ -461,7 +468,7 @@ test "a pane deleted while its event file is open leaves no suppression behind" const b = call(p, .{ .tag = 19, .op = .open, .node = event }); try testing.expectEqual(@as(u16, 2), p.fs.listeners); - _ = wr(p, Node.of(serial, .ctl), "exec Del\n"); + _ = wr(p, Node.of(serial, .exec), "Del\n"); try testing.expect(p.paneBySerial(serial) == null); try testing.expectEqual(@as(u16, 0), p.fs.listeners); @@ -471,7 +478,7 @@ test "a pane deleted while its event file is open leaves no suppression behind" try testing.expectEqual(E.NOENT, rd(p, event, 0, 64).errno()); try testing.expectEqual(E.NOENT, rd(p, Node.of(serial, .body), 0, 64).errno()); - try testing.expectEqual(E.NOENT, wr(p, Node.of(serial, .ctl), "clean\n").errno()); + try testing.expectEqual(E.NOENT, wr(p, Node.of(serial, .dirty), "0\n").errno()); try testing.expectEqual(E.NOENT, call(p, .{ .tag = 22, .op = .open, .node = event }).errno()); } @@ -535,7 +542,7 @@ test "the log parks until a pane is created, renamed, saved or deleted" { try std.fmt.bufPrint(&expected, "rename {d} /tmp/logged.txt\n", .{serial}), rd(p, log, 0, 4096).bytes, ); - const saving = wr(p, Node.of(serial, .ctl), "exec Save\n"); + const saving = wr(p, Node.of(serial, .exec), "Save\n"); try testing.expectEqual(Status.ok, saving.reply.status); try testing.expect(saving.saved); p.perform(.{ .save_file = .{ .pane = @intCast(id) } }); @@ -543,7 +550,7 @@ test "the log parks until a pane is created, renamed, saved or deleted" { try std.fmt.bufPrint(&expected, "save {d} /tmp/logged.txt\n", .{serial}), rd(p, log, 0, 4096).bytes, ); - try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .ctl), "exec Del\n").reply.status); + try testing.expectEqual(Status.ok, wr(p, Node.of(serial, .exec), "Del\n").reply.status); try testing.expectEqualStrings( try std.fmt.bufPrint(&expected, "del {d} /tmp/logged.txt\n", .{serial}), rd(p, log, 0, 4096).bytes, diff --git a/src/ninep/pane.zig b/src/ninep/pane.zig index b37ae645..42c0c48e 100644 --- a/src/ninep/pane.zig +++ b/src/ninep/pane.zig @@ -1,5 +1,6 @@ -//! The files under /pane//: name, body, tag, ctl, addr, data, xdata, -//! sel, errors and event. Terminal panes add pty/ (pty.zig). +//! The files under /pane//: name, body, tag, ctl, the three range +//! files addr, dot and limit, data, xdata, sel, the three flag files dirty, +//! mark and scroll, errors, event, look and exec. Terminals add pty/ (pty.zig). const std = @import("std"); const pardes = @import("../pardes.zig"); const panes = @import("../panes.zig"); @@ -187,10 +188,15 @@ pub fn spliceBody(p: *Pardes, id: usize, pane: *Pane, q0: usize, q1: usize, byte return take; } -// ---- sizes reported by stat ---- +// ---- what stat reports ---- + +/// A range file's text: acme's addr format, two right-aligned offsets, so +/// that copying one range file onto another is the whole of `dot=addr`. +pub const range_len: u64 = 24; pub fn fileSize(p: *Pardes, id: usize, f: PaneFile) u64 { const pane = p.panes[id] orelse return 0; + const pf = &p.fs.panes[id]; return switch (f) { .body, .data, .xdata => bodyOf(pane).len, .tag => tagOf(p, pane).len, @@ -203,7 +209,24 @@ pub fn fileSize(p: *Pardes, id: usize, f: PaneFile) u64 { const d = dotOf(pane); break :sel @max(d.q0, d.q1) - d.q0; }, - .dir, .addr, .errors, .event, .pty, .pty_ctl, .pty_status, .pty_data => 0, + .addr, .dot => range_len, + .limit => if (pf.limit == null) 0 else range_len, + .dirty, .mark, .scroll => 2, + .look, .exec => ctl.resultsLen(p), + .event => events.pending(&pf.events), + .pty_status => pty.status_len, + .pty_data => events.pending(&pf.pty_out), + .dir, .errors, .pty, .pty_ctl => 0, + }; +} + +/// The qid version, which a client polls to watch a file for change. Only +/// the pane's text can promise one: its revision counts every edit, and +/// nothing else here changes in step with it. +pub fn versionOf(pane: *const Pane, f: PaneFile) u32 { + return switch (f) { + .body, .data, .xdata => if (pane.file) |*file| file.revision else 0, + else => 0, }; } @@ -246,13 +269,17 @@ pub fn read(p: *Pardes, req: Req, id: usize, pane: *Pane, file: PaneFile) Reply .ctl => ctl.readPane(p, req, pane), .addr => addr: { clampAddr(pf, bodyOf(pane).len); - const out = p.fs.stage(p.gpa); - out.print(p.gpa, "{d:>11} {d:>11} ", .{ pf.addr.q0, pf.addr.q1 }) catch {}; - break :addr tree.stagedReply(p, req); + break :addr readRange(p, req, pf.addr); }, + .dot => readRange(p, req, dotOf(pane)), + .limit => readRange(p, req, pf.limit), .data => readData(req, id, pane, pf, false), .xdata => readData(req, id, pane, pf, true), .sel => readSel(req, id, pane), + .dirty => readFlag(p, req, dirtyOf(pane)), + .mark => readFlag(p, req, !pf.nomark), + .scroll => readFlag(p, req, !pf.noscroll), + .look, .exec => ctl.readResults(p, req), .event => events.readQueue(p, req, &pf.events), .pty_status => pty.readStatus(p, req, id, pane), .pty_data => pty.readData(p, req, pf), @@ -260,6 +287,20 @@ pub fn read(p: *Pardes, req: Req, id: usize, pane: *Pane, file: PaneFile) Reply }; } +/// An unset limit reads empty, which is how a client tells it from one that +/// happens to bound nothing. +fn readRange(p: *Pardes, req: Req, r: ?State.Range) Reply { + const out = p.fs.stage(p.gpa); + if (r) |range| out.print(p.gpa, "{d:>11} {d:>11} ", .{ range.q0, range.q1 }) catch {}; + return tree.stagedReply(p, req); +} + +fn readFlag(p: *Pardes, req: Req, on: bool) Reply { + const out = p.fs.stage(p.gpa); + out.appendSlice(p.gpa, if (on) "1\n" else "0\n") catch {}; + return tree.stagedReply(p, req); +} + fn readBody(p: *Pardes, req: Req, id: usize, pane: *Pane) Reply { if (pane.file != null) { const text = bodyOf(pane); @@ -322,10 +363,12 @@ pub fn write(p: *Pardes, req: Req, id: usize, pane: *Pane, file: PaneFile) Reply .name => writeName(p, req, id, pane), .body => writeBody(p, req, id, pane), .tag => writeTag(p, req, pane), - .ctl => ctl.writePane(p, req, pane.serial), - .addr => writeAddr(p, req, id, pane), + .ctl => ctl.writePane(p, req, pane), + .addr, .dot, .limit => writeRange(p, req, id, pane, file), .data, .xdata => writeData(p, req, id, pane), .sel => writeSel(p, req, id, pane), + .dirty, .mark, .scroll => writeFlag(p, req, id, pane, file), + .look, .exec => ctl.command(p, req, pane.serial, file == .exec), .event => events.writeEvent(p, req, id), .errors => if (appendErrors(p, id, req.data)) |took| .{ .tag = req.tag, .written = @intCast(took) } @@ -389,15 +432,68 @@ fn writeSel(p: *Pardes, req: Req, id: usize, pane: *Pane) Reply { return .{ .tag = req.tag, .written = @intCast(take) }; } -fn writeAddr(p: *Pardes, req: Req, id: usize, pane: *Pane) Reply { +/// The pair of offsets a range file reads back, so that copying `addr` onto +/// `dot` or `limit` does what acme spelled `dot=addr` and `limit=addr`. +fn pairOf(text: []const u8) ?State.Range { + var it = std.mem.tokenizeAny(u8, text, " \t"); + const q0 = std.fmt.parseInt(u32, it.next() orelse return null, 10) catch return null; + const q1 = std.fmt.parseInt(u32, it.next() orelse return null, 10) catch return null; + if (it.next() != null) return null; + return .{ .q0 = q0, .q1 = @max(q0, q1) }; +} + +/// A range file takes an address expression, or that pair of offsets. +fn rangeOf(pf: *State, text: []const u8, data: []const u8) ?State.Range { + const expr = std.mem.trimEnd(u8, data, "\n"); + if (pairOf(expr)) |r| { + const n = clip(text.len); + return .{ .q0 = @min(r.q0, n), .q1 = @min(r.q1, n) }; + } + var a: addressing.Addr = .{ .text = text, .lim = pf.limit, .expr = expr }; + const r = a.address(pf.addr) orelse return null; + return if (a.i < expr.len) null else r; +} + +fn writeRange(p: *Pardes, req: Req, id: usize, pane: *Pane, file: PaneFile) Reply { const pf = &p.fs.panes[id]; const text = bodyOf(pane); clampAddr(pf, text.len); - const expr = std.mem.trimEnd(u8, req.data, "\n"); - var a: addressing.Addr = .{ .text = text, .lim = pf.limit, .expr = expr }; - const r = a.address(pf.addr) orelse return Reply.fail(req.tag, E.INVAL); - if (a.i < expr.len) return Reply.fail(req.tag, E.INVAL); - pf.addr = r; + const r = rangeOf(pf, text, req.data) orelse return Reply.fail(req.tag, E.INVAL); + switch (file) { + .addr => pf.addr = r, + .limit => pf.limit = r, + // Setting dot scrolls to it, which is the whole of acme's `show`. + .dot => { + if (fileOf(pane) == null) return Reply.fail(req.tag, E.INVAL); + setDot(pane, r); + }, + else => unreachable, + } + return .{ .tag = req.tag, .written = @intCast(req.data.len) }; +} + +fn flagOf(data: []const u8) ?bool { + const word = std.mem.trim(u8, data, " \t\r\n"); + if (std.mem.eql(u8, word, "1")) return true; + if (std.mem.eql(u8, word, "0")) return false; + return null; +} + +fn writeFlag(p: *Pardes, req: Req, id: usize, pane: *Pane, file: PaneFile) Reply { + const on = flagOf(req.data) orelse return Reply.fail(req.tag, E.INVAL); + const pf = &p.fs.panes[id]; + switch (file) { + .dirty => { + const f = fileOf(pane) orelse return Reply.fail(req.tag, E.INVAL); + f.saved_revision = if (on) f.revision -% 1 else f.revision; + }, + .mark => { + pf.nomark = !on; + if (on) panes.File.pushUndo(p, pane); + }, + .scroll => pf.noscroll = !on, + else => unreachable, + } return .{ .tag = req.tag, .written = @intCast(req.data.len) }; } @@ -475,14 +571,24 @@ pub fn appendErrors(p: *Pardes, id: usize, text: []const u8) ?usize { return text.len; } -/// Truncation empties a body; every other setattr just answers fresh attributes. +/// Truncation empties whatever the file holds: the body, the tag's editable +/// tail (acme's `cleartag`), a range. Every other setattr just answers fresh +/// attributes. pub fn truncate(p: *Pardes, id: usize, pane: *Pane, file: PaneFile) tree.Status { + const pf = &p.fs.panes[id]; switch (file) { .body, .data, .xdata => if (fileOf(pane) != null) { _ = spliceBody(p, id, pane, 0, bodyOf(pane).len, "") orelse return .err; - p.fs.panes[id].addr = .{}; + pf.addr = .{}; setDot(pane, .{}); }, + .tag => { + pane.tag_tail_len = 0; + pane.tag_init = true; + }, + .addr => pf.addr = .{}, + .limit => pf.limit = null, + .dot => if (fileOf(pane) != null) setDot(pane, .{}), else => {}, } return .ok; @@ -509,15 +615,19 @@ test "index lists serial kind dirty flag and name and stat reports its length" { const a = rd(p, index, 0, 4096); try testing.expectEqual(Status.ok, a.reply.status); var want: [64]u8 = undefined; - try testing.expectEqualStrings(try std.fmt.bufPrint(&want, "{d} text 0 /test.txt\n", .{pane.serial}), a.bytes); + const clean_row = try std.fmt.bufPrint(&want, "{d} text 0 /test.txt\n", .{pane.serial}); + try testing.expect(std.mem.indexOf(u8, a.bytes, clean_row) != null); + const at = std.mem.indexOf(u8, a.bytes, clean_row).?; const stat = call(p, .{ .tag = 1, .op = .getattr, .node = index }); try testing.expectEqual(@as(u64, a.bytes.len), stat.reply.attr.size); try testing.expectEqual(@as(u16, 0o444), stat.reply.attr.mode); pane.file.?.saved_revision = pane.file.?.revision -% 1; - try testing.expectEqualStrings(try std.fmt.bufPrint(&want, "{d} text 1 /test.txt\n", .{pane.serial}), rd(p, index, 0, 4096).bytes); - const mid = rd(p, index, 2, 4); - try testing.expectEqualStrings("text", mid.bytes); + var dirty_want: [64]u8 = undefined; + const dirty_row = try std.fmt.bufPrint(&dirty_want, "{d} text 1 /test.txt\n", .{pane.serial}); + try testing.expect(std.mem.indexOf(u8, rd(p, index, 0, 4096).bytes, dirty_row) != null); + const kind = at + std.mem.indexOfScalar(u8, clean_row, ' ').? + 1; + try testing.expectEqualStrings("text", rd(p, index, kind, 4).bytes); const serial = try th.newPane(p); const both = rd(p, index, 0, 4096); @@ -533,10 +643,11 @@ test "a terminal is listed as term with its directory as name" { const pane = p.panes[0].?; p.setCwd(0, "/work/dir"); var want: [64]u8 = undefined; - try testing.expectEqualStrings( - try std.fmt.bufPrint(&want, "{d} term 0 /work/dir\n", .{pane.serial}), + try testing.expect(std.mem.indexOf( + u8, rd(p, @intFromEnum(tree.TopFile.index), 0, 4096).bytes, - ); + try std.fmt.bufPrint(&want, "{d} term 0 /work/dir\n", .{pane.serial}), + ) != null); try testing.expectEqualStrings("/work/dir\n", rd(p, Node.of(pane.serial, .name), 0, 4096).bytes); try testing.expectEqual(E.PERM, wr(p, Node.of(pane.serial, .name), "/elsewhere\n").errno()); } @@ -566,6 +677,13 @@ test "body reads at any offset and writes append" { try testing.expectEqual(@as(u64, "one\ntwo\nthree\na".len), stat.reply.attr.size); try testing.expectEqual(@as(u16, 0o666), stat.reply.attr.mode); try testing.expect(stat.reply.attr.mtime >= p.fs.started); + + // The qid version is the pane's revision, so a stat sees an edit land. + try testing.expectEqual(p.panes[0].?.file.?.revision, stat.reply.attr.version); + _ = wr(p, body, "more\n"); + const later = call(p, .{ .tag = 7, .op = .getattr, .node = body }); + try testing.expect(later.reply.attr.version != stat.reply.attr.version); + try testing.expectEqual(@as(u32, 0), call(p, .{ .tag = 8, .op = .getattr, .node = Node.of(serial, .tag) }).reply.attr.version); } test "a body write to a terminal pane types at its shell" { @@ -653,18 +771,29 @@ test "sel reads the selection and writing sel replaces it" { const p = try withFile(gpa, "one\ntwo\n"); defer p.deinit(); const serial = serialOf(p); - const ctl_node = Node.of(serial, .ctl); + const addr_node = Node.of(serial, .addr); + const dot = Node.of(serial, .dot); const sel = Node.of(serial, .sel); - _ = wr(p, Node.of(serial, .addr), "#0,#3"); - try testing.expectEqual(Status.ok, wr(p, ctl_node, "dot=addr\n").reply.status); + // Copying addr onto dot is the whole of acme's `dot=addr`, and back again + // of `addr=dot`; each range file reads exactly what the other takes. + _ = wr(p, addr_node, "#0,#3"); + try testing.expectEqual(Status.ok, wr(p, dot, " 0 3 ").reply.status); + try testing.expectEqualStrings(" 0 3 ", rd(p, dot, 0, 100).bytes); + try testing.expectEqual(range_len, call(p, .{ .tag = 1, .op = .getattr, .node = dot }).reply.attr.size); try testing.expectEqualStrings("one", rd(p, sel, 0, 100).bytes); try testing.expectEqual(@as(u64, 3), call(p, .{ .tag = 1, .op = .getattr, .node = sel }).reply.attr.size); - _ = wr(p, ctl_node, "addr=dot\n"); + _ = wr(p, addr_node, "#0"); + _ = wr(p, addr_node, " 0 3 "); try testing.expectEqual(@as(u32, 0), p.fs.panes[0].addr.q0); try testing.expectEqual(@as(u32, 3), p.fs.panes[0].addr.q1); + // A truncation empties dot; an address expression addresses it. + _ = call(p, .{ .tag = 9, .op = .setattr, .node = dot, .truncate = true }); + try testing.expectEqualStrings("", rd(p, sel, 0, 100).bytes); + try testing.expectEqual(Status.ok, wr(p, dot, "#0,#3").reply.status); + try testing.expectEqual(Status.ok, wr(p, sel, "ONE").reply.status); try testing.expectEqualStrings("ONE\ntwo\n", p.panes[0].?.file.?.content); _ = wr(p, sel, "!"); @@ -672,6 +801,62 @@ test "sel reads the selection and writing sel replaces it" { try testing.expectEqual(@as(u64, 0), call(p, .{ .tag = 2, .op = .getattr, .node = sel }).reply.attr.size); } +test "the flag files read and write the state acme kept behind ctl verbs" { + const gpa = testing.allocator; + const p = try withFile(gpa, "one\ntwo\n"); + defer p.deinit(); + const serial = serialOf(p); + const pane = p.panes[0].?; + const pf = &p.fs.panes[0]; + const dirty = Node.of(serial, .dirty); + const mark = Node.of(serial, .mark); + const scroll = Node.of(serial, .scroll); + + for ([_]u64{ dirty, mark, scroll }) |node| { + try testing.expectEqual(@as(u64, 2), call(p, .{ .tag = 1, .op = .getattr, .node = node }).reply.attr.size); + for ([_][]const u8{ "", "yes", "2", "0 1", "true" }) |bad| + try testing.expectEqual(E.INVAL, wr(p, node, bad).errno()); + } + + try testing.expectEqualStrings("0\n", rd(p, dirty, 0, 8).bytes); + try testing.expectEqualStrings("1\n", rd(p, mark, 0, 8).bytes); + try testing.expectEqualStrings("1\n", rd(p, scroll, 0, 8).bytes); + + try testing.expectEqual(Status.ok, wr(p, dirty, "1\n").reply.status); + try testing.expect(dirtyOf(pane)); + try testing.expectEqualStrings("1\n", rd(p, dirty, 0, 8).bytes); + _ = wr(p, dirty, "0"); + try testing.expect(!dirtyOf(pane)); + + _ = wr(p, mark, "0"); + _ = wr(p, scroll, "0"); + try testing.expect(pf.nomark and pf.noscroll); + try testing.expectEqualStrings("0\n", rd(p, mark, 0, 8).bytes); + try testing.expectEqualStrings("0\n", rd(p, scroll, 0, 8).bytes); + _ = wr(p, mark, "1"); + _ = wr(p, scroll, "1"); + try testing.expect(!pf.nomark and !pf.noscroll); + + // A terminal has no file, so its dirty flag is readable but not writable. + const term = try th.withTerm(gpa); + defer term.deinit(); + try testing.expectEqualStrings("0\n", rd(term, Node.of(serialOf(term), .dirty), 0, 8).bytes); + try testing.expectEqual(E.INVAL, wr(term, Node.of(serialOf(term), .dirty), "1").errno()); +} + +test "truncating the tag clears its editable tail" { + const p = try withFile(testing.allocator, "x\n"); + defer p.deinit(); + const pane = p.panes[0].?; + const tag = Node.of(pane.serial, .tag); + _ = wr(p, tag, " Mine"); + try testing.expect(pane.tag_tail_len > 0); + const cleared = call(p, .{ .tag = 1, .op = .setattr, .node = tag, .truncate = true }); + try testing.expectEqual(Status.ok, cleared.reply.status); + try testing.expectEqual(@as(usize, 0), pane.tag_tail_len); + try testing.expect(std.mem.indexOf(u8, rd(p, tag, 0, 4096).bytes, " Mine") == null); +} + test "name reads the file name and writing it promotes a scratch without touching its body" { const gpa = testing.allocator; const p = try withFile(gpa, "opener\n"); diff --git a/src/ninep/pty.zig b/src/ninep/pty.zig index e6696b85..1b71a8d3 100644 --- a/src/ninep/pty.zig +++ b/src/ninep/pty.zig @@ -76,6 +76,9 @@ fn verb(p: *Pardes, id: usize, line: []const u8, apply: bool) bool { return true; } +/// Three right-aligned fields: cols, rows and whether the host holds the tty. +pub const status_len: u64 = 36; + pub fn readStatus(p: *Pardes, req: Req, id: usize, pane: *Pane) Reply { const out = p.fs.stage(p.gpa); out.print(p.gpa, "{d:>11} {d:>11} {d:>11} ", .{ @@ -146,7 +149,7 @@ test "a pane that is not a terminal has no pty/ at all" { var buf: [32]th.Dirent = undefined; const files = th.dirents(rdir(p, dir, 0).bytes, &buf); - try testing.expectEqual(@as(usize, 10), files.len); + try testing.expectEqual(@as(usize, 17), files.len); try testing.expect(th.nameAt(files, "pty") == null); try testing.expectEqual(E.NOENT, look_up(p, dir, "pty_ctl").errno()); @@ -167,7 +170,7 @@ test "a terminal pane's pty/ holds exactly ctl, status and data" { var buf: [32]th.Dirent = undefined; const files = th.dirents(rdir(p, dir, 0).bytes, &buf); - try testing.expectEqual(@as(usize, 11), files.len); + try testing.expectEqual(@as(usize, 18), files.len); try testing.expect(th.nameAt(files, "pty").?.dir); const inside = th.dirents(rdir(p, Node.of(serial, .pty), 0).bytes, &buf); @@ -247,7 +250,7 @@ test "every pty/ctl verb, and every refusal" { "cooked", "winsize 80 24\nbogus", // a good verb beside a bad one "bogus\nwinsize 80 24", - "look x", // a `ctl` verb; the two files share no vocabulary + "look x", // a pane command; pty/ctl shares none of that vocabulary "exec Del", }) |bad| { const a = wr(p, ctl, bad); diff --git a/src/ninep/screen.zig b/src/ninep/screen.zig index 5b68b34c..2684aa41 100644 --- a/src/ninep/screen.zig +++ b/src/ninep/screen.zig @@ -83,22 +83,33 @@ pub fn releaseSnapshot(p: *Pardes, req: Req) bool { return true; } -pub fn readListeners(p: *Pardes, req: Req) Reply { - var buf: [512]u8 = undefined; - var text = std.Io.Writer.fixed(&buf); +const listeners_cap = 512; + +fn listenersText(p: *Pardes, buf: []u8) []const u8 { + var text = std.Io.Writer.fixed(buf); if (p.fs.socket_path.len != 0) - text.print("unix!{s}\n", .{p.fs.socket_path}) catch return Reply.fail(req.tag, E.IO); + text.print("unix!{s}\n", .{p.fs.socket_path}) catch return text.buffered(); for ([_]?std.Io.net.IpAddress{ p.fs.tcp_address, p.fs.quic_address }, [_][]const u8{ "tcp", "quic" }) |maybe, transport| { const address = maybe orelse continue; switch (address) { .ip4 => |ip| text.print("{s}!{d}.{d}.{d}.{d}!{d}\n", .{ transport, ip.bytes[0], ip.bytes[1], ip.bytes[2], ip.bytes[3], ip.port }) catch - return Reply.fail(req.tag, E.IO), + return text.buffered(), .ip6 => |ip| text.print("{s}!{f}!{d}\n", .{ transport, std.Io.net.Ip6Address.Unresolved{ .bytes = ip.bytes, .interface_name = null }, ip.port }) catch - return Reply.fail(req.tag, E.IO), + return text.buffered(), } } + return text.buffered(); +} + +pub fn listenersLen(p: *Pardes) u64 { + var buf: [listeners_cap]u8 = undefined; + return listenersText(p, &buf).len; +} + +pub fn readListeners(p: *Pardes, req: Req) Reply { + var buf: [listeners_cap]u8 = undefined; const out = p.fs.stage(p.gpa); - out.appendSlice(p.gpa, text.buffered()) catch return Reply.fail(req.tag, E.NOMEM); + out.appendSlice(p.gpa, listenersText(p, &buf)) catch return Reply.fail(req.tag, E.NOMEM); return tree.stagedReply(p, req); } diff --git a/src/ninep/testing.zig b/src/ninep/testing.zig index ba26cb38..ad1d84e4 100644 --- a/src/ninep/testing.zig +++ b/src/ninep/testing.zig @@ -69,13 +69,30 @@ pub fn look_up(p: *Pardes, dir: u64, name: []const u8) Answer { return call(p, .{ .tag = 3, .op = .lookup, .node = dir, .data = name }); } -/// Opens /new once, as a client would, and returns the pane it made. +/// Creates a pane in /pane, as a client's mkdir does, and returns its serial. pub fn newPane(p: *Pardes) !u32 { - const new = @intFromEnum(tree.TopFile.new); - const opened = call(p, .{ .tag = 9, .op = .open, .node = new }); - if (opened.reply.status != .ok or opened.reply.handle == 0) return error.NoPane; - _ = call(p, .{ .tag = 9, .op = .release, .node = new, .handle = opened.reply.handle }); - return opened.reply.handle; + const made = mkdir(p, "scratch"); + if (made.reply.status != .ok) return error.NoPane; + const target = tree.Node.target(made.reply.attr.node) orelse return error.NoPane; + return switch (target) { + .pane => |t| t.serial, + .top => error.NoPane, + }; +} + +pub fn mkdir(p: *Pardes, name: []const u8) Answer { + return call(p, .{ + .tag = 9, + .op = .open, + .node = @intFromEnum(tree.TopFile.pane), + .data = name, + .create = true, + .perm = 0x8000_0000 | 0o755, + }); +} + +pub fn rmdir(p: *Pardes, node: u64) Answer { + return call(p, .{ .tag = 9, .op = .release, .node = node, .remove = true }); } pub fn withFile(gpa: std.mem.Allocator, text: []const u8) !*Pardes { diff --git a/src/ninep/tree.zig b/src/ninep/tree.zig index 56c3112d..46609649 100644 --- a/src/ninep/tree.zig +++ b/src/ninep/tree.zig @@ -4,8 +4,10 @@ //! extended here with the editor's reply payload; fs.zig keeps host access //! and mounts. //! -//! /README /index /ctl /new /log /screen /listeners -//! /pane//{name,body,tag,ctl,addr,data,xdata,sel,errors,event,pty/} +//! /README /index /status /look /exec /log /screen /listeners +//! /pane/ mkdir makes a pane, rmdir closes it +//! /pane//{name,body,tag,ctl,addr,dot,limit,data,xdata,sel, +//! dirty,mark,scroll,errors,event,look,exec,pty/} //! /os/... the host filesystem /src/... embedded sources (opt-in) const std = @import("std"); const cloud9 = @import("cloud9"); @@ -47,11 +49,16 @@ pub const Payload = union(enum) { pub const Reply = cloud9.fs.ReplyWith(Payload); +/// Tcreate opens a pane and Tremove closes one; nothing else in the tree is +/// created or destroyed by the protocol, and wstat stays a truncation. +pub const features: cloud9.fs.Features = .{ .create = true, .remove = true }; + pub fn changesPane(req: Req) bool { return switch (req.op) { .write, .setattr => true, - .open => req.node == @intFromEnum(TopFile.new), - .lookup, .getattr, .read, .release, .readdir => false, + .open => req.create, + .release => req.remove, + .lookup, .getattr, .read, .readdir => false, }; } @@ -63,8 +70,9 @@ pub const TopFile = enum(u4) { root = 1, README, index, - ctl, - new, + status, + look, + exec, log, screen, listeners, @@ -77,8 +85,8 @@ pub const TopFile = enum(u4) { pub fn mode(f: TopFile) u16 { return switch (f) { .root, .pane => 0o755, - .ctl => 0o666, - .README, .index, .new, .log, .screen, .listeners => 0o444, + .look, .exec => 0o666, + .README, .index, .status, .log, .screen, .listeners => 0o444, }; } @@ -89,18 +97,26 @@ pub const TopFile = enum(u4) { pub const root: u64 = @intFromEnum(TopFile.root); -pub const PaneFile = enum(u4) { +/// Declaration order is readdir order. +pub const PaneFile = enum(u5) { dir = 0, name, body, tag, ctl, addr, + dot, + limit, data, xdata, sel, + dirty, + mark, + scroll, errors, event, + look, + exec, pty, pty_ctl, pty_status, @@ -138,8 +154,8 @@ pub const PaneFile = enum(u4) { }; pub const Node = packed struct(u64) { - file: u4 = 0, - serial: u60 = 0, + file: u5 = 0, + serial: u59 = 0, pub fn of(serial: u32, file: PaneFile) u64 { std.debug.assert(serial != 0); @@ -240,8 +256,13 @@ pub fn stagedReply(p: *Pardes, req: Req) Reply { // ---- dispatch ---- pub fn handle(p: *Pardes, req: Req) Reply { - if (req.node == fs.os_root or req.node & fs.os_node != 0) return fs.osHandle(p, req); - if (req.node & sources.archive_node != 0) return sources.handle(p, req); + const host = req.node == fs.os_root or req.node & fs.os_node != 0; + const archive = req.node & sources.archive_node != 0; + // Only /pane is created in and removed from. The host tree and the + // embedded sources say so, rather than quietly doing nothing. + if ((host or archive) and (req.create or req.remove)) return Reply.fail(req.tag, E.PERM); + if (host) return fs.osHandle(p, req); + if (archive) return sources.handle(p, req); const target = Node.target(req.node) orelse return Reply.fail(req.tag, E.NOENT); if (req.op == .write or req.op == .setattr) p.fs.origin = switch (target) { .pane => |t| @as(u8, if (t.file == .body or t.file == .tag) 'E' else 'F'), @@ -280,6 +301,7 @@ fn attrOf(p: *Pardes, target: Target) ?Reply.Attr { .mode = t.file.mode(), .size = pane.fileSize(p, id, t.file), .mtime = pane.mtimeOf(p, pn), + .version = pane.versionOf(pn, t.file), }; }, } @@ -292,13 +314,14 @@ fn attrReply(p: *Pardes, tag: u64, target: Target) Reply { fn topSize(p: *Pardes, f: TopFile) u64 { return switch (f) { - .root, .pane, .new, .log, .screen, .listeners => 0, + // ponytail: /screen has no length until an open renders its frame. + .root, .pane, .screen => 0, .index => pane.indexLen(p), .README => fs.help.len, - .ctl => ctl: { - var buf: [ctl.root_text_cap]u8 = undefined; - break :ctl ctl.rootText(p, &buf).len; - }, + .status => ctl.statusLen(p), + .look, .exec => ctl.resultsLen(p), + .log => events.pending(&p.fs.log), + .listeners => screen.listenersLen(p), }; } @@ -366,7 +389,7 @@ fn readdir(p: *Pardes, req: Req, target: Target) Reply { switch (target) { .top => |f| switch (f) { .root => { - inline for (.{ TopFile.README, TopFile.index, TopFile.ctl, TopFile.new, TopFile.log, TopFile.screen, TopFile.listeners, TopFile.pane }) |t| { + inline for (.{ TopFile.README, TopFile.index, TopFile.status, TopFile.look, TopFile.exec, TopFile.log, TopFile.screen, TopFile.listeners, TopFile.pane }) |t| { if (skip > 0) skip -= 1 else stageDirent(out, p.gpa, @intFromEnum(t), t.dir(), t.fileName()); } if (skip > 0) skip -= 1 else stageDirent(out, p.gpa, fs.os_root, true, "os"); @@ -403,21 +426,27 @@ fn readdir(p: *Pardes, req: Req, target: Target) Reply { return .{ .tag = req.tag, .payload = .{ .staged = @intCast(out.items.len) } }; } -fn newPane(p: *Pardes) ?u32 { - const slot = p.freeSlot() orelse return null; +/// Tcreate in /pane opens a pane, the way mkdir opens a directory. The name +/// asked for is ignored: a pane is named by the serial the editor gives it, +/// which the reply carries back and /index lists last. +fn create(p: *Pardes, req: Req, target: Target) Reply { + switch (target) { + .top => |f| if (f != .pane) return Reply.fail(req.tag, E.PERM), + .pane => return Reply.fail(req.tag, E.PERM), + } + if (req.perm & cloud9.dmdir == 0) return Reply.fail(req.tag, E.PERM); + const slot = p.freeSlot() orelse return Reply.fail(req.tag, E.NFILE); p.newScratchBelow(p.active); - const pn = p.panes[slot] orelse return null; - return pn.serial; + const made = p.panes[slot] orelse return Reply.fail(req.tag, E.NFILE); + const attr = attrOf(p, .{ .pane = .{ .serial = made.serial, .file = .dir } }) orelse + return Reply.fail(req.tag, E.NFILE); + return .{ .tag = req.tag, .handle = 1, .attr = attr }; } fn open(p: *Pardes, req: Req, target: Target) Reply { + if (req.create) return create(p, req, target); switch (target) { .top => |f| switch (f) { - // The clone idiom: each open makes one empty pane; reads answer its serial. - .new => { - const serial = newPane(p) orelse return Reply.fail(req.tag, E.NFILE); - return .{ .tag = req.tag, .handle = serial }; - }, .screen => return screen.openSnapshot(p, req, true), .log => p.fs.log_readers +|= 1, else => {}, @@ -429,11 +458,7 @@ fn open(p: *Pardes, req: Req, target: Target) Reply { if (t.file.inPty() and !pn.isTerminal()) return Reply.fail(req.tag, E.NOENT); switch (t.file) { .body => if (pn.isTerminal()) return screen.openSnapshot(p, req, false), - .ctl => pf.limit = null, - .addr => { - pf.addr = .{}; - pf.limit = null; - }, + .addr => pf.addr = .{}, .event => { pf.readers +|= 1; p.fs.listeners +|= 1; @@ -446,7 +471,27 @@ fn open(p: *Pardes, req: Req, target: Target) Reply { return .{ .tag = req.tag, .handle = 1 }; } +/// Tremove closes a pane. Nothing else in the tree can be removed, and this +/// is also where an ORCLOSE open lands, so every node is checked here. +fn remove(p: *Pardes, req: Req) Reply { + const target = Node.target(req.node) orelse return Reply.fail(req.tag, E.NOENT); + const t = switch (target) { + .pane => |t| t, + .top => return Reply.fail(req.tag, E.PERM), + }; + if (t.file != .dir) return Reply.fail(req.tag, E.PERM); + const id = p.paneBySerial(t.serial) orelse return Reply.fail(req.tag, E.NOENT); + p.removePane(id) catch return Reply.fail(req.tag, E.IO); + return .{ .tag = req.tag }; +} + fn release(p: *Pardes, req: Req) Reply { + // The handle's bookkeeping runs whether or not the removal is allowed. + const done = releaseHandle(p, req); + return if (req.remove) remove(p, req) else done; +} + +fn releaseHandle(p: *Pardes, req: Req) Reply { if (screen.releaseSnapshot(p, req)) return .{ .tag = req.tag }; const target = Node.target(req.node) orelse return .{ .tag = req.tag }; switch (target) { @@ -502,12 +547,8 @@ fn read(p: *Pardes, req: Req, target: Target) Reply { } break :index stagedReply(p, req); }, - .ctl => ctl.readRoot(p, req), - .new => new: { - if (req.handle == 0) break :new Reply.fail(req.tag, E.INVAL); - p.fs.stage(p.gpa).print(p.gpa, "{d}\n", .{req.handle}) catch break :new Reply.fail(req.tag, E.NOMEM); - break :new stagedReply(p, req); - }, + .status => ctl.readStatus(p, req), + .look, .exec => ctl.readResults(p, req), .log => events.readQueue(p, req, &p.fs.log), .screen => screen.readSnapshot(p, req, null), .listeners => screen.readListeners(p, req), @@ -525,7 +566,7 @@ fn read(p: *Pardes, req: Req, target: Target) Reply { fn write(p: *Pardes, req: Req, target: Target) Reply { switch (target) { .top => |f| return switch (f) { - .ctl => ctl.writeRoot(p, req), + .look, .exec => ctl.command(p, req, null, f == .exec), else => Reply.fail(req.tag, E.PERM), }, .pane => |t| { @@ -587,8 +628,8 @@ test "filesystem inspection preserves pending and displayed Look hover" { const preview = p.look_hover_preview; const requests = [_]Req{ .{ .tag = 1, .op = .lookup, .node = root, .data = "screen" }, - .{ .tag = 1, .op = .lookup, .node = root, .data = "new" }, - .{ .tag = 1, .op = .getattr, .node = @intFromEnum(TopFile.new) }, + .{ .tag = 1, .op = .lookup, .node = root, .data = "status" }, + .{ .tag = 1, .op = .getattr, .node = @intFromEnum(TopFile.pane) }, .{ .tag = 2, .op = .getattr, .node = body }, .{ .tag = 3, .op = .open, .node = body }, .{ .tag = 4, .op = .read, .node = body, .size = 5 }, @@ -614,7 +655,7 @@ test "filesystem inspection preserves pending and displayed Look hover" { test "filesystem pane creation and truncation cancel Look hover" { const requests = [_]Req{ - .{ .tag = 2, .op = .open, .node = @intFromEnum(TopFile.new) }, + .{ .tag = 2, .op = .open, .node = @intFromEnum(TopFile.pane), .data = "x", .create = true, .perm = cloud9.dmdir | 0o755 }, .{ .tag = 3, .op = .setattr, .node = 0, .truncate = true }, }; for (requests) |request| { @@ -644,13 +685,13 @@ test "readdir lists the root and a pane directory without creating anything" { var top_bytes: [4096]u8 = undefined; @memcpy(top_bytes[0..top_reply.bytes.len], top_reply.bytes); const top = th.dirents(top_bytes[0..top_reply.bytes.len], &buf); - try testing.expect(top.len >= 9); - for ([_][]const u8{ "README", "index", "ctl", "new", "log", "screen", "listeners", "pane", "os" }, 0..) |name, i| { + try testing.expect(top.len >= 10); + for ([_][]const u8{ "README", "index", "status", "look", "exec", "log", "screen", "listeners", "pane", "os" }, 0..) |name, i| { try testing.expectEqualStrings(name, top[i].name); - try testing.expectEqual(i >= 7, top[i].dir); + try testing.expectEqual(i >= 8, top[i].dir); } - try testing.expectEqual(@intFromEnum(TopFile.pane), top[7].node); - try testing.expectEqual(fs.os_root, top[8].node); + try testing.expectEqual(@intFromEnum(TopFile.pane), top[8].node); + try testing.expectEqual(fs.os_root, top[9].node); var idbuf: [16]u8 = undefined; try testing.expect(th.nameAt(top, try std.fmt.bufPrint(&idbuf, "{d}", .{serial})) == null); try testing.expect(th.nameAt(top, "self") == null); @@ -674,13 +715,18 @@ test "readdir lists the root and a pane directory without creating anything" { } const panes_dir = rdir(p, @intFromEnum(TopFile.pane), 0); const listed = th.dirents(panes_dir.bytes, &buf); - try testing.expectEqual(@as(usize, 1), listed.len); - try testing.expectEqual(Node.of(serial, .dir), listed[0].node); + var idname: [16]u8 = undefined; + const own = th.nameAt(listed, try std.fmt.bufPrint(&idname, "{d}", .{serial})).?; + try testing.expectEqual(Node.of(serial, .dir), own.node); + try testing.expect(own.dir); const dir = rdir(p, Node.of(serial, .dir), 0); const files = th.dirents(dir.bytes, &buf); - try testing.expectEqual(@as(usize, 10), files.len); - for ([_][]const u8{ "name", "body", "tag", "ctl", "addr", "data", "xdata", "sel", "errors", "event" }, 0..) |name, i| + try testing.expectEqual(@as(usize, 17), files.len); + for ([_][]const u8{ + "name", "body", "tag", "ctl", "addr", "dot", "limit", "data", "xdata", + "sel", "dirty", "mark", "scroll", "errors", "event", "look", "exec", + }, 0..) |name, i| try testing.expectEqualStrings(name, files[i].name); try testing.expect(th.nameAt(files, ".") == null); try testing.expect(th.nameAt(files, "rdsel") == null); @@ -703,8 +749,10 @@ test "lookup resolves top files, pane serials and pane files" { const serial = serialOf(p); try testing.expectEqual(@as(u64, @intFromEnum(TopFile.index)), look_up(p, root, "index").reply.attr.node); - try testing.expect(!look_up(p, root, "new").reply.attr.dir); - try testing.expectEqual(@as(u16, 0o444), look_up(p, root, "new").reply.attr.mode); + try testing.expect(!look_up(p, root, "status").reply.attr.dir); + try testing.expectEqual(@as(u16, 0o444), look_up(p, root, "status").reply.attr.mode); + try testing.expectEqual(@as(u16, 0o666), look_up(p, root, "look").reply.attr.mode); + try testing.expectEqual(E.NOENT, look_up(p, root, "new").errno()); try testing.expect(look_up(p, root, "pane").reply.attr.dir); try testing.expect(look_up(p, root, "os").reply.attr.dir); try testing.expectEqual(E.NOENT, look_up(p, root, "nosuchthing").errno()); @@ -732,38 +780,46 @@ test "lookup resolves top files, pane serials and pane files" { try testing.expectEqual(E.NOTDIR, look_up(p, Node.of(serial, .body), "x").errno()); } -test "each open of new creates exactly one pane whose serial the read answers" { +test "creating in the pane directory opens a pane and removing one closes it" { const gpa = testing.allocator; const p = try withFile(gpa, "first\n"); defer p.deinit(); const before = p.next_serial; - const new = @intFromEnum(TopFile.new); + const panes_dir = @intFromEnum(TopFile.pane); - try testing.expectEqual(Status.ok, look_up(p, root, "new").reply.status); - try testing.expectEqual(Status.ok, call(p, .{ .tag = 1, .op = .getattr, .node = new }).reply.status); + // Browsing /pane creates nothing; only a create does. + try testing.expectEqual(Status.ok, rdir(p, panes_dir, 0).reply.status); try testing.expectEqual(before, p.next_serial); - const opened = call(p, .{ .tag = 1, .op = .open, .node = new }); - try testing.expectEqual(Status.ok, opened.reply.status); + const made = th.mkdir(p, "scratch"); + try testing.expectEqual(Status.ok, made.reply.status); try testing.expectEqual(before + 1, p.next_serial); - try testing.expectEqual(before + 1, opened.reply.handle); - try testing.expectEqual(@as(u64, 0), opened.reply.attr.node); + const serial = before + 1; + try testing.expectEqual(Node.of(serial, .dir), made.reply.attr.node); + try testing.expect(made.reply.attr.dir); var expected: [16]u8 = undefined; - const line = try std.fmt.bufPrint(&expected, "{d}\n", .{opened.reply.handle}); - try testing.expectEqualStrings(line, call(p, .{ .tag = 2, .op = .read, .node = new, .handle = opened.reply.handle, .size = 64 }).bytes); - try testing.expectEqualStrings(line[1..], call(p, .{ .tag = 2, .op = .read, .node = new, .handle = opened.reply.handle, .off = 1, .size = 64 }).bytes); - try testing.expectEqualStrings("", call(p, .{ .tag = 2, .op = .read, .node = new, .handle = opened.reply.handle, .off = line.len, .size = 64 }).bytes); - try testing.expectEqual(before + 1, p.next_serial); - _ = call(p, .{ .tag = 3, .op = .release, .node = new, .handle = opened.reply.handle }); + try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}", .{serial}), made.reply.attr.name); - const id = p.paneBySerial(opened.reply.handle).?; + const id = p.paneBySerial(serial).?; try testing.expectEqualStrings("", p.panes[id].?.file.?.content); - _ = wr(p, Node.of(opened.reply.handle, .body), "hi"); - const second = call(p, .{ .tag = 4, .op = .open, .node = new }); + _ = wr(p, Node.of(serial, .body), "hi"); + const second = th.mkdir(p, "another"); try testing.expectEqual(Status.ok, second.reply.status); - try testing.expect(second.reply.handle != opened.reply.handle); + try testing.expect(second.reply.attr.node != made.reply.attr.node); try testing.expectEqualStrings("hi", p.panes[id].?.file.?.content); - try testing.expectEqual(E.INVAL, call(p, .{ .tag = 5, .op = .read, .node = new, .size = 64 }).errno()); + + // A plain file, and a create anywhere else, are refused. + try testing.expectEqual(E.PERM, call(p, .{ .tag = 1, .op = .open, .node = panes_dir, .data = "f", .create = true, .perm = 0o666 }).errno()); + try testing.expectEqual(E.PERM, call(p, .{ .tag = 1, .op = .open, .node = root, .data = "d", .create = true, .perm = cloud9.dmdir | 0o755 }).errno()); + try testing.expectEqual(E.PERM, call(p, .{ .tag = 1, .op = .open, .node = Node.of(serial, .dir), .data = "d", .create = true, .perm = cloud9.dmdir | 0o755 }).errno()); + + // Tremove closes the pane it names, and nothing else in the tree. + try testing.expectEqual(E.PERM, th.rmdir(p, Node.of(serial, .body)).errno()); + try testing.expectEqual(E.PERM, th.rmdir(p, @intFromEnum(TopFile.index)).errno()); + try testing.expect(p.paneBySerial(serial) != null); + try testing.expectEqual(Status.ok, th.rmdir(p, Node.of(serial, .dir)).reply.status); + try testing.expect(p.paneBySerial(serial) == null); + try testing.expectEqual(E.NOENT, th.rmdir(p, Node.of(serial, .dir)).errno()); } test "directories walk to their parents" { @@ -791,14 +847,15 @@ test "editor paths resolve to the same nodes the wire serves" { try testing.expectEqual(root, resolveSelf(p, "").?); try testing.expectEqual(root, resolveSelf(p, "/./pane/../").?); try testing.expectEqual(@intFromEnum(TopFile.index), resolveSelf(p, "index").?); - try testing.expectEqual(@intFromEnum(TopFile.new), resolveSelf(p, "new").?); + try testing.expectEqual(@intFromEnum(TopFile.status), resolveSelf(p, "status").?); + try testing.expect(resolveSelf(p, "new") == null); try testing.expectEqual(@intFromEnum(TopFile.pane), resolveSelf(p, "pane").?); try testing.expectEqual(Node.of(serial, .dir), resolveSelf(p, try std.fmt.bufPrint(&path, "pane/{d}", .{serial})).?); try testing.expectEqual(Node.of(serial, .sel), resolveSelf(p, try std.fmt.bufPrint(&path, "pane/{d}/sel", .{serial})).?); try testing.expect(resolveSelf(p, try std.fmt.bufPrint(&path, "pane/{d}/pty/ctl", .{serial})) == null); try testing.expect(resolveSelf(p, try std.fmt.bufPrint(&path, "pane/{d}/rdsel", .{serial})) == null); try testing.expect(resolveSelf(p, "self/index") == null); - try testing.expect(resolveSelf(p, "new/ctl") == null); + try testing.expect(resolveSelf(p, "status/ctl") == null); try testing.expect(resolveSelf(p, "cons") == null); try testing.expect(resolveSelf(p, "pane/0") == null); } diff --git a/src/panes.zig b/src/panes.zig index edd7038f..9a6802d0 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -6273,6 +6273,13 @@ pub const Terminal = struct { state.vt.screens.active.scroll(.{ .delta_row = delta }); } + /// Is the viewport already showing the last row of output? + pub fn atBottom(pane: *const Pane) bool { + if (comptime !enabled) return true; + const sb = scrollbar(pane); + return sb.offset + sb.len >= sb.total; + } + /// Snap the viewport back onto live output. pub fn followOutput(pane: *Pane) void { if (comptime !enabled) return; @@ -6559,10 +6566,14 @@ pub const Terminal = struct { const has_positions = pane.ovl != null or pane.cur_pinned or pane.vsel.active or pane.msel.active or pane.nsel > 0 or pane.append_at != null or pane.look_at != null or pane.ed_undo_len > 0 or pane.ed_redo_len > 0 or pointerRowCount(pane) > 0; + // Sticky bottom, as every other terminal does it: output drags the + // viewport down only when the viewport was already on the last row, so + // a reader scrolled back into the scrollback stays where they scrolled. + const at_bottom = atBottom(pane); if (has_positions) ingestWithPositions(pane, bytes) else ingest(pane, bytes); p.shell_rows.markStale(pane); const body_mode = if (pane.tag_edit) pane.tag_mode else pane.mode; - if (body_mode == .tty) followOutput(pane); + if (body_mode == .tty and at_bottom) followOutput(pane); } const RowPin = struct { pin: ?*ghostty_vt.Pin = null, offset: i32 = 0 }; @@ -6890,6 +6901,7 @@ pub const Terminal = struct { }; pane.mode = .tty; + followOutput(pane); // entering raw mode is a request for the live shell pane.msel.active = false; pane.vsel.active = false; pane.nsel = 0; diff --git a/src/pardes.zig b/src/pardes.zig index ed71102e..c66688f5 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -295,6 +295,12 @@ const pre_collapse_pdf_pane_tail = " Tty Del PdfSections PdfTint"; const pre_collapse_terminal_pane_tail = " Save Tty Del Togglettymode Filter"; const pre_tty_first_terminal_pane_tail = " Save Tty Del Togglettymode Filter Collapse"; const pre_mode_terminal_pane_tail = " Tty Save Del Togglettymode Filter Collapse"; +// ...and the defaults from before the closing word moved to the end of every +// tagline, where a click cannot land on it by overshooting the one before. +const pre_close_last_pane_tail = " Tty Collapse Del"; +const pre_close_last_file_pane_tail = " Save Tty Del Collapse"; +const pre_close_last_pdf_pane_tail = " Tty Del PdfSections PdfTint Collapse"; +const pre_close_last_terminal_pane_tail = " Tty Save Del Mode Filter Collapse"; const Builtin = builtins.registry.Builtin(); @@ -1078,7 +1084,7 @@ test "Collapse builtin keeps content and restores the pane from its default tag" const height = p.rects[0].h; const revision = pane.file.?.revision; for ([_][]const u8{ pane_tail, file_pane_tail, pdf_pane_tail, terminal_pane_tail }) |tail| - try std.testing.expect(std.mem.endsWith(u8, tail, " Collapse")); + try std.testing.expect(std.mem.endsWith(u8, tail, " Collapse Del")); try std.testing.expect(p.executeBuiltinLine(0, "Collapse")); p.sync(); @@ -1115,6 +1121,8 @@ test "LocationsConfig command reports partial updates and survives restore" { try std.testing.expectEqual(expected, p.locations_config); try std.testing.expect(p.executeBuiltinLine(0, "LocationsConfig context:2 unknown:on")); try std.testing.expectEqual(expected, p.locations_config); + // Setting it is silent; asking bare is what opens the window. + try std.testing.expect(p.executeBuiltinLine(0, "LocationsConfig")); var reports: usize = 0; for (p.panes) |slot| { const pane = slot orelse continue; @@ -1409,7 +1417,7 @@ test "legacy default tag tails upgrade while custom tails remain owned" { }); p.restoreTail(file, file_old); try std.testing.expect(!file.tag_init); - try std.testing.expectEqualStrings(" Save Tty Del Collapse", Pardes.curTail(file)); + try std.testing.expectEqualStrings(" Save Tty Collapse Del", Pardes.curTail(file)); const file_custom = try std.fmt.allocPrint(p.scratch.allocator(), "{s} Save Mine Del", .{ try p.tagPrefix(file), @@ -1430,7 +1438,7 @@ test "legacy default tag tails upgrade while custom tails remain owned" { try std.testing.expectEqualStrings(" New Del", Pardes.curTail(file)); const image_doc = try panes.Image.create(p, 1, "/tmp/legacy image.ppm", &.{}); - try std.testing.expectEqualStrings(" Tty Del Collapse", Pardes.curTail(image_doc)); + try std.testing.expectEqualStrings(" Tty Collapse Del", Pardes.curTail(image_doc)); p.restoreDumpTail(image_doc, .{ .kind = .image, .tag = "img /tmp/legacy image.ppm Keep Del", @@ -1576,7 +1584,7 @@ test "pane defaults keep creation of scratch panes in column tags" { var words = std.mem.tokenizeScalar(u8, tag, ' '); while (words.next()) |word| try std.testing.expect(!std.mem.eql(u8, word, "New")); } - try std.testing.expectEqualStrings("New Tty Find Grep Joincol", p.columnTag(0)); + try std.testing.expectEqualStrings("New Tty Find Grep Joincol Delcol", p.columnTag(0)); const terminal = p.panes[0].?; p.restoreTailAt(terminal, pre_column_terminal_pane_tail, "", .terminal); try std.testing.expect(!terminal.tag_init); @@ -2441,13 +2449,13 @@ test "Save reaches every tagline with text behind it and no other" { }); p.restoreTail(out, scratch_dumped); try std.testing.expect(!out.tag_init); - try std.testing.expectEqualStrings(" Save Tty Del Collapse", Pardes.curTail(out)); + try std.testing.expectEqualStrings(" Save Tty Collapse Del", Pardes.curTail(out)); // An image's bytes on disk already are what they are: nothing of the // pane's own is unwritten, so the word is absent and inert. const img_id = p.freeSlot().?; const img = try panes.Image.create(p, img_id, "/tmp/pardes-tag.ppm", &.{}); - try std.testing.expectEqualStrings(" Tty Del Collapse", Pardes.curTail(img)); + try std.testing.expectEqualStrings(" Tty Collapse Del", Pardes.curTail(img)); try std.testing.expect(p.executeBuiltinLine(img_id, "Save")); try std.testing.expect(img.prompt != .save); var buf: [256]u8 = undefined; @@ -5818,8 +5826,42 @@ test "repeated non-dyadic column splits preserve every unrelated boundary" { pub const Rect = layout.Rect; +/// The session layouts `init` can put on screen. One name each, so choosing +/// between them reads as a choice instead of a chain of ifs over four options. +pub const Boot = enum { + /// the document named on the command line, or the pane explaining why not + document, + /// a Look that found nothing: reported, not opened + missing, + /// the firmware's boot buffer, the only pane a board has + embedded, + /// the bare tty startup: one shell in raw tty mode, with an empty text + /// pane under it so the editor half is there before you want it + tty, + /// that raw shell by itself, which is all a core booted for a test wants + tty_shell, + /// acme's boot: two columns, the left one split in two + classic, + /// one greeted shell + shell, + + pub fn of(opts: Options) Boot { + if (opts.boot) |named| return named; + if (opts.file != null) return .document; + if (opts.missing != null) return .missing; + if (comptime platform == .esp32p4) return .embedded; + if (opts.tty_only) return .tty_shell; + // ponytail: 1 and 3 are the only shell counts anyone asked for + return if (opts.shells >= 3) .classic else .shell; + } +}; + pub const Options = struct { tty_only: bool = false, + /// The layout to boot, when a host means one outright rather than leaving + /// it to be read off the options below. `--tty` names `.tty`; a core + /// booted for a test names nothing and gets `.tty_shell`. + boot: ?Boot = null, /// initial shell panes: 1 (default) or 3 for the classic two-column boot. /// A `file` outranks this — see there. shells: u8 = 1, @@ -6035,6 +6077,11 @@ pub const Pardes = struct { pipe_wait: ?PendingPipe = null, fs: filesystem.Namespace = .{}, + boot: Boot = .shell, + /// Builtins announce themselves on the message row. Off while startup + /// configuration is applied: those lines are nobody clicking, and should + /// not leave the row holding the name of the last one. + announce: bool = true, // Reject overflow: evicting an older effect would reorder a byte stream. effects: [limits.effect_cap]Effect = undefined, @@ -6114,7 +6161,10 @@ pub const Pardes = struct { for (opts.mounts) |mount| try p.fs.mount(gpa, mount.name, mount.dial); p.opts.mounts = &.{}; p.opts.ninep_identity = .{}; - if (opts.file) |path| { + p.boot = Boot.of(opts); + switch (p.boot) { + .document => { + const path = opts.file.?; const opened = initial_doc: { if (comptime pdf_enabled) if (look.isPdfPath(path)) break :initial_doc panes.Pdf.openPane(p, 0, path, opts.file_line); @@ -6137,10 +6187,10 @@ pub const Pardes = struct { errdefer gpa.free(content); _ = try panes.Output.open(p, 0, std.fs.path.dirname(path) orelse "/", .errors, "", content); } - p.ncol = 1; - p.col_n[0] = 1; - p.col_panes[0][0] = 0; - } else if (opts.missing) |missing| { + p.oneColumn(); + }, + .missing => { + const missing = opts.missing.?; const content = try std.fmt.allocPrint( gpa, "file or directory not found\n\n\t{s}\n", @@ -6148,24 +6198,26 @@ pub const Pardes = struct { ); errdefer gpa.free(content); _ = try panes.Output.open(p, 0, missing.dir, .errors, "", content); - p.ncol = 1; - p.col_n[0] = 1; - p.col_panes[0][0] = 0; - } else if (comptime platform == .esp32p4) { + p.oneColumn(); + }, + .embedded => { const content = try p.gpa.dupe(u8, boot_buffer); errdefer p.gpa.free(content); _ = try panes.Output.open(p, 0, "", .{ .cmd = .New }, "", content); - p.ncol = 1; - p.col_n[0] = 1; - p.col_panes[0][0] = 0; - } else if (opts.tty_only) { + p.oneColumn(); + }, + .tty, .tty_shell => { _ = try p.newShell(0, ""); p.panes[0].?.mode = .tty; - p.ncol = 1; - p.col_n[0] = 1; - p.col_panes[0][0] = 0; - } else if (opts.shells >= 3) { - // classic layout: two columns, the left one split in two. + p.oneColumn(); + // A bare tty is still an editor: it opens with somewhere to put + // text under the shell. The shell keeps the keyboard. + if (p.boot == .tty) { + p.newScratchBelow(0); + p.active = 0; + } + }, + .classic => { _ = try p.newShell(0, ""); _ = try p.newShell(1, ""); _ = try p.newShell(2, ""); @@ -6176,13 +6228,12 @@ pub const Pardes = struct { p.col_panes[0][1] = 1; p.col_n[1] = 1; p.col_panes[1][0] = 2; - } else { - // ponytail: 1 and 3 are the only boot layouts; anything else acts as 1 + }, + .shell => { _ = try p.newShell(0, ""); p.panes[0].?.greet = true; - p.ncol = 1; - p.col_n[0] = 1; - p.col_panes[0][0] = 0; + p.oneColumn(); + }, } p.sync(); p.applyStartupConfig(); @@ -6195,6 +6246,13 @@ pub const Pardes = struct { return p; } + /// The layout every single-pane boot starts from. + fn oneColumn(p: *Pardes) void { + p.ncol = 1; + p.col_n[0] = 1; + p.col_panes[0][0] = 0; + } + pub fn deinit(p: *Pardes) void { p.cancelLookHover(); for (0..MAX_PANES) |id| p.dropPendingWrite(id); @@ -6268,7 +6326,7 @@ pub const Pardes = struct { } pub fn columnTag(p: *const Pardes, c: usize) []const u8 { - return p.col_tags[c].slice("New Tty Find Grep Joincol"); + return p.col_tags[c].slice("New Tty Find Grep Joincol Delcol"); } fn headerText(p: *Pardes) []const u8 { @@ -6413,6 +6471,17 @@ pub const Pardes = struct { return np; } + /// The empty pane that stands in for one that closed, keeping its column + /// alive and its directory. Unlike `newScratch` it inherits nothing: the + /// pane it replaces is on its way out. + fn newScratchIn(p: *Pardes, free: usize, dir: []const u8) !*Pane { + const content = try p.gpa.dupe(u8, ""); + errdefer p.gpa.free(content); + const np = try panes.Output.open(p, free, dir, .{ .cmd = .New }, "", content); + np.cur_pinned = true; + return np; + } + /// New: a scratch below the calling pane, in its column. pub fn newScratchBelow(p: *Pardes, from_id: usize) void { const free = p.freeSlot() orelse return; @@ -8237,8 +8306,23 @@ pub const Pardes = struct { p.ctrl_w_pending = false; if (key.ctrl and !key.alt and key.cp == p.opts.tty_toggle) return p.toggleTty(p.active); + // Shift-Escape is the unconditional way out, even mid-application; + // bare Escape only leaves at a shell prompt. + if (hit(key, config.tty_toggle_alt)) + return p.runBuiltin(.Last, p.active, "", null); if (key.cp == Key.escape and !key.ctrl and !key.alt and !key.shift and p.takesCommandLine(p.active)) return p.runBuiltin(.Last, p.active, "", null); + panes.Terminal.followOutput(pane); // typing snaps back to live output + // Paste stays the window's, the one exception to forwarding a raw + // tty's keys: Ctrl-V types the register at the program and + // Ctrl-Shift-V asks the desktop for its clipboard first. Forwarded, + // they reach an application that reads the clipboard on its own + // account instead — a coding agent goes there hunting for an image. + // A host that folds Shift into the letter says the same thing. + if (key.ctrl and !key.alt and (key.cp == 'v' or key.cp == 'V')) { + if (key.shift or key.cp == 'V') return p.clipRequest(p.active, .after); + return p.typeToTty(p.active, pane, p.yank orelse return); + } return panes.Terminal.forwardKey(p, p.active, key); } if (p.leader_on) return p.leaderKey(key); @@ -12499,6 +12583,8 @@ pub const Pardes = struct { } fn applyStartupConfig(p: *Pardes) void { + p.announce = false; + defer p.announce = true; var lines = std.mem.splitScalar(u8, p.opts.startup_config orelse return, '\n'); while (lines.next()) |line| _ = p.executeBuiltinLine(p.active, line); } @@ -12506,6 +12592,11 @@ pub const Pardes = struct { fn runBuiltin(p: *Pardes, b: Builtin, id: usize, txt: []const u8, arg: ?[]const u8) void { if (!p.multiOnce()) return; // a builtin is per-keystroke, never per-cursor const pane = p.panes[id] orelse return; + // A builtin says its own name before it runs, so a tagline click is + // legible even when what it did is invisible. Whatever the builtin + // then says for itself replaces the announcement. + if (p.announce and p.settings.verbose and builtins.registry.announces(b)) + p.setMessage(id, @tagName(b)); const c: builtins.Ctx = .{ .p = p, .pane = pane, .id = id, .txt = txt, .arg = arg }; builtins.registry.dispatch(b, c); } @@ -12887,11 +12978,13 @@ pub const Pardes = struct { const rest = saved_tag[pfx.len..]; const said = std.mem.trimStart(u8, rest, " "); const defaults: []const []const u8 = switch (class) { - .generic => &.{ pdf_pane_tail, pane_tail, pre_collapse_pdf_pane_tail, pre_collapse_pane_tail, pre_column_pdf_pane_tail, pre_column_pane_tail, prev_pane_tail, legacy_pane_tail }, - .file => &.{ context_pane_tail, file_pane_tail, pre_collapse_file_pane_tail, pre_column_file_pane_tail, prev_file_pane_tail, legacy_file_pane_tail }, + .generic => &.{ pdf_pane_tail, pane_tail, pre_close_last_pdf_pane_tail, pre_close_last_pane_tail, pre_collapse_pdf_pane_tail, pre_collapse_pane_tail, pre_column_pdf_pane_tail, pre_column_pane_tail, prev_pane_tail, legacy_pane_tail }, + .file => &.{ context_pane_tail, file_pane_tail, pre_close_last_file_pane_tail, pre_collapse_file_pane_tail, pre_column_file_pane_tail, prev_file_pane_tail, legacy_file_pane_tail }, .output => &.{ locations_pane_tail, file_pane_tail, + pre_close_last_file_pane_tail, + pre_close_last_pane_tail, prev_file_pane_tail, legacy_file_pane_tail, pane_tail, @@ -12902,7 +12995,7 @@ pub const Pardes = struct { pre_collapse_file_pane_tail, pre_collapse_pane_tail, }, - .terminal => &.{ terminal_pane_tail, pre_mode_terminal_pane_tail, pre_tty_first_terminal_pane_tail, pre_collapse_terminal_pane_tail, pre_column_terminal_pane_tail, pre_tty_terminal_pane_tail, prev_terminal_pane_tail, legacy_terminal_pane_tail, pane_tail, pre_collapse_pane_tail, pre_column_pane_tail, prev_pane_tail, legacy_pane_tail }, + .terminal => &.{ terminal_pane_tail, pre_close_last_terminal_pane_tail, pre_close_last_pane_tail, pre_mode_terminal_pane_tail, pre_tty_first_terminal_pane_tail, pre_collapse_terminal_pane_tail, pre_column_terminal_pane_tail, pre_tty_terminal_pane_tail, prev_terminal_pane_tail, legacy_terminal_pane_tail, pane_tail, pre_collapse_pane_tail, pre_column_pane_tail, prev_pane_tail, legacy_pane_tail }, }; for (defaults) |default| if (std.mem.eql(u8, said, std.mem.trimStart(u8, default, " "))) return; @@ -12912,11 +13005,34 @@ pub const Pardes = struct { pub fn removePane(p: *Pardes, id: usize) !void { const pane = p.panes[id] orelse return; + // A column outlives its panes. Closing the last one leaves an empty + // pane standing in its place and in its directory; only Delcol ever + // takes a column away. + const place = layout.findPane(p, id); + const last_in_column = if (place) |f| p.col_n[f.col] == 1 else false; + var dir_buf: [limits.host_path_cap]u8 = undefined; + var dir: []const u8 = ""; + if (last_in_column) { + const had = paneDir(pane); + const n = @min(had.len, dir_buf.len); + @memcpy(dir_buf[0..n], had[0..n]); + dir = dir_buf[0..n]; + } + // Before anything is torn down, so a failure here changes nothing. try p.deinitPane(pane); + // ...and after it, so the stand-in inherits none of the closing pane. + const heir: ?usize = heir: { + if (!last_in_column) break :heir null; + const f = place.?; + const free = p.freeSlot() orelse break :heir null; + _ = p.newScratchIn(free, dir) catch break :heir null; + layout.insert(p, f.col, f.idx + 1, free); + break :heir free; + }; layout.absorbVWeight(p, id); layout.removePane(p, id); p.panes[id] = null; - if (p.active == id) p.active = p.prevFocus(id) orelse { + if (p.active == id) p.active = heir orelse p.prevFocus(id) orelse { p.quit = true; p.emit(.quit); return; @@ -14408,6 +14524,75 @@ test "Esc back into a tty leaves its view at the prompt" { try std.testing.expectEqual(live, sp.terminal.?.vt.screens.active.pages.scrollbar().offset); } +test "the bare tty startup opens a text pane under the shell, unfocused" { + if (platform == .web) return; + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .boot = .tty }); + defer p.deinit(); + try std.testing.expectEqual(Boot.tty, p.boot); + + // One column, shell on top in raw mode, an empty text pane under it. + try std.testing.expectEqual(@as(usize, 1), p.ncol); + try std.testing.expectEqual(@as(usize, 2), p.col_n[0]); + const shell = p.panes[p.col_panes[0][0]].?; + const scratch = p.panes[p.col_panes[0][1]].?; + try std.testing.expect(shell.isTerminal()); + try std.testing.expectEqual(Pane.Mode.tty, shell.mode); + try std.testing.expect(!scratch.isTerminal()); + try std.testing.expectEqualStrings("", scratch.file.?.content); + + // ...and the shell keeps the keyboard. + try std.testing.expectEqual(p.col_panes[0][0], p.active); + + // Unnamed, it is the bare shell every test asks for. + const plain = try Pardes.init(std.testing.allocator, .{ .tty_only = true }); + defer plain.deinit(); + try std.testing.expectEqual(Boot.tty_shell, plain.boot); + try std.testing.expectEqual(@as(usize, 1), plain.col_n[0]); +} + +test "tty output follows only from the bottom" { + if (platform == .web) return; + const p = try Pardes.init(std.testing.allocator, .{ .cols = 80, .rows = 24, .file = "mise.toml" }); + defer p.deinit(); + p.update(.{ .resize = .{ .cols = 80, .rows = 24 } }); + p.update(.{ .key = .{ .cp = 'n', .alt = true } }); // a shell under the doc + const shell = p.active; + const sp = p.panes[shell].?; + p.update(.{ .key = .{ .cp = Key.escape, .shift = true } }); + try std.testing.expectEqual(Pane.Mode.tty, sp.mode); + + for (0..60) |i| { + var buf: [32]u8 = undefined; + p.update(.{ .output = .{ .pane = @intCast(shell), .bytes = std.fmt.bufPrint(&buf, "line {d}\r\n", .{i}) catch unreachable } }); + } + p.sync(); + const bottom = panes.Terminal.scrollbar(sp).offset; + try std.testing.expect(bottom > 0); + + // Scrolled back, the reader stays put however much the shell prints. + sp.scrollBy(-10); + p.sync(); + const parked = panes.Terminal.scrollbar(sp).offset; + try std.testing.expect(parked < bottom); + for (60..70) |i| { + var buf: [32]u8 = undefined; + p.update(.{ .output = .{ .pane = @intCast(shell), .bytes = std.fmt.bufPrint(&buf, "line {d}\r\n", .{i}) catch unreachable } }); + } + p.sync(); + try std.testing.expectEqual(parked, panes.Terminal.scrollbar(sp).offset); + + // Typing snaps back to live output, so nobody types blind. + p.update(.{ .key = .{ .cp = 'x', .text = "x" } }); + p.sync(); + try std.testing.expect(panes.Terminal.scrollbar(sp).offset > parked); + + // ...and from there output follows again. + const live = panes.Terminal.scrollbar(sp).offset; + p.update(.{ .output = .{ .pane = @intCast(shell), .bytes = "tail\r\n" } }); + p.sync(); + try std.testing.expect(panes.Terminal.scrollbar(sp).offset > live); +} + test "Esc back into a file leaves its view where it was" { if (platform == .web) return; const gpa = std.testing.allocator; @@ -14461,15 +14646,23 @@ test "raw tty Escape only leaves at a shell prompt" { const pane = p.panes[shell].?; var buf: [256]u8 = undefined; _ = drainWrites(p, &buf); - for ([_]Key{ - .{ .cp = Key.escape, .shift = true }, - }) |key| { - p.update(.{ .key = key }); - try std.testing.expectEqual(shell, p.active); - try std.testing.expectEqual(Pane.Mode.tty, pane.mode); - try std.testing.expect(drainWrites(p, &buf).len > 0); - } - p.update(.{ .key = .{ .cp = Key.escape } }); + + // Ordinary keys reach the child; Shift-Escape is the one unconditional way + // out and sends it nothing. + p.update(.{ .key = .{ .cp = 'x', .text = "x" } }); + try std.testing.expectEqual(shell, p.active); + try std.testing.expect(drainWrites(p, &buf).len > 0); + + p.update(.{ .key = .{ .cp = Key.escape, .shift = true } }); + try std.testing.expectEqual(@as(usize, 0), p.active); + try std.testing.expectEqualStrings("", drainWrites(p, &buf)); + try std.testing.expectEqual(Pane.Mode.tty, pane.mode); + + p.update(.{ .key = .{ .cp = Key.escape } }); // back into the shell + try std.testing.expectEqual(shell, p.active); + _ = drainWrites(p, &buf); + + p.update(.{ .key = .{ .cp = Key.escape } }); // bare Escape leaves at a prompt try std.testing.expectEqual(@as(usize, 0), p.active); try std.testing.expectEqualStrings("", drainWrites(p, &buf)); try std.testing.expectEqual(Pane.Mode.tty, pane.mode); @@ -14620,9 +14813,10 @@ test "raw tty forwards Ctrl letters and former global shortcuts to the child" { defer p.deinit(); var buf: [256]u8 = undefined; _ = drainWrites(p, &buf); - p.setYank("must not be pasted"); + p.setYank("register text"); for ('a'..'z' + 1) |letter| { if (letter == p.opts.tty_toggle) continue; // editor/TTY mode shortcut + if (letter == 'v') continue; // the window's paste, asserted just below p.update(.{ .key = .{ .cp = @intCast(letter), .ctrl = true } }); const expected = [_]u8{@intCast(letter - 'a' + 1)}; // The terminal encoder distinguishes Ctrl-I/M from Tab/Return. @@ -14636,15 +14830,21 @@ test "raw tty forwards Ctrl letters and former global shortcuts to the child" { try std.testing.expectEqual(Pane.Mode.tty, p.panes[0].?.mode); try std.testing.expect(!p.ctrl_w_pending and p.clip_pending == null); } - p.update(.{ .key = .{ .cp = 'v', .ctrl = true, .shift = true } }); - try std.testing.expectEqualStrings("\x1b[118;6u", drainWrites(p, &buf)); + // ...and the two paste chords are the exception: Ctrl-V types the register + // at the program, Ctrl-Shift-V asks the desktop first and types nothing yet. + p.update(.{ .key = .{ .cp = 'v', .ctrl = true } }); + try std.testing.expectEqualStrings("register text", drainWrites(p, &buf)); try std.testing.expect(p.clip_pending == null); + p.update(.{ .key = .{ .cp = 'v', .ctrl = true, .shift = true } }); + try std.testing.expectEqualStrings("", drainWrites(p, &buf)); + try std.testing.expect(p.clip_pending != null); + const unopened = p.freeSlot(); // whatever the boot layout already used for ([_]u8{ 'n', 'c' }) |letter| { p.update(.{ .key = .{ .cp = letter, .alt = true } }); const expected = [_]u8{ 0x1b, letter }; try std.testing.expectEqualStrings(&expected, drainWrites(p, &buf)); try std.testing.expectEqual(@as(usize, 0), p.active); - try std.testing.expect(p.panes[1] == null); + try std.testing.expectEqual(unopened, p.freeSlot()); } p.update(.{ .key = .{ .cp = Key.up } }); try std.testing.expectEqualStrings("\x1b[A", drainWrites(p, &buf)); diff --git a/src/tty/tty.zig b/src/tty/tty.zig index 23b7c09b..a1917ba9 100644 --- a/src/tty/tty.zig +++ b/src/tty/tty.zig @@ -71,6 +71,21 @@ fn inputReader(loop: *Loop, tty: anytype, cache: *vaxis.GraphemeCache) void { loop.postEvent(.quit) catch {}; } +/// How long a lone ESC waits for the rest of a sequence before it counts as +/// the Escape key. Long enough for the remainder of a real sequence to arrive +/// even over a slow link, short enough that nobody sees the delay. +const escape_hold_ms = 25; + +/// Is there more input right behind what we have already read? Only a real +/// terminal has an fd to ask; the test readers hand their parts over whole, so +/// for them the answer is always no. +fn morePending(tty: anytype) bool { + const Reader = @typeInfo(@TypeOf(tty)).pointer.child; + if (!@hasField(Reader, "fd") or @FieldType(Reader, "fd") != std.Io.File) return false; + var fds = [_]std.posix.pollfd{.{ .fd = tty.fd.handle, .events = std.posix.POLL.IN, .revents = 0 }}; + return (std.posix.poll(&fds, escape_hold_ms) catch return false) > 0; +} + fn readInput(loop: *Loop, tty: anytype, cache: *vaxis.GraphemeCache) !void { try loop.postEvent(.{ .winsize = try tty.getWinsize() }); var parser: vaxis.Parser = .{}; @@ -101,6 +116,22 @@ fn readInput(loop: *Loop, tty: anytype, cache: *vaxis.GraphemeCache) !void { } carried = end - consumed; std.mem.copyForwards(u8, buf[0..carried], buf[consumed..end]); + // A lone ESC opens most sequences and is also the Escape key, so the + // parser holds it for a remainder that a keypress never sends: the + // press would only land when the NEXT key arrived. Wait a beat, and + // when nothing follows it was the key. A terminal speaking the kitty + // protocol never reaches here — it spells Escape out in full. + if (carried == 1 and buf[0] == 0x1b and !morePending(tty)) { + carried = 0; + try vaxis.loop.handleEventGeneric( + loop, + loop.vaxis, + cache, + @TypeOf(Command.value), + @as(vaxis.Event, .{ .key_press = .{ .codepoint = vaxis.Key.escape } }), + loop.vaxis.opts.system_clipboard_allocator, + ); + } } } diff --git a/src/tutor.txt b/src/tutor.txt index 394a48a3..adf4ae3a 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -160,8 +160,10 @@ RAW INPUT Ctrl-b switches to editor mode. Other keys go to the child, - including Ctrl-o, Ctrl-w, Ctrl-V, Ctrl-Shift-V, Alt shortcuts, and - modified Escape. Plain Esc at a detected shell prompt hops + including Ctrl-o, Ctrl-w, Alt shortcuts, and + modified Escape. The two paste chords are the exception: Ctrl-V + types the yank register at the program and Ctrl-Shift-V types the + desktop clipboard. Plain Esc at a detected shell prompt hops to the previous pane. While a program owns the terminal, Esc goes to that program too. Use the Togglettymode tag to leave raw input in place. Desktop paste events still feed the child. @@ -387,15 +389,15 @@ typed pardes the 9P socket opens by default - A directory per pane holding `name`, `body`, `tag`, `ctl`, `addr`, - `data`, `sel`, `event`, `pty/` and the rest, plus `index`, `ctl`, - `new` and `log` at the root. Every pane shell receives `$PARDES_9P` - (the socket) and `$PARDES_PANE` (its serial). Use a 9P client: + A directory per pane holding `name`, `body`, `tag`, `addr`, `dot`, + `data`, `sel`, `dirty`, `event`, `pty/` and the rest, plus `index`, + `status`, `look`, `exec` and `log` at the root. Every pane shell + receives `$PARDES_9P` (the socket) and `$PARDES_PANE` (its serial): /pane//body /index - /new reading it makes a pane, answers its serial - /ctl `look FILE:12` and `exec Save`, as the mouse does + /pane mkdir here makes a pane, rmdir closes it + /look /exec `FILE:12` and `Save`, as the mouse does A terminal pane also has `pty/`: @@ -446,7 +448,8 @@ typed Esc goes to the program — except at a shell PROMPT, where it hops to the previous pane Ctrl-b switches to editor mode - All other keys belong to the child, including Ctrl-V + Ctrl-V types the register, Ctrl-Shift-V the clipboard + All other keys belong to the child DETACHED pardes --detach[=name] the core, no terminal pardes --attach[=name] a frontend for it diff --git a/test/appearance_gallery.py b/test/appearance_gallery.py index 0fa12136..48c0ea1b 100644 --- a/test/appearance_gallery.py +++ b/test/appearance_gallery.py @@ -82,7 +82,7 @@ def run(args): right = require(wait_for(lambda: next((s for s in panes(client) if s not in before), None)), 'right column missing') client.write(f'/pane/{right}/name', f'{root / "Review"}\n'.encode()) client.write(f'/pane/{right}/body', PREFERENCE_NOTES if args.theme_selector else NOTES, truncate=True) - client.write(f'/pane/{right}/ctl', b'clean\n') + client.write(f'/pane/{right}/dirty', b'0\n') before = set(panes(client)) command(client, right, 'Tty') terminal = require(wait_for(lambda: next((s for s in panes(client) if s not in before), None)), 'terminal missing') @@ -94,12 +94,12 @@ def run(args): command(client, right, 'Config') pane = require(wait_for(lambda: next((s for s in panes(client) if s not in before), None)), 'Config output missing') text = client.read(f'/pane/{pane}/body').decode() - client.write(f'/pane/{pane}/ctl', b'exec Del\n') + client.write(f'/pane/{pane}/exec', b'Del\n') return text settings = config_report() - require('Font effective size: 18.00 pixels' in settings, 'configured font size not applied: ' + settings) - require('TaglineSize: 80' in settings, 'configured tag size missing') + require('Font effective size 18.00 pixels' in settings, 'configured font size not applied: ' + settings) + require('TaglineSize 80' in settings, 'configured tag size missing') (root / 'effective-config.txt').write_text(settings) report['font_effective_pixels'] = 18 report['tagline_percent'] = 80 @@ -135,7 +135,7 @@ def run(args): command(client, right, 'Theme ' + theme) if args.theme_selector: # Keep both quiet active gutter ink and vivid comments in view. - client.write(f'/pane/{source}/ctl', f'look {source_path}:117\n'.encode()) + client.write(f'/pane/{source}/look', f'{source_path}:117\n'.encode()) take_frame('classic-' + theme) if args.theme_selector: frame = client.screen() @@ -171,14 +171,14 @@ def run(args): 'ThemeSel did not open at native first entry') take_frame('theme-selector') report['native_themes_first'] = True - client.write(f'/pane/{selector}/ctl', b'exec Del\n') + client.write(f'/pane/{selector}/exec', b'Del\n') command(client, terminal, 'Collapse') for pet in (() if args.skip_pets else ('cat', 'frog', 'off')): command(client, right, 'Pet ' + pet) settings = config_report() require('Pet: ' + pet + '\n' in settings, 'pet setting not applied') # Returning focus to the source closes all transient report state. - client.write(f'/pane/{source}/ctl', f'look {source_path}:1\n'.encode()) + client.write(f'/pane/{source}/look', f'{source_path}:1\n'.encode()) take_frame('pet-' + pet) if pet != 'off': frame = client.screen() diff --git a/test/column_tags.py b/test/column_tags.py index 80b623bd..fe3a8699 100644 --- a/test/column_tags.py +++ b/test/column_tags.py @@ -143,7 +143,7 @@ def run(args): client.write(f'/pane/{right}/name', f'{right_name}\n'.encode()) right_body = b'// Column-local scratch\nfn main() {\n let ready = true;\n}\n' client.write(f'/pane/{right}/body', right_body) - client.write(f'/pane/{right}/ctl', b'clean\n') + client.write(f'/pane/{right}/dirty', b'0\n') require(wait_for(lambda: locate(client, 'New Tty', row=1, minimum_col=75)), 'right column tag missing') require(locate(client, 'New Tty', row=1, minimum_col=75) == (75, 1), 'right column tag retains an inset') @@ -173,7 +173,7 @@ def run(args): extra = require(wait_for(lambda: new_serial(client, before)), 'right-column New did not create a pane') client.write(f'/pane/{extra}/body', b'RIGHT-COLUMN-NEW\n') require(wait_for(lambda: locate(client, 'RIGHT-COLUMN-NEW', minimum_col=75)), 'right-column command targeted another column') - client.write(f'/pane/{extra}/ctl', b'exec Del\n') + client.write(f'/pane/{extra}/exec', b'Del\n') checks.append('middle-click New targets the inactive right column') # An owned short-path file makes its complete tag visible. Pane-tag diff --git a/test/e2e_harness.zig b/test/e2e_harness.zig index f7f380df..5a181b78 100644 --- a/test/e2e_harness.zig +++ b/test/e2e_harness.zig @@ -92,7 +92,7 @@ pub const Harness = struct { const ws = posix.winsize{ .row = rows, .col = cols, .xpixel = 0, .ypixel = 0 }; const pid = forkpty(&master, null, null, &ws); if (pid == 0) { - for ([_][*:0]const u8{ "PARDES_9P", "PARDES_PANE", "PARDES_FORWARD_LOOK" }) |name| + for ([_][*:0]const u8{ "PARDES_PID", "PARDES_9P", "PARDES_PANE" }) |name| if (unsetenv(name) != 0) _exit(126); _ = execvp(exe, argv.ptr); _exit(127); diff --git a/test/font_size.py b/test/font_size.py index 3a0a9a28..b7104099 100644 --- a/test/font_size.py +++ b/test/font_size.py @@ -30,16 +30,16 @@ def run(args): for serial, tag in panes(client).items(): if '/+Config ' in tag: body = client.read(f'/pane/{serial}/body').decode() - if f'Font effective size: {size:.2f} pixels' in body: + if f'Font effective size {size:.2f} pixels' in body: return body return None return require(wait_for(ready), f'Font did not become {size} pixels') initial = report(18) - require('Font requested size: 18.00' in initial, 'startup size suffix ignored') + require('Font requested size 18.00' in initial, 'startup size suffix ignored') require(args.font in initial, 'requested font missing') execute(client, control, f'Font {args.font}:20.5') - require('Font requested size: 20.50' in report(20.5), 'fractional size ignored') + require('Font requested size 20.50' in report(20.5), 'fractional size ignored') execute(client, control, f'Font {args.font}') report(20.5) # no suffix preserves current size execute(client, control, f'Font {args.font}:900') diff --git a/test/fs.py b/test/fs.py index 819a78d6..c3ffa440 100644 --- a/test/fs.py +++ b/test/fs.py @@ -100,8 +100,15 @@ def session(binary, root, name, *options, socket_name=None, file=None, tty=False assert not reader.is_alive(), 'terminal reader did not stop' +def newest(client): + """The newest pane's serial: /index is ordered by serial.""" + return int(client.read('/index').splitlines()[-1].split()[0]) + + def new_pane(client, contents): - serial = int(client.read('/new').split()[0]) + """mkdir in /pane; the editor names the directory after the new serial.""" + client.mkdir('/pane', 'scratch') + serial = newest(client) if contents: client.write(f'/pane/{serial}/body', contents) return serial @@ -110,18 +117,18 @@ def new_pane(client, contents): def look(client, path, source=None): """A right click on `path` from a pane (a fresh scratch by default).""" serial = source if source is not None else new_pane(client, b'') - client.write(f'/pane/{serial}/ctl', f'look {path}\n'.encode()) - results = [int(row) for row in client.read('/ctl').split()] + client.write(f'/pane/{serial}/look', f'{path}\n'.encode()) + results = [int(row) for row in client.read('/look').split()] assert len(results) == 1 and results[0] != serial, (path, results) return results[0] def execute(client, serial, command): """A middle click on `command` from a pane.""" - client.write(f'/pane/{serial}/ctl', f'exec {command}\n'.encode()) + client.write(f'/pane/{serial}/exec', f'{command}\n'.encode()) -def walk_tree(client, path='/', skip=('/new', '/log', '/os', '/screen')): +def walk_tree(client, path='/', skip=('/log', '/os', '/screen')): """Stat every entry below `path`, as `find` does, without opening anything.""" seen = [] for name in client.list(path): @@ -138,18 +145,21 @@ def discovery(binary, embedded=False): root = Path(directory) with session(binary, root, 'discovery') as (client, _): top = client.list('/') - assert top[:9] == ['README', 'index', 'ctl', 'new', 'log', 'screen', 'listeners', 'pane', 'os'], top - assert 'self' not in top and 'cons' not in top, top + assert top[:10] == ['README', 'index', 'status', 'look', 'exec', 'log', 'screen', + 'listeners', 'pane', 'os'], top + assert 'self' not in top and 'cons' not in top and 'new' not in top, top assert ('src' in top) == embedded, (top, embedded) before = client.read('/index') guide = client.read('/README') - assert guide.count(b'\n') <= 45 and b'exec Msg' in guide and b'/new' in guide, guide + assert guide.count(b'\n') <= 45 and b'Msg hello' in guide and b'mkdir' in guide, guide assert client.stat('/README')['length'] == len(guide) # ls/stat/find over the whole tree, without opening, creates nothing. seen = walk_tree(client) names = {path for path, _ in seen} - assert {'/index', '/ctl', '/new', '/log', '/pane/1', '/pane/1/body', '/pane/1/name', - '/pane/1/sel', '/pane/1/ctl', '/pane/1/tag', '/pane/1/event'} <= names, sorted(names) + assert {'/index', '/status', '/look', '/exec', '/log', '/pane/1', '/pane/1/body', + '/pane/1/name', '/pane/1/sel', '/pane/1/ctl', '/pane/1/tag', '/pane/1/event', + '/pane/1/dot', '/pane/1/limit', '/pane/1/dirty', '/pane/1/mark', + '/pane/1/scroll', '/pane/1/look', '/pane/1/exec'} <= names, sorted(names) assert '/pane/1/pty' not in names, 'the fixture file pane grew a pty/' assert not any(name.startswith('/self') or name.endswith('/rdsel') or name.endswith('/wrsel') for name in names), sorted(names) @@ -159,18 +169,28 @@ def discovery(binary, embedded=False): assert client.read('/index') == before, 'browsing created a pane' assert client.stat('/index')['length'] == len(before) > 0 index = client.stat('/index') - assert index['mode'] == 0o444 and client.stat('/ctl')['mode'] == 0o666 + assert index['mode'] == 0o444 and client.stat('/status')['mode'] == 0o444 + assert client.stat('/exec')['mode'] == 0o666 assert client.stat('/pane/1/body')['mode'] == 0o666 and client.stat('/pane')['mode'] == 0o755 + # A range file reads the pair it takes; a flag file reads 0 or 1. + assert client.stat('/pane/1/addr')['length'] == 24 + assert client.stat('/pane/1/limit')['length'] == 0 + assert client.read('/pane/1/dirty') == b'0\n' + assert client.read('/pane/1/scroll') == b'1\n' fixture = int(before.split()[0]) assert before.split()[1:3] == [b'text', b'0'] and before.endswith(b'/discovery.txt\n'), before - # Before any command, /ctl reports the editor. - status = dict(line.split(maxsplit=1) for line in client.read('/ctl').decode().splitlines()) - assert int(status['pid']) > 0 and status['version'] and int(status['panes']) == 1, status - # /new: one pane per open, its serial is the file's content. + # /status reports the editor; /exec has nothing to report yet. + status = dict(line.split(maxsplit=1) for line in client.read('/status').decode().splitlines()) + assert int(status['pid']) > 0 and status['version'] and int(status['panes']) >= 1, status + assert client.read('/exec') == b'' + # mkdir makes a pane, named by the serial the editor gives it. log = client.open('/log') - first = int(client.read('/new').split()[0]) - second = int(client.read('/new').split()[0]) + client.mkdir('/pane', 'one') + first = newest(client) + client.mkdir('/pane', 'two') + second = newest(client) assert first != second and first != fixture, (first, second) + assert 'one' not in client.list('/pane') and 'two' not in client.list('/pane') assert client.read_fid(log) == f'new {first} {root}/+New\n'.encode() assert client.read_fid(log) == f'new {second} {root}/+New\n'.encode() assert set(client.list('/pane')) == {str(fixture), str(first), str(second)} @@ -186,51 +206,63 @@ def discovery(binary, embedded=False): assert client.read(f'/pane/{first}/name') == f'{root}/notes.txt\n'.encode() assert client.read_fid(log) == f'rename {first} {root}/notes.txt\n'.encode() assert client.stat(f'/pane/{first}/name')['length'] == len(f'{root}/notes.txt\n') + # Copying addr onto dot selects that range; sel reads and replaces it. client.write(f'/pane/{first}/addr', b'#0,#5') - client.write(f'/pane/{first}/ctl', b'dot=addr\n') + client.write(f'/pane/{first}/dot', client.read(f'/pane/{first}/addr')) + assert client.read(f'/pane/{first}/dot') == client.read(f'/pane/{first}/addr') assert client.read(f'/pane/{first}/sel') == b'first' assert client.stat(f'/pane/{first}/sel')['length'] == 5 client.write(f'/pane/{first}/sel', b'FIRST') assert client.read(f'/pane/{first}/body') == b'FIRST pane' assert client.read(f'/pane/{first}/sel') == b'' - # exec Msg shows text; exec Save writes the named file; exec Del closes. - client.write(f'/pane/{first}/ctl', b'exec Msg hello from 9P\n') + # exec Msg shows text; exec Save writes the named file; rmdir closes. + client.write(f'/pane/{first}/exec', b'Msg hello from 9P\n') assert 'hello from 9P' in ''.join(cell[0] for cell in client.screen()['cells']) - client.write(f'/pane/{first}/ctl', b'exec Save\n') + assert client.read(f'/pane/{first}/dirty') == b'1\n' + client.write(f'/pane/{first}/exec', b'Save\n') assert (root / 'notes.txt').read_bytes() == b'FIRST pane' assert client.read_fid(log) == f'save {first} {root}/notes.txt\n'.encode() - assert client.read('/ctl') == f'{first}\n'.encode() - client.write('/ctl', b'exec Del\n') + assert client.read('/exec') == f'{first}\n'.encode() + assert client.read(f'/pane/{first}/dirty') == b'0\n' + client.remove(f'/pane/{second}') assert client.read_fid(log) == f'del {second} {root}/+New\n'.encode() assert str(second) not in client.list('/pane') - # look through /ctl opens a file; the serial reads back. + # look opens a file; the serial reads back. (root / 'opened.txt').write_bytes(b'one\ntwo\nthree\n') - client.write('/ctl', f'look {root}/opened.txt:2\n'.encode()) - opened = int(client.read('/ctl')) + client.write('/look', f'{root}/opened.txt:2\n'.encode()) + opened = int(client.read('/look')) assert opened not in (fixture, first, second), opened assert client.read(f'/pane/{opened}/body') == b'one\ntwo\nthree\n' assert client.read(f'/pane/{opened}/name') == f'{root}/opened.txt\n'.encode() assert client.read_fid(log) == f'new {opened} {root}/opened.txt\n'.encode() - client.write(f'/pane/{first}/ctl', f'look {root}/opened.txt:3\n'.encode()) - assert client.read('/ctl') == f'{opened}\n'.encode(), 'a repeated look targets the open pane' - assert set(client.list('/pane')) == {str(fixture), str(first), str(opened)} + client.write(f'/pane/{first}/look', f'{root}/opened.txt:3\n'.encode()) + assert client.read('/look') == f'{opened}\n'.encode(), 'a repeated look targets the open pane' + assert {str(fixture), str(first), str(opened)} <= set(client.list('/pane')) # Writing an event record back still performs the action it names. client.write(f'/pane/{first}/body', b'Msg via event', truncate=True) client.write(f'/pane/{first}/event', b'FX0 13\n') assert 'via event' in ''.join(cell[0] for cell in client.screen()['cells']) - for bad in [b'Look x\n', b'Exec Msg x\n', b'put\n', b'name x\n', b'del\n']: + # A command line may not carry control characters, and nothing else + # in the tree may be created or removed. + refused = [lambda: client.write('/exec', b'Msg a\x00b'), + lambda: client.write('/status', b'anything\n'), + lambda: client.mkdir('/', 'x'), + lambda: client.create('/pane', 'plain-file'), + lambda: client.remove('/pane/1/body'), + lambda: client.remove('/index')] + for index, attempt in enumerate(refused): try: - client.write('/ctl', bad) + attempt() except OSError: pass else: - raise AssertionError(f'{bad!r} was accepted') + raise AssertionError(f'refusal {index} was accepted') client.close(log) if embedded: assert client.read('/src/pardes.zig').startswith(b'const std') assert client.stat('/src/pardes.zig')['mode'] == 0o444 assert b'pub const Pardes' in client.read(f'/pane/{look(client, "/virtual/src/pardes.zig")}/body') - print('9P discovery: listing/stat/find are inert; new, ctl, name, sel and log behave') + print('9P discovery: listing/stat/find are inert; create, remove, look, exec, name, sel and log behave') def test(binary, quic=False): @@ -266,7 +298,7 @@ def test(binary, quic=False): assert not (root / 'pardes-9p-renamed.sock').exists() assert named.read('/pane/1/body') == b'initial\n' with session(binary, root, 'first') as (client, address): - assert {'pane', 'index', 'new', 'ctl', 'log', 'os'} <= set(client.list('/')) + assert {'pane', 'index', 'status', 'look', 'exec', 'log', 'os'} <= set(client.list('/')) assert 'self' not in client.list('/') assert client.read('/pane/1/body') == b'initial\n' assert client.read('/os' + str(root / 'first.txt')) == b'initial\n' @@ -346,7 +378,7 @@ def test(binary, quic=False): opened = look(remote, '/n/peer/pane/' + str(serial) + '/body') assert remote.read(f'/pane/{opened}/body') == b'replaced\nevent\n' remote.write(f'/pane/{opened}/body', b'saved to peer\n', truncate=True) - remote.write(f'/pane/{opened}/ctl', b'exec Save\n') + remote.write(f'/pane/{opened}/exec', b'Save\n') assert client.read(body) == b'saved to peer\n' large = b'mounted file contents\n' * 60000 @@ -356,7 +388,7 @@ def test(binary, quic=False): assert remote.read(f'/pane/{opened}/body') == large edited = large[:-3] + b'edited\n' remote.write(f'/pane/{opened}/body', edited, truncate=True) - remote.write(f'/pane/{opened}/ctl', b'exec Save\n') + remote.write(f'/pane/{opened}/exec', b'Save\n') assert large_path.read_bytes() == edited assert client.read('/os' + str(large_path)) == edited @@ -368,12 +400,12 @@ def test(binary, quic=False): execute(remote, control, 'Mount peer ' + str(own_address)) execute(remote, control, 'Unmount peer') remote.write(f'/pane/{opened}/body', b'runtime mounted Save\n', truncate=True) - remote.write(f'/pane/{opened}/ctl', b'exec Save\n') + remote.write(f'/pane/{opened}/exec', b'Save\n') assert client.read('/pane/1/body') == b'runtime mounted Save\n' assert remote.read('/pane/1/body') == b'initial\n' roots = look(remote, '/n', source=control) assert b'/n/peer/\n' in remote.read(f'/pane/{roots}/body') - remote.write(f'/pane/{opened}/ctl', b'exec Del\n') + remote.write(f'/pane/{opened}/exec', b'Del\n') execute(remote, control, 'Unmount peer') remote.write(f'/pane/{roots}/ctl', b'get\n') assert remote.read(f'/pane/{roots}/body') == b'/n/os/\n/n/self/\n' @@ -385,7 +417,7 @@ def test(binary, quic=False): file='/n/peer/pane/1/body:1') as (remote, _): assert remote.read('/pane/1/body') == b'runtime mounted Save\n' - client.write(f'/pane/{serial}/ctl', b'exec Del\n') + client.write(f'/pane/{serial}/exec', b'Del\n') assert str(serial) not in client.list('/pane') for tty in [False, True]: @@ -424,7 +456,7 @@ def test(binary, quic=False): file_id, control_id = restored_ids contents = restored.read(f'/pane/{file_id}/body') assert contents == b'dumped state\n', (contents, saved.read_text(), restored.read('/index')) - assert restored.read(f'/pane/{control_id}/body') == b'', 'commands ran through ctl, not the body' + assert restored.read(f'/pane/{control_id}/body') == b'', 'commands ran through exec, not the body' assert restored.screen()['cols'] == 80 opened = look(restored, '/n/own/os' + str(root / (name + '.txt')), source=control_id) assert restored.read(f'/pane/{opened}/body') == b'initial\n' @@ -451,14 +483,12 @@ def test(binary, quic=False): assert client.read(f'/pane/{opened}/body') == expected assert client.read('/pane/1/body') == b'initial\n' if selected is not None: - addr = client.open(f'/pane/{opened}/addr') - client.write(f'/pane/{opened}/ctl', b'addr=dot\n') - actual = list(map(int, client.read_fid(addr).split())) - client.close(addr) + # The selection is dot; reading it takes no command at all. + actual = list(map(int, client.read(f'/pane/{opened}/dot').split())) assert actual == selected, (word, actual, selected) addr = client.open('/pane/1/addr', 2) - ctl = client.open('/pane/1/ctl', 1) - for fid, text in [(addr, b'#0,#3'), (ctl, b'limit=addr\n'), (addr, b'#0')]: + limit = client.open('/pane/1/limit', 2) + for fid, text in [(addr, b'#0,#3'), (limit, b'#0,#3'), (addr, b'#0')]: client.rpc(118, struct.pack(' req.size) return error.IncorrectReply; - const names = [_][]const u8{ "README", "index", "ctl", "new", "log", "screen", "listeners", "pane", "os" }; - const nodes = [_]u64{ @intFromEnum(ctlfs.TopFile.README), @intFromEnum(ctlfs.TopFile.index), @intFromEnum(ctlfs.TopFile.ctl), @intFromEnum(ctlfs.TopFile.new), @intFromEnum(ctlfs.TopFile.log), @intFromEnum(ctlfs.TopFile.screen), @intFromEnum(ctlfs.TopFile.listeners), @intFromEnum(ctlfs.TopFile.pane), filesystem.os_root }; + const names = [_][]const u8{ "README", "index", "status", "look", "exec", "log", "screen", "listeners", "pane", "os" }; + const nodes = [_]u64{ @intFromEnum(ctlfs.TopFile.README), @intFromEnum(ctlfs.TopFile.index), @intFromEnum(ctlfs.TopFile.status), @intFromEnum(ctlfs.TopFile.look), @intFromEnum(ctlfs.TopFile.exec), @intFromEnum(ctlfs.TopFile.log), @intFromEnum(ctlfs.TopFile.screen), @intFromEnum(ctlfs.TopFile.listeners), @intFromEnum(ctlfs.TopFile.pane), filesystem.os_root }; var off: usize = 0; var entry: usize = 0; while (off < bytes.len) : (entry += 1) { diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig index 8b6f245e..3eba6639 100644 --- a/test/fs_namespace.zig +++ b/test/fs_namespace.zig @@ -245,22 +245,17 @@ test "virtual file opens do not request OS watches" { while (p.nextEffect()) |effect| if (effect == .watch) return error.VirtualFileWatch; } -test "Look at the clone file reserves its own pane and failed opens release it" { +test "Look at a virtual file opens one pane and failed opens release their slot" { const p = try pardes.Pardes.init(std.testing.allocator, .{ .tty_only = true }); defer p.deinit(); - p.lookAt(0, "/virtual/new"); - var control_count: usize = 0; - var scratch_count: usize = 0; + p.lookAt(0, "/virtual/index"); + var opened: usize = 0; for (p.panes) |slot| { const pane = slot orelse continue; const file = pane.file orelse continue; - if (std.mem.eql(u8, file.path, "/virtual/new")) control_count += 1; - if (file.output) |output| if (output.from == .cmd and output.from.cmd == .New) { - scratch_count += 1; - }; + if (std.mem.eql(u8, file.path, "/virtual/index")) opened += 1; } - try std.testing.expectEqual(@as(usize, 1), control_count); - try std.testing.expectEqual(@as(usize, 1), scratch_count); + try std.testing.expectEqual(@as(usize, 1), opened); const free = p.freeSlot().?; try std.testing.expectError(error.FileNotFound, pardes.panes.File.open(p, free, "/n/self/does-not-exist", 0)); try std.testing.expect(p.panes[free] == null); diff --git a/test/fs_soak.py b/test/fs_soak.py index 5569a7c7..a62f03e6 100644 --- a/test/fs_soak.py +++ b/test/fs_soak.py @@ -145,7 +145,7 @@ def run(args): client.write(base + '/body', body, truncate=True) path = root / f'pane-{slot}-0.zig' client.write(base + '/name', f'{path}\n'.encode()) - client.write(base + '/ctl', b'exec Save\n') + client.write(base + '/exec', b'Save\n') panes.append({'serial': serial, 'body': body, 'path': path, 'variant': 0}) emit(kind='start', seed=args.seed, session_pid=pid, transport=args.transport, host='tty' if args.tty else 'detached', @@ -187,7 +187,7 @@ def run(args): pane['variant'] ^= 1 pane['path'] = root / f'pane-{slot}-{pane["variant"]}.zig' client.write(base + '/name', f'{pane["path"]}\n'.encode()) - client.write(base + '/ctl', b'exec Save\n') + client.write(base + '/exec', b'Save\n') check_bytes(pane['path'].read_bytes(), pane['body'], 'saved file') check_bytes(client.read('/os' + str(pane['path'])), pane['body'], 'OS mount') elif operation == 'reload': @@ -196,13 +196,13 @@ def run(args): client.write(base + '/ctl', b'get\n') elif operation == 'cycle': old_serial = pane['serial'] - client.write(base + '/ctl', b'exec Del\n') + client.remove(base) pane['body'] = payload(rng) pane['serial'] = new_pane(client, pane['body']) assert pane['serial'] != old_serial base = f'/pane/{pane["serial"]}' client.write(base + '/name', f'{pane["path"]}\n'.encode()) - client.write(base + '/ctl', b'exec Save\n') + client.write(base + '/exec', b'Save\n') elif operation == 'reconnect': client.socket.close() client = Client(address) diff --git a/test/look_placement.py b/test/look_placement.py index 1341e776..8a31157f 100644 --- a/test/look_placement.py +++ b/test/look_placement.py @@ -74,7 +74,7 @@ def run_case(args, root, source_index): require('pty' in client.list(pane), 'fixture contains an existing document') marker = f'LP_{index}' markers[serial] = marker - client.write(pane + '/ctl', b'cleartag\n') + client.write(pane + '/tag', b'', truncate=True) client.write(pane + '/tag', f' {marker} Tty Del Collapse'.encode()) # Establish non-pristine shells and a stable prompt before measuring. client.write(pane + '/pty/data', f"printf 'ready-{index}\\n'\r".encode()) @@ -89,7 +89,7 @@ def run_case(args, root, source_index): require(before[serials[0]][:2] == (0, 2) and before[serials[1]][0] == 0 and before[serials[1]][1] > 2 and before[serials[2]][:2] == (75, 2), f'unexpected initial classic layout: {before}') - client.write(f'/pane/{source}/ctl', f'look {target}\n'.encode()) + client.write(f'/pane/{source}/look', f'{target}\n'.encode()) opened = require(wait_for(lambda: next((serial for serial in panes(client) if serial not in serials), None)), 'Look did not open the first document') @@ -113,7 +113,7 @@ def run_case(args, root, source_index): f'Look changed unrelated terminal {serial} rendered text') require(client.read(f'/pane/{opened}/body') == contents, 'opened document contents differ') - client.write(f'/pane/{source}/ctl', f'look {target}:2\n'.encode()) + client.write(f'/pane/{source}/look', f'{target}:2\n'.encode()) require(list(panes(client)) == serials + [opened], 'repeated Look created a duplicate pane') require(wait_for(lambda: geometry(client, markers)[1] == after), 'repeated Look changed layout') diff --git a/test/ninep.py b/test/ninep.py index 6c625951..ac4e146b 100644 --- a/test/ninep.py +++ b/test/ninep.py @@ -97,6 +97,25 @@ class Client: def close(self, fid): self.rpc(120, struct.pack(' |w| { + const bytes = w.bytes.slice(); + if (n + bytes.len > buf.len) break; + @memcpy(buf[n..][0..bytes.len], bytes); + n += bytes.len; + }, + else => {}, + }; + return buf[0..n]; + } + + // Raw tty mode forwards nearly every key to the child; the two paste + // chords are the exception, and forwarding them instead is what broke + // pasting into a terminal pane. An application that gets Ctrl-V rather + // than the text goes and reads the desktop clipboard on its own account, + // and a coding agent reading it is looking for an image, not for words. + test "raw tty paste chords type at the program instead of reaching it as keys" { + if (comptime !panes.Terminal.enabled) return error.SkipZigTest; + for ([_]bool{ false, true }) |bracketed| { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 40, .rows = 12 }); + defer p.deinit(); + const pane = p.panes[0].?; + try std.testing.expectEqual(Pane.Mode.tty, pane.mode); + if (bracketed) p.update(.{ .output = .{ .pane = 0, .bytes = "\x1b[?2004h" } }); + try std.testing.expectEqual(bracketed, panes.Terminal.bracketedPaste(pane)); + p.yank = try p.gpa.dupe(u8, "one\ntwo"); // what a `y` anywhere left behind + var buf: [256]u8 = undefined; + _ = childInput(p, &buf); + + // Ctrl-V types the register straight at the program, asking the + // desktop for nothing. Under DECSET 2004 the program's own fences + // carry it, which is what stops readline RUNNING a multi-line paste. + p.update(.{ .key = .{ .cp = 'v', .ctrl = true } }); + try std.testing.expectEqualStrings( + if (bracketed) "\x1b[200~one\ntwo\x1b[201~" else "one\rtwo", + childInput(p, &buf), + ); + try std.testing.expect(p.clip_pending == null); + + // Ctrl-Shift-V is the other store: it ASKS, types nothing yet, and + // the answer lands at the program rather than in an edit buffer. A + // host that folds the Shift into the letter says the same thing. + for ([_]Key{ + .{ .cp = 'v', .ctrl = true, .shift = true }, + .{ .cp = 'V', .ctrl = true }, + }) |chord| { + p.update(.{ .key = chord }); + try std.testing.expect(p.clip_pending != null); + try std.testing.expectEqualStrings("", childInput(p, &buf)); + p.update(.{ .paste = "from-desktop" }); + try std.testing.expect(p.clip_pending == null); + try std.testing.expectEqualStrings( + if (bracketed) "\x1b[200~from-desktop\x1b[201~" else "from-desktop", + childInput(p, &buf), + ); + } + // ...and neither chord put the clipboard in the register on its way. + try std.testing.expectEqualStrings("one\ntwo", p.yank orelse ""); + } + } }; const ClickCursorTests = struct { @@ -1616,7 +1682,7 @@ test "generated output refuses every pipe prompt before seeding the tag" { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true }); defer p.deinit(); const content = try p.gpa.dupe(u8, "generated\n"); - const pane = try panes.Output.open(p, 1, "/", .{ .cmd = .Help }, "", content); + const pane = try panes.Output.open(p, p.freeSlot().?, "/", .{ .cmd = .Help }, "", content); p.active = 1; for ([_]Key{ .{ .cp = '|' }, .{ .cp = '|', .alt = true }, .{ .cp = '!' }, .{ .cp = '!', .alt = true } }) |key| { p.update(.{ .key = key }); @@ -1825,14 +1891,14 @@ test "file history construction failures preserve existing panes" { defer if (incoming) |bytes| p.gpa.free(bytes); failing.fail_index = failing.alloc_index + failure; const result = switch (case) { - .open => panes.File.open(p, 1, path, 0), + .open => panes.File.open(p, p.freeSlot().?, path, 0), .restore => panes.File.restore(p, 1, .{ .kind = .file, .tag = "", .body = "", .file = .{ .path = "/restored.zig", .content = "restored\n" }, }), - .output => panes.Output.open(p, 1, "/", .{ .cmd = .Help }, "", incoming.?), + .output => panes.Output.open(p, p.freeSlot().?, "/", .{ .cmd = .Help }, "", incoming.?), .tutor => p.openTutorView(1), .replace => p.setTestFile("replacement\n"), }; @@ -1900,14 +1966,14 @@ test "file history owns bounded snapshot storage without per-edit bookkeeping al try std.testing.expectEqual(@as(usize, 0), history.redo_len); } -test "file history allocation precedes a filesystem read with side effects" { +test "file history allocation precedes reading the served tree" { var failing = std.testing.FailingAllocator.init(std.testing.allocator, .{}); const p = try Pardes.init(failing.allocator(), .{ .tty_only = true, .cols = 40, .rows = 12 }); defer p.deinit(); const original = p.panes[0].?; const serial = p.next_serial; failing.fail_index = failing.alloc_index + 2; - try std.testing.expectError(error.OutOfMemory, panes.File.open(p, 1, "/n/self/new", 0)); + try std.testing.expectError(error.OutOfMemory, panes.File.open(p, p.freeSlot().?, "/n/self/index", 0)); try std.testing.expect(failing.has_induced_failure); try std.testing.expectEqual(original, p.panes[0].?); try std.testing.expectEqual(serial, p.next_serial); diff --git a/test/pdf.zig b/test/pdf.zig index beeb0b40..930cc5c0 100644 --- a/test/pdf.zig +++ b/test/pdf.zig @@ -1253,7 +1253,7 @@ test "PdfTint cycles pane-local state without adding tag clutter" { try std.testing.expectEqual(PdfTintMode.filtered, pv.tint); const initial_tag = try pardes.test_api.tagText(p, p.scratch.allocator(), pane); try std.testing.expect(std.mem.startsWith(u8, initial_tag, pv.path)); - try std.testing.expect(std.mem.endsWith(u8, initial_tag, " PdfSections PdfTint Collapse")); + try std.testing.expect(std.mem.endsWith(u8, initial_tag, " PdfSections PdfTint Collapse Del")); try std.testing.expect(std.mem.indexOf(u8, initial_tag, "filtered") == null); try std.testing.expect(pardes.test_api.runBuiltin( diff --git a/test/tag_cleanup.py b/test/tag_cleanup.py index 7b7d8bbf..ae0a0e66 100644 --- a/test/tag_cleanup.py +++ b/test/tag_cleanup.py @@ -36,7 +36,7 @@ def run(args): before = set(panes(client)) execute(client, control, 'Tty') tty = require(wait_for(lambda: next((s for s in panes(client) if s not in before), None)), 'terminal missing') - client.write(f'/pane/{control}/ctl', b'exec Del\n') # owned command-only scratch + client.write(f'/pane/{control}/exec', b'Del\n') # owned command-only scratch def tag_position(): frame = client.screen() diff --git a/test/ui_review.py b/test/ui_review.py index 2b6faa29..a1cdcdeb 100644 --- a/test/ui_review.py +++ b/test/ui_review.py @@ -43,7 +43,7 @@ def command(client, serial, text): current = client.read(tag) start = current.rfind(text.encode()) client.write(f'/pane/{serial}/event', f'Mx{start} {start + len(text.encode())}\n'.encode()) - client.write(f'/pane/{serial}/ctl', b'cleartag\n') + client.write(f'/pane/{serial}/tag', b'', truncate=True) client.write(tag, before[tail_start:]) def new_output(client, before): @@ -111,7 +111,7 @@ def run(args): capture(client, root, '02-find', not args.tty) if find_pane: (root / 'find-results.txt').write_bytes(client.read(f'/pane/{find_pane}/body')) - client.write(f'/pane/{find_pane}/ctl', b'exec Del\n') + client.write(f'/pane/{find_pane}/exec', b'Del\n') before = panes(client) command(client, source, 'Grep CrdsValueLabel') grep_pane = require(wait_for(lambda: new_output(client, before)), 'Grep did not return results') @@ -140,10 +140,10 @@ def run(args): (root / 'symbols-results.txt').write_bytes(client.read(f'/pane/{symbols}/body')) capture(client, root, '05-symbols', not args.tty) if symbols: - client.write(f'/pane/{symbols}/ctl', b'exec Del\n') + client.write(f'/pane/{symbols}/exec', b'Del\n') offset = original.index(b'CrdsValue {') client.write(f'/pane/{source}/addr', f'#{offset},#{offset}'.encode()) - client.write(f'/pane/{source}/ctl', b'dot=addr\nshow\n') + client.write(f'/pane/{source}/dot', client.read(f'/pane/{source}/addr')) before = panes(client) command(client, source, 'Hover') hover = wait_for(lambda: new_output(client, before), args.lsp_wait) @@ -154,7 +154,7 @@ def run(args): # Look focuses the source without changing it; gd then travels through # the host's real input parser, unlike tag builtin dispatch above. line = original[:original.index(b'impl Sanitize for CrdsValue')].count(b'\n') + 1 - client.write(f'/pane/{source}/ctl', f'look {source_path}:{line}:19\n'.encode()) + client.write(f'/pane/{source}/look', f'{source_path}:{line}:19\n'.encode()) os.write(terminal_handle['input_fd'], b'gd') time.sleep(1) capture(client, root, '07-definition', not args.tty) @@ -166,7 +166,7 @@ def run(args): report['lsp'] = info.decode() capture(client, root, '08-lsp-info', not args.tty) if lsp: - client.write(f'/pane/{lsp}/ctl', b'exec Del\n') + client.write(f'/pane/{lsp}/exec', b'Del\n') for theme in args.themes: command(client, source, 'Theme ' + theme) capture(client, root, 'theme-' + theme, not args.tty) diff --git a/test/v9fs.py b/test/v9fs.py index 16916d0b..fa35388f 100644 --- a/test/v9fs.py +++ b/test/v9fs.py @@ -43,8 +43,8 @@ def worker(mountpoint, socket, uid, gid, original_namespace): assert not any(field.startswith(('shared:', 'master:')) for field in mounted[0].split()[6:]) tree = mountpoint - assert {'os', 'index', 'pane', 'new', 'ctl', 'log', 'screen', 'README'} <= set(os.listdir(tree)) - assert 'self' not in os.listdir(tree) + assert {'os', 'index', 'pane', 'status', 'look', 'exec', 'log', 'screen', 'README'} <= set(os.listdir(tree)) + assert 'self' not in os.listdir(tree) and 'new' not in os.listdir(tree) # A direct connection provides independent evidence for VFS reads/writes. with Client(socket) as client: assert (tree / 'index').read_bytes() == client.read('/index') @@ -52,14 +52,31 @@ def worker(mountpoint, socket, uid, gid, original_namespace): before = client.read('/index') subprocess.run(['ls', '-l', str(tree), str(tree / 'pane' / '1')], check=True, capture_output=True, timeout=5) - subprocess.run(['find', str(tree / 'pane'), str(tree / 'new'), '-ls'], check=True, capture_output=True, timeout=5) + subprocess.run(['find', str(tree / 'pane'), '-ls'], check=True, capture_output=True, timeout=5) assert (tree / 'README').read_bytes() == client.read('/README') - assert (tree / 'new').stat().st_size == 0 assert client.read('/index') == before, 'browsing created panes' - serial = int((tree / 'new').read_bytes().split()[0]) - another = int((tree / 'new').read_bytes().split()[0]) - assert serial != another, 'cached factory reused a pane' - client.write(f'/pane/{another}/ctl', b'exec Del\n') + # mkdir through the kernel mount opens a pane. The editor names it + # after its serial, not after the name asked for, so the kernel's own + # revalidation of that name may fail; the index is the answer. + def serials(): + return {int(row.split()[0]) for row in (tree / 'index').read_bytes().splitlines()} + + def mkpane(name): + known = serials() + try: + (tree / 'pane' / name).mkdir() + except FileNotFoundError: + pass + made = serials() - known + assert len(made) == 1, (name, made) + return made.pop() + + serial = mkpane('kernel-made') + another = mkpane('kernel-made-again') + assert serial != another, 'a second mkdir reused a pane' + assert not (tree / 'pane' / 'kernel-made').exists() + (tree / 'pane' / str(another)).rmdir() + assert another not in serials() pane = tree / 'pane' / str(serial) wire = f'/pane/{serial}' assert str(serial) in os.listdir(tree / 'pane') @@ -101,7 +118,7 @@ def worker(mountpoint, socket, uid, gid, original_namespace): # Reading OS files through the exported tree does not recurse through # the mount: the core still lives in the supervisor's namespace. assert (mountpoint / 'os' / str(socket.parent).lstrip('/') / 'kernel.txt').read_bytes() == b'initial\n' - write_existing(pane / 'ctl', b'exec Del\n') + (tree / 'pane' / str(serial)).rmdir() assert serial not in [int(row.split()[0]) for row in (tree / 'index').read_bytes().splitlines()] print('v9fs: namespace isolation, privilege drop, inherited mount, directory refresh, ' diff --git a/test/window_opacity.py b/test/window_opacity.py index b9529373..a576b1bd 100644 --- a/test/window_opacity.py +++ b/test/window_opacity.py @@ -60,7 +60,7 @@ def run(args): pane = require(wait_for(lambda: next((serial for serial in panes(client) if serial not in before), None)), builtin + ' output missing') text = client.read(f'/pane/{pane}/body').decode() - client.write(f'/pane/{pane}/ctl', b'exec Del\n') + client.write(f'/pane/{pane}/exec', b'Del\n') return text help_text = output('Help') -- cgit v1.3 From 5dcfade5f102256de787b2157b01293160780411 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 21 Sep 2026 22:37:06 -0300 Subject: Make a pane by opening /pane/new, and a Plan 9 idiom pass The Tcreate that replaced acme's /new was a step away from the idiom dressed up as a step toward it. A pane is named by a server-assigned serial, so the create ignored the client's name: `mkdir /pane/foo` succeeded and left you /pane/12. A mkdir that does not make the directory you named is worse than the read-with-side-effect it replaced, and it broke in the shell workflow that motivated the change. `create` is out of the declared features, so Tcreate is EPERM again; Tremove stays, since `rm` to close a pane is unambiguously right. /pane/new is now opened, not created: the open makes the pane, the read of that fid answers its serial, two reads agree, and closing it leaves the pane. That is /net/tcp/clone's mechanism (kernel/network/ip/devip.c, in ipopen), not acme's, and the difference is deliberate. acme allocates during the walk and lands inside the new window, so /dev/new/body works in one step, and it can afford to list `new` because a Plan 9 directory read carries every entry's stat and nothing walks. A kernel or FUSE mount walks and stats each name a listing gave it, so allocate-on-walk would make a pane per `ls -l`. Allocating on open keeps `new` listed -- a stat is not an open -- at the cost of the one-step new/body. `new` stays unreachable from an editor path, because that resolution serves Look hover previews. The idiom pass behind it, read out of the Plan 9 tree at ~/05-genizah/principia-softwarica rather than recalled: Rerror carries a string, not an errno (man 5 error: `ename[s]`), and acme names every refusal. The five refusals pardes shares with acme now say what they mean; the generic sites keep their bare errno rather than invent strings acme does not have. body and tag declare DMAPPEND, which they had always behaved as (acme(4): "always appended; the file offset is ignored"), checked first against Linux's fs/9p, which never maps the bit. excl stays unset everywhere, because acme sets DMEXCL on nothing. Blocking reads, per-object addr scope and the readable pane ctl were already right. Real stat sizes and qid versions stay: acme reports length 0 and version 0 for everything, and Linux clients need better. One bug fell out of it. open reset the addr range, so `echo '#0,#5' >addr; cat addr` answered `0 0` and `cp addr dot` copied zeros. acme(4) makes the contract explicit -- "a regular expression may be evaluated by writing it to addr and reading it back" -- and acme gets away with resetting on the 0-to-1 open only because its clients hold the fid across both. A shell cannot: that is two opens. The register is cleared by truncating it now. Co-Authored-By: Claude Opus 5 (1M context) --- .agents/skills/pardes-9p/SKILL.md | 38 ++++++--- docs/fs.md | 40 +++++++--- docs/v9fs.md | 9 +++ features.txt | 5 ++ src/fs-help.txt | 10 +-- src/ninep/ctl.zig | 2 +- src/ninep/events.zig | 6 +- src/ninep/pane.zig | 8 +- src/ninep/pty.zig | 2 +- src/ninep/testing.zig | 26 ++---- src/ninep/tree.zig | 162 ++++++++++++++++++++++++++++---------- src/tutor.txt | 2 +- test/fs.py | 27 ++++--- test/v9fs.py | 29 +++---- 14 files changed, 239 insertions(+), 127 deletions(-) (limited to 'src/tutor.txt') diff --git a/.agents/skills/pardes-9p/SKILL.md b/.agents/skills/pardes-9p/SKILL.md index 2cea4d4a..91a8e864 100644 --- a/.agents/skills/pardes-9p/SKILL.md +++ b/.agents/skills/pardes-9p/SKILL.md @@ -49,7 +49,7 @@ $m/exec write a line = a middle click: an editor command word, or a shell $m/log one record per read: new|del|rename|save ; reads park $m/screen the rendered screen as JSON, frozen per open $m/listeners this session's dial addresses -$m/pane/ mkdir opens a pane; rmdir closes it +$m/pane/new open it to make a pane, read names it; rmdir $m/pane/ closes it $m/os/ the host filesystem ``` @@ -60,7 +60,7 @@ reuse or close a pane. ```sh cat "$m/index" # which panes exist -mkdir "$m/pane/x"; n=$(awk 'END{print $1}' "$m/index") # open one, take its serial +n=$(cat "$m/pane/new") # make one, take its serial printf 'text\n' > "$m/pane/$n/body" # append cat "$m/pane/$n/tag" # what its tagline offers echo notes.txt > "$m/pane/$n/name" # rename the buffer @@ -69,10 +69,20 @@ echo "/etc/hosts:3" > "$m/look"; cat "$m/look" # open a file, see where it land rmdir "$m/pane/$n" # close it, dirty or not ``` -The name `mkdir` asks for is ignored: a pane is named by the serial the editor -gives it, and because `/index` is ordered by serial its last row is the pane -just made. Nothing else in the tree can be created or removed, and no read -creates anything, so `ls`, `stat` and `find` over the whole tree are inert. +**Opening** `$m/pane/new` is what makes a pane, and reading the open file +answers its serial — `/net/tcp/clone`'s mechanism. Each open makes another one, +two reads of the same open file answer the same serial, and closing it leaves +the pane. A pane is named by the serial the editor gives it, never by a name +you choose. + +A *stat* makes nothing, which is the whole reason the allocation sits on open: +`new` is listed in `$m/pane`, so `ls` shows it, and `ls -l`, `find` and +anything else that stats every name a listing handed it stay inert. acme +allocates on the walk instead and lets it land inside the new window, so +`/dev/new/body` works in one step — it can afford that because a Plan 9 +directory read carries every entry's stat and nothing walks. Under a kernel or +FUSE mount that would be a pane per `ls -l`. Nothing else in the tree can be +created or removed, and no read creates anything. `look` and `exec` are the editor's two clicks, one per line of a write, at the active pane from the root and at that pane from `$m/pane//look` and @@ -107,11 +117,12 @@ search and reads empty until set; truncate it to lift it. buffer differs from its file, whether a write pushes an undo point, and whether a write scrolls. Truncating `tag` clears the part of the tag you may edit. -Address state belongs to the pane, not to a client: opening `addr` resets it, -so two clients addressing the same pane will interfere. `$pane/ctl` reads -acme's window status line — serial, tag length, body length, a reserved zero, -the dirty flag, the width in cells, the font and the tab width — and takes the -one verb `get`. +Address state belongs to the pane, not to a client: it keeps the last range +written until someone writes or truncates it, so writing an address and reading +it back evaluates it, and two clients addressing the same pane will interfere. +`$pane/ctl` reads acme's window status line — serial, tag length, body length, +a reserved zero, the dirty flag, the width in cells, the font and the tab +width — and takes the one verb `get`. Terminal panes have no file: writing their `body` sends child input, and truncation does not erase terminal history. @@ -209,8 +220,9 @@ with tempfile.TemporaryDirectory(prefix='pardes-9p-skill-') as directory: PY ``` -`new_pane` is `mkdir` plus a read of the index; `execute` writes one line to a -pane's `exec`. Both are in `test/fs.py`. For terminal tests, use +`new_pane` walks to `/pane/new` and reads the serial off the directory it +lands on; `execute` writes one line to a pane's `exec`. Both are in +`test/fs.py`. For terminal tests, use `session(..., tty=True)` and read [test/agent_session.py](../../../test/agent_session.py) for bounded interactive driving; its readiness text and history threshold are application-specific, and diff --git a/docs/fs.md b/docs/fs.md index 0bcc0313..8607a26f 100644 --- a/docs/fs.md +++ b/docs/fs.md @@ -79,19 +79,32 @@ Existing Plan9port/v9fs clients need a userspace bridge for QUIC. /log one line per editor event: new|del|rename|save ; reads park /screen rendered screen JSON; frozen per open handle /listeners the session's dial addresses -/pane/ create a directory here to open a pane; remove one to close it +/pane/new open it to make a pane; the read answers that pane's serial /pane// name body tag ctl addr dot limit data xdata sel dirty mark scroll errors event look exec, plus pty/{ctl,status,data} on terminals /os/ the host filesystem /src/ the editor's embedded sources, only when built with -Dembed-sources=true ``` -Nothing in the tree is created by list, stat, walk or read. A pane is opened -by Tcreate in `/pane` (`mkdir`) and closed by Tremove on `/pane/` (`rmdir`), -which is the only create and the only remove the tree serves. The name a -create asks for is ignored, since a pane is named by the serial the editor -gives it: the Rcreate qid names the new directory, and because `/index` is -ordered by serial its last line is the pane just made. +A pane is made by **opening** `/pane/new`, and closed by Tremove on +`/pane/` (`rmdir`), which is the only remove the tree serves; Tcreate is +refused everywhere, as it is in acme. Reading the open fid answers the serial +of the pane that open made, so `n=$(cat /pane/new)` makes one and names it in +a line. Each open makes another pane, and two reads of one fid answer the same +serial: the open acted, the read only observes. Closing the fid leaves the +pane. + +This is `/net/tcp/clone`'s mechanism, not acme's `new`, and the difference is +deliberate. acme allocates during the *walk* and lets the walk land inside the +new window, so `/dev/new/body` works in one step (acme(4): "accessing any file +in `new` creates a new window"). acme can also afford to list `new`, because a +Plan 9 directory read carries the stat of every entry and nothing walks. A +kernel or FUSE mount is not so lucky: it walks and stats each name a listing +gave it, so an allocate-on-walk name would make a pane per `ls -l`. Allocating +on open instead keeps `new` listed and `ls` honest — a stat is not an open — +at the cost of acme's one-step `new/body`. Nothing in the tree is created by +list, stat, walk or read; only that one open. Every other name in `/pane` is a +serial. `/look` and `/exec` are the editor's two clicks, one per line of a write: @@ -130,6 +143,9 @@ address expression (`#0,#5`, `/pattern/`, `2+1`); `addr` selects what `data` and `xdata` read or replace, `dot` is the editor's own selection and moving it scrolls the pane into view, and `limit` bounds a search and reads empty until it is set. Truncating a range file empties it; truncating `limit` lifts it. +`addr` belongs to the pane rather than to a client and keeps what was written +until someone writes or truncates it, so writing an address and reading it +back evaluates it, which is what acme(4) promises of its own `addr`. The three flag files `dirty`, `mark` and `scroll` read `0` or `1` and take `0` or `1`: whether the buffer differs from its file, whether a write pushes @@ -164,8 +180,8 @@ enables the option by default, so the device can serve its own source. This is a control filesystem, not a complete POSIX export. Native filenames may contain up to 255 bytes. Existing regular OS files support read, write, and truncation to zero; under `/os` protocol create, remove, rename and other -metadata changes are refused, as is every create and remove in the control -tree but the pane directories. Ownership and permissions under `/os` are +metadata changes are refused, as is every create in the control tree and every +remove in it but a pane directory's. Ownership and permissions under `/os` are synthetic. Zero-length truncation accepts the accompanying `mtime` hint sent by Linux v9fs; the hint is not stored. Standalone timestamp changes remain refused. @@ -180,9 +196,9 @@ for Unix and TCP, a poll loop for QUIC, and the 9P client for mounts); `src/fs.zig` keeps host access, mounts, resolution, find and grep. `zig build fs-test` drives real sessions using the independent Python client -in `test/ninep.py`; `zig build fs-discovery-test` checks that browsing creates -nothing, that a pane create and remove work, and that `look`, `exec`, `name`, -`sel` and `log` behave. `zig build +in `test/ninep.py`; `zig build fs-discovery-test` checks that browsing +creates nothing, that the walk to `/pane/new` and a remove work, and that +`look`, `exec`, `name`, `sel` and `log` behave. `zig build 9p-test` checks the two engine configurations' budgets (the engine's own tests are cloud9's `zig build test`); `zig build fs-bench` measures filesystem transactions in the core. diff --git a/docs/v9fs.md b/docs/v9fs.md index 8cc97ff9..1b14c21f 100644 --- a/docs/v9fs.md +++ b/docs/v9fs.md @@ -13,8 +13,17 @@ cat "$PARDES_MOUNT/index" cat "$PARDES_MOUNT/README" cat "$PARDES_MOUNT/pane/$PARDES_PANE/body" echo 'Msg hello' > "$PARDES_MOUNT/exec" +awk '{print $1}' "$PARDES_MOUNT/pane/new/ctl" ``` +Walking to `pane/new` opens a pane, and the walk lands on that pane's own +directory, so its `ctl` answers the serial to use afterwards. The kernel keeps +the name it walked rather than the one the server answers back, so +`pane/new` stays in the dentry cache as a name of its own; address the pane as +`pane/` once you have it, and expect a fresh path resolution of +`pane/new` to open another pane. It is not listed in `pane/`, so `ls -l` and +`find` over the mount create nothing. + The mount belongs to that pane's subprocess tree. Other panes and the editor core keep their original mount namespace. It works in native Linux TTY and SDL sessions, including detached sessions. A frontend attaching from elsewhere does diff --git a/features.txt b/features.txt index bee079a7..a09607ea 100644 --- a/features.txt +++ b/features.txt @@ -68,3 +68,8 @@ bias, so only a definite refusal reaps. After all of the above, do an optimization pass on startup time for the gui and tty platforms: measure first, then optimize. build.zig already has a `perf` step (gesture latency and bounded terminal stress, with --json and a --base baseline to compare against), so a startup measurement belongs there rather than in a new harness, and the baseline files are how a regression gets caught later. + +9p create semantics: doing an action on read is not how plan9 frames it. The canonical pattern is the clone file -- /net/tcp/clone -- where *opening* allocates the +object and reading the fid only tells you which one you got; acme's new/ctl is the same shape, and pardes's old /new already keyed its side effect on open. The +Tcreate that replaced it has a real wart: a pane is named by a server-assigned serial, so the create ignores the client's name and `mkdir /pane/foo` leaves you +/pane/12. Replace it with /pane/clone (open allocates, read answers the serial) and keep Tremove, which is unambiguously right. diff --git a/src/fs-help.txt b/src/fs-help.txt index 1e5d64c2..3113590a 100644 --- a/src/fs-help.txt +++ b/src/fs-help.txt @@ -8,16 +8,16 @@ exec write a line: a middle click, an editor command word or a shell line log one line per editor event (new/del/rename/save ); reads wait screen rendered screen as JSON, frozen from open to close listeners the session's dial addresses -pane/ mkdir makes a pane, rmdir closes it +pane/new open it to make a pane; the read answers that pane's serial pane// name body tag ctl addr dot limit data xdata sel dirty mark scroll - errors event look exec, and pty/ for terminals + errors event look exec, and pty/ for terminals; rmdir closes it os/ the host filesystem src/ the editor's own sources, only in a -Dembed-sources=true build Below, $m is the mount point (PARDES_MOUNT in a Tty9p shell; 9ns and 9p work too): cat $m/index which panes exist - mkdir $m/pane/x; n=$(awk 'END{print $1}' $m/index) make a pane, take its serial + n=$(cat $m/pane/new) make a pane, take its serial echo /etc/hosts:3 > $m/look; cat $m/look open a file, see the pane it went to printf 'text\n' > $m/pane/$n/body append to a pane (>| truncates first) cat $m/pane/$n/name; echo notes.txt > $m/pane/$n/name read, then rename @@ -31,8 +31,8 @@ Below, $m is the mount point (PARDES_MOUNT in a Tty9p shell; 9ns and 9p work too echo exec > $m/pane/$n/pty/ctl restart a shell; also winsize C R, sig INT Pitfalls, one each: - Only mkdir in pane/ makes a pane; ls, stat, find and every read create nothing. - Panes are named by the serial the editor gives them, not by the name mkdir asked for. + Each open of pane/new makes another pane; two reads of one fid name the same one. + Only that open creates: ls, stat, find and every other read leave the tree alone. rmdir closes a pane even when it is dirty; index and pane//dirty show the flag. addr, dot and limit read the same pair of offsets they take, so cp between them works. dirty, mark and scroll read "0" or "1" and take "0" or "1"; truncating limit lifts it. diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index c213ece5..7625f501 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -188,7 +188,7 @@ pub fn writePane(p: *Pardes, req: Req, pane: *Pane) Reply { while (it.next()) |raw| { const line = std.mem.trim(u8, raw, " \t\r"); if (line.len == 0) continue; - if (!std.mem.eql(u8, line, "get")) return Reply.fail(req.tag, E.INVAL); + if (!std.mem.eql(u8, line, "get")) return tree.failText(req.tag, E.INVAL, tree.e_bad_ctl); asked = true; } if (asked) { diff --git a/src/ninep/events.zig b/src/ninep/events.zig index bd53bcd9..d94fb54d 100644 --- a/src/ninep/events.zig +++ b/src/ninep/events.zig @@ -317,12 +317,12 @@ pub fn writeEvent(p: *Pardes, req: Req, id: usize) Reply { while (check.next()) |r| { switch (r.action) { .body_look, .tag_look, .body_exec, .tag_exec => {}, - else => return Reply.fail(req.tag, E.INVAL), + else => return tree.failText(req.tag, E.INVAL, tree.e_bad_event), } const n = if (r.action.onTag()) tag.len else body.len; - if (r.q0 > r.q1 or r.q1 > n) return Reply.fail(req.tag, E.INVAL); + if (r.q0 > r.q1 or r.q1 > n) return tree.failText(req.tag, E.INVAL, tree.e_bad_event); } - if (check.i != req.data.len) return Reply.fail(req.tag, E.INVAL); + if (check.i != req.data.len) return tree.failText(req.tag, E.INVAL, tree.e_bad_event); } var run: EventReader = .{ .data = req.data }; while (run.next()) |r| { diff --git a/src/ninep/pane.zig b/src/ninep/pane.zig index 42c0c48e..4b34cf96 100644 --- a/src/ninep/pane.zig +++ b/src/ninep/pane.zig @@ -24,6 +24,12 @@ const Node = tree.Node; /// Filesystem state a pane carries beside its editor state. pub const State = struct { + /// The range `data` and `xdata` read and write through. acme clears it + /// when the first client opens `addr` (editors/acme/xfid.c:105), which + /// suits a client that holds the fid open and leaves a shell reading back + /// `0 0` from the address it just wrote. Here it is the pane's own + /// register, cleared by truncating the file, so that `cp addr dot` and + /// `cat addr` answer what was written. addr: Range = .{}, limit: ?Range = null, readers: u16 = 0, @@ -458,7 +464,7 @@ fn writeRange(p: *Pardes, req: Req, id: usize, pane: *Pane, file: PaneFile) Repl const pf = &p.fs.panes[id]; const text = bodyOf(pane); clampAddr(pf, text.len); - const r = rangeOf(pf, text, req.data) orelse return Reply.fail(req.tag, E.INVAL); + const r = rangeOf(pf, text, req.data) orelse return tree.failText(req.tag, E.INVAL, tree.e_bad_addr); switch (file) { .addr => pf.addr = r, .limit => pf.limit = r, diff --git a/src/ninep/pty.zig b/src/ninep/pty.zig index 1b71a8d3..c657d27d 100644 --- a/src/ninep/pty.zig +++ b/src/ninep/pty.zig @@ -42,7 +42,7 @@ pub fn writeCtl(p: *Pardes, req: Req, id: usize) Reply { while (it.next()) |raw| { const line = std.mem.trim(u8, raw, " \t\r"); if (line.len == 0) continue; - if (!verb(p, id, line, apply)) return Reply.fail(req.tag, E.INVAL); + if (!verb(p, id, line, apply)) return tree.failText(req.tag, E.INVAL, tree.e_bad_ctl); } } return .{ .tag = req.tag, .written = @intCast(req.data.len) }; diff --git a/src/ninep/testing.zig b/src/ninep/testing.zig index ad1d84e4..44329eee 100644 --- a/src/ninep/testing.zig +++ b/src/ninep/testing.zig @@ -69,26 +69,14 @@ pub fn look_up(p: *Pardes, dir: u64, name: []const u8) Answer { return call(p, .{ .tag = 3, .op = .lookup, .node = dir, .data = name }); } -/// Creates a pane in /pane, as a client's mkdir does, and returns its serial. +/// Makes a pane the way a client does, by walking to /pane/new, and answers +/// the serial of the pane the walk landed on. +/// The open is what makes the pane; the handle it answers is the serial, which +/// is also what a read of that fid reports. pub fn newPane(p: *Pardes) !u32 { - const made = mkdir(p, "scratch"); - if (made.reply.status != .ok) return error.NoPane; - const target = tree.Node.target(made.reply.attr.node) orelse return error.NoPane; - return switch (target) { - .pane => |t| t.serial, - .top => error.NoPane, - }; -} - -pub fn mkdir(p: *Pardes, name: []const u8) Answer { - return call(p, .{ - .tag = 9, - .op = .open, - .node = @intFromEnum(tree.TopFile.pane), - .data = name, - .create = true, - .perm = 0x8000_0000 | 0o755, - }); + const made = call(p, .{ .tag = 8, .op = .open, .node = @intFromEnum(tree.TopFile.new) }); + if (made.reply.status != .ok or made.reply.handle == 0) return error.NoPane; + return made.reply.handle; } pub fn rmdir(p: *Pardes, node: u64) Answer { diff --git a/src/ninep/tree.zig b/src/ninep/tree.zig index 46609649..5a0c1e11 100644 --- a/src/ninep/tree.zig +++ b/src/ninep/tree.zig @@ -5,7 +5,8 @@ //! and mounts. //! //! /README /index /status /look /exec /log /screen /listeners -//! /pane/ mkdir makes a pane, rmdir closes it +//! /pane/new an open makes a pane, a read names it +//! /pane/ rmdir closes that pane //! /pane//{name,body,tag,ctl,addr,dot,limit,data,xdata,sel, //! dirty,mark,scroll,errors,event,look,exec,pty/} //! /os/... the host filesystem /src/... embedded sources (opt-in) @@ -49,14 +50,28 @@ pub const Payload = union(enum) { pub const Reply = cloud9.fs.ReplyWith(Payload); -/// Tcreate opens a pane and Tremove closes one; nothing else in the tree is -/// created or destroyed by the protocol, and wstat stays a truncation. -pub const features: cloud9.fs.Features = .{ .create = true, .remove = true }; +/// 9P answers a failure with a string, not a number (man 5 error): the errno +/// still travels, for clients that map it, but the string is what a person +/// reads. acme names its refusals the same way, and these are its spellings +/// (editors/acme/xfid.c:19) for the ones this tree shares. +pub fn failText(tag: u64, errno: u16, text: []const u8) Reply { + return .{ .tag = tag, .status = .err, .errno = errno, .ename = text }; +} + +pub const e_bad_addr = "bad address syntax"; +pub const e_bad_ctl = "ill-formed control message"; +pub const e_bad_event = "bad event syntax"; + +/// Tremove closes a pane; nothing else in the tree is created or destroyed by +/// the protocol, and wstat stays a truncation. Making a pane is an open of +/// /pane/new, which needs no feature of the engine's, so Tcreate is refused +/// everywhere, as it is in acme (editors/acme/fsys.c, fsyscreate). +pub const features: cloud9.fs.Features = .{ .remove = true }; pub fn changesPane(req: Req) bool { return switch (req.op) { .write, .setattr => true, - .open => req.create, + .open => req.node == @intFromEnum(TopFile.new), .release => req.remove, .lookup, .getattr, .read, .readdir => false, }; @@ -77,6 +92,7 @@ pub const TopFile = enum(u4) { screen, listeners, pane, + new, pub fn fileName(f: TopFile) []const u8 { return if (f == .root) "/" else @tagName(f); @@ -86,7 +102,7 @@ pub const TopFile = enum(u4) { return switch (f) { .root, .pane => 0o755, .look, .exec => 0o666, - .README, .index, .status, .log, .screen, .listeners => 0o444, + .README, .index, .status, .log, .screen, .listeners, .new => 0o444, }; } @@ -187,8 +203,21 @@ fn paneFileNamed(name: []const u8) ?PaneFile { fn topFileNamed(name: []const u8) ?TopFile { const f = std.meta.stringToEnum(TopFile, name) orelse return null; - return if (f == .root) null else f; -} + // `new` is reached in /pane, where the panes it makes are. + return if (f == .root or f == .new) null else f; +} + +/// Opening /pane/new makes a pane and reading the open fid answers its +/// serial, which is /net/tcp/clone's mechanism exactly (kernel/network/ip/ +/// devip.c, `case Qclone` in ipopen, whose Qctl read prints the number it +/// allocated). acme spells the same idea as a directory made by the walk +/// (editors/acme/fsys.c:481), which would be the nicer `new/body`, but a +/// Plan 9 directory read carries every entry's stat and a kernel or FUSE +/// mount instead walks each name it listed: allocating on the walk would +/// make a pane every time someone ran `ls -l`. A stat is not an open, so +/// this file can be listed. Panes are named by their serial, so the name +/// can never collide with one. +pub const new_pane = "new"; fn serialNamed(name: []const u8) ?u32 { if (name.len == 0 or name.len > 10) return null; @@ -218,7 +247,12 @@ pub fn resolveSelf(p: *Pardes, path: []const u8) ?u64 { if (top == .pane or parts.next() != null) return null; return @intFromEnum(top); } - const serial = serialNamed(parts.next() orelse return @intFromEnum(TopFile.pane)) orelse return null; + const next = parts.next() orelse return @intFromEnum(TopFile.pane); + // `new` is served on the wire but deliberately unreachable from an editor + // path: this resolves Look targets and hover previews, and a preview that + // opened `new` to see what was there would make a pane per hover. + if (std.mem.eql(u8, next, new_pane)) return null; + const serial = serialNamed(next) orelse return null; const id = p.paneBySerial(serial) orelse return null; const file = paneFileNamed(parts.next() orelse return Node.of(serial, .dir)) orelse return null; if (file.inPty() and !p.panes[id].?.isTerminal()) return null; @@ -258,9 +292,9 @@ pub fn stagedReply(p: *Pardes, req: Req) Reply { pub fn handle(p: *Pardes, req: Req) Reply { const host = req.node == fs.os_root or req.node & fs.os_node != 0; const archive = req.node & sources.archive_node != 0; - // Only /pane is created in and removed from. The host tree and the - // embedded sources say so, rather than quietly doing nothing. - if ((host or archive) and (req.create or req.remove)) return Reply.fail(req.tag, E.PERM); + // Only a pane directory is removed. The host tree and the embedded + // sources say so, rather than quietly doing nothing. + if ((host or archive) and req.remove) return Reply.fail(req.tag, E.PERM); if (host) return fs.osHandle(p, req); if (archive) return sources.handle(p, req); const target = Node.target(req.node) orelse return Reply.fail(req.tag, E.NOENT); @@ -302,6 +336,10 @@ fn attrOf(p: *Pardes, target: Target) ?Reply.Attr { .size = pane.fileSize(p, id, t.file), .mtime = pane.mtimeOf(p, pn), .version = pane.versionOf(pn, t.file), + // A write to body or tag appends whatever its offset says, + // which is why acme's dirtab marks both DMAPPEND + // (editors/acme/fsys.c:78). + .append = t.file == .body or t.file == .tag, }; }, } @@ -314,8 +352,9 @@ fn attrReply(p: *Pardes, tag: u64, target: Target) Reply { fn topSize(p: *Pardes, f: TopFile) u64 { return switch (f) { - // ponytail: /screen has no length until an open renders its frame. - .root, .pane, .screen => 0, + // ponytail: /screen has no length until an open renders its frame, + // and /pane/new none until an open has a pane to name. + .root, .pane, .screen, .new => 0, .index => pane.indexLen(p), .README => fs.help.len, .status => ctl.statusLen(p), @@ -348,6 +387,7 @@ fn lookup(p: *Pardes, req: Req, target: Target) Reply { return Reply.fail(req.tag, E.NOENT); }, .pane => pane: { + if (std.mem.eql(u8, name, new_pane)) break :pane @intFromEnum(TopFile.new); const serial = serialNamed(name) orelse return Reply.fail(req.tag, E.NOENT); break :pane Node.of(serial, .dir); }, @@ -396,6 +436,7 @@ fn readdir(p: *Pardes, req: Req, target: Target) Reply { sources.stage(p, out, "", &skip); }, .pane => { + if (skip > 0) skip -= 1 else stageDirent(out, p.gpa, @intFromEnum(TopFile.new), false, TopFile.new.fileName()); var last: u32 = 0; while (nextSerialAfter(p, last)) |serial| { last = serial; @@ -426,27 +467,19 @@ fn readdir(p: *Pardes, req: Req, target: Target) Reply { return .{ .tag = req.tag, .payload = .{ .staged = @intCast(out.items.len) } }; } -/// Tcreate in /pane opens a pane, the way mkdir opens a directory. The name -/// asked for is ignored: a pane is named by the serial the editor gives it, -/// which the reply carries back and /index lists last. -fn create(p: *Pardes, req: Req, target: Target) Reply { - switch (target) { - .top => |f| if (f != .pane) return Reply.fail(req.tag, E.PERM), - .pane => return Reply.fail(req.tag, E.PERM), - } - if (req.perm & cloud9.dmdir == 0) return Reply.fail(req.tag, E.PERM); - const slot = p.freeSlot() orelse return Reply.fail(req.tag, E.NFILE); +/// Opens a pane for an open of /pane/new, whose serial becomes the handle: +/// the fid remembers which pane it made, so reading it twice answers the +/// same one and closing it leaves the pane alone. +fn makePane(p: *Pardes) ?u32 { + const slot = p.freeSlot() orelse return null; p.newScratchBelow(p.active); - const made = p.panes[slot] orelse return Reply.fail(req.tag, E.NFILE); - const attr = attrOf(p, .{ .pane = .{ .serial = made.serial, .file = .dir } }) orelse - return Reply.fail(req.tag, E.NFILE); - return .{ .tag = req.tag, .handle = 1, .attr = attr }; + return (p.panes[slot] orelse return null).serial; } fn open(p: *Pardes, req: Req, target: Target) Reply { - if (req.create) return create(p, req, target); switch (target) { .top => |f| switch (f) { + .new => return .{ .tag = req.tag, .handle = makePane(p) orelse return Reply.fail(req.tag, E.NFILE) }, .screen => return screen.openSnapshot(p, req, true), .log => p.fs.log_readers +|= 1, else => {}, @@ -458,7 +491,6 @@ fn open(p: *Pardes, req: Req, target: Target) Reply { if (t.file.inPty() and !pn.isTerminal()) return Reply.fail(req.tag, E.NOENT); switch (t.file) { .body => if (pn.isTerminal()) return screen.openSnapshot(p, req, false), - .addr => pf.addr = .{}, .event => { pf.readers +|= 1; p.fs.listeners +|= 1; @@ -552,6 +584,14 @@ fn read(p: *Pardes, req: Req, target: Target) Reply { .log => events.readQueue(p, req, &p.fs.log), .screen => screen.readSnapshot(p, req, null), .listeners => screen.readListeners(p, req), + // The serial the open handed this fid, so that two reads of one + // fid answer the same pane: the read observes, the open acted. + .new => serial: { + if (req.handle == 0) break :serial Reply.fail(req.tag, E.IO); + p.fs.stage(p.gpa).print(p.gpa, "{d}\n", .{req.handle}) catch + break :serial Reply.fail(req.tag, E.NOMEM); + break :serial stagedReply(p, req); + }, .root, .pane => Reply.fail(req.tag, E.PERM), }, .pane => |t| { @@ -655,7 +695,9 @@ test "filesystem inspection preserves pending and displayed Look hover" { test "filesystem pane creation and truncation cancel Look hover" { const requests = [_]Req{ - .{ .tag = 2, .op = .open, .node = @intFromEnum(TopFile.pane), .data = "x", .create = true, .perm = cloud9.dmdir | 0o755 }, + // Opening `new` is what makes a pane now; walking to it makes none, + // and so must leave a pending hover alone. + .{ .tag = 2, .op = .open, .node = @intFromEnum(TopFile.new) }, .{ .tag = 3, .op = .setattr, .node = 0, .truncate = true }, }; for (requests) |request| { @@ -719,6 +761,14 @@ test "readdir lists the root and a pane directory without creating anything" { const own = th.nameAt(listed, try std.fmt.bufPrint(&idname, "{d}", .{serial})).?; try testing.expectEqual(Node.of(serial, .dir), own.node); try testing.expect(own.dir); + // `new` is listed, so `ls` shows it. Walking and stat-ing it allocates + // nothing — only an open does — which is what keeps `ls -l` and any other + // client that stats every name a listing gave it inert. + const shown = th.nameAt(listed, new_pane).?; + try testing.expect(!shown.dir); + try testing.expectEqual(Status.ok, look_up(p, @intFromEnum(TopFile.pane), new_pane).reply.status); + try testing.expectEqual(Status.ok, call(p, .{ .tag = 1, .op = .getattr, .node = @intFromEnum(TopFile.new) }).reply.status); + try testing.expectEqual(before, p.next_serial); const dir = rdir(p, Node.of(serial, .dir), 0); const files = th.dirents(dir.bytes, &buf); @@ -780,38 +830,58 @@ test "lookup resolves top files, pane serials and pane files" { try testing.expectEqual(E.NOTDIR, look_up(p, Node.of(serial, .body), "x").errno()); } -test "creating in the pane directory opens a pane and removing one closes it" { +test "opening /pane/new makes a pane and removing one closes it" { const gpa = testing.allocator; const p = try withFile(gpa, "first\n"); defer p.deinit(); const before = p.next_serial; const panes_dir = @intFromEnum(TopFile.pane); - // Browsing /pane creates nothing; only a create does. + // Browsing /pane creates nothing, and neither does walking or stat-ing + // `new` itself: only an open does. That is what lets `new` be listed at + // all, since `ls -l` stats every name a listing handed it. try testing.expectEqual(Status.ok, rdir(p, panes_dir, 0).reply.status); + try testing.expectEqual(Status.ok, look_up(p, panes_dir, new_pane).reply.status); + try testing.expectEqual(Status.ok, call(p, .{ .tag = 1, .op = .getattr, .node = @intFromEnum(TopFile.new) }).reply.status); try testing.expectEqual(before, p.next_serial); - const made = th.mkdir(p, "scratch"); + // The open makes the pane and hands back its serial; the read only + // observes, so two reads of one fid answer the same pane. + const made = call(p, .{ .tag = 2, .op = .open, .node = @intFromEnum(TopFile.new) }); try testing.expectEqual(Status.ok, made.reply.status); try testing.expectEqual(before + 1, p.next_serial); const serial = before + 1; - try testing.expectEqual(Node.of(serial, .dir), made.reply.attr.node); - try testing.expect(made.reply.attr.dir); + try testing.expectEqual(serial, made.reply.handle); var expected: [16]u8 = undefined; - try testing.expectEqualStrings(try std.fmt.bufPrint(&expected, "{d}", .{serial}), made.reply.attr.name); + const want = try std.fmt.bufPrint(&expected, "{d}\n", .{serial}); + for (0..2) |_| { + const answer = call(p, .{ .tag = 3, .op = .read, .node = @intFromEnum(TopFile.new), .handle = made.reply.handle, .size = 64 }); + try testing.expectEqualStrings(want, answer.bytes); + } const id = p.paneBySerial(serial).?; try testing.expectEqualStrings("", p.panes[id].?.file.?.content); _ = wr(p, Node.of(serial, .body), "hi"); - const second = th.mkdir(p, "another"); + + // A second open is a second pane, and releasing a clone fid leaves the + // pane it made standing. + const second = call(p, .{ .tag = 4, .op = .open, .node = @intFromEnum(TopFile.new) }); try testing.expectEqual(Status.ok, second.reply.status); - try testing.expect(second.reply.attr.node != made.reply.attr.node); + try testing.expect(second.reply.handle != made.reply.handle); + _ = call(p, .{ .tag = 5, .op = .release, .node = @intFromEnum(TopFile.new), .handle = made.reply.handle, .opened = true }); + try testing.expect(p.paneBySerial(serial) != null); try testing.expectEqualStrings("hi", p.panes[id].?.file.?.content); - // A plain file, and a create anywhere else, are refused. - try testing.expectEqual(E.PERM, call(p, .{ .tag = 1, .op = .open, .node = panes_dir, .data = "f", .create = true, .perm = 0o666 }).errno()); - try testing.expectEqual(E.PERM, call(p, .{ .tag = 1, .op = .open, .node = root, .data = "d", .create = true, .perm = cloud9.dmdir | 0o755 }).errno()); - try testing.expectEqual(E.PERM, call(p, .{ .tag = 1, .op = .open, .node = Node.of(serial, .dir), .data = "d", .create = true, .perm = cloud9.dmdir | 0o755 }).errno()); + // The tree declares no create, so the engine refuses every Tcreate + // (cloud9 fs.zig: `.tcreate => if (features.create) ... else fail(e_perm)`), + // and `new` is the only name in /pane that is not a serial. + try testing.expect(!features.create); + try testing.expectEqual(E.NOENT, look_up(p, panes_dir, "scratch").errno()); + try testing.expectEqual(E.NOENT, look_up(p, root, new_pane).errno()); + // ...and it is listed, because the user asked to see it in `ls`. + var listing: [32]th.Dirent = undefined; + const shown = rdir(p, panes_dir, 0); + try testing.expect(th.nameAt(th.dirents(shown.bytes, &listing), new_pane) != null); // Tremove closes the pane it names, and nothing else in the tree. try testing.expectEqual(E.PERM, th.rmdir(p, Node.of(serial, .body)).errno()); @@ -858,4 +928,10 @@ test "editor paths resolve to the same nodes the wire serves" { try testing.expect(resolveSelf(p, "status/ctl") == null); try testing.expect(resolveSelf(p, "cons") == null); try testing.expect(resolveSelf(p, "pane/0") == null); + // The editor resolves its own paths to inspect them, so `new` names + // nothing here; only a client's walk makes a pane. + const before = p.next_serial; + try testing.expect(resolveSelf(p, "pane/new") == null); + try testing.expect(resolveSelf(p, "pane/new/body") == null); + try testing.expectEqual(before, p.next_serial); } diff --git a/src/tutor.txt b/src/tutor.txt index adf4ae3a..ab73be33 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -396,7 +396,7 @@ typed /pane//body /index - /pane mkdir here makes a pane, rmdir closes it + /pane/new open it to make a pane; rmdir closes one /look /exec `FILE:12` and `Save`, as the mouse does A terminal pane also has `pty/`: diff --git a/test/fs.py b/test/fs.py index c3ffa440..b20dc8ee 100644 --- a/test/fs.py +++ b/test/fs.py @@ -106,9 +106,8 @@ def newest(client): def new_pane(client, contents): - """mkdir in /pane; the editor names the directory after the new serial.""" - client.mkdir('/pane', 'scratch') - serial = newest(client) + """An open of /pane/new makes a pane; the read names it.""" + serial = int(client.read('/pane/new')) if contents: client.write(f'/pane/{serial}/body', contents) return serial @@ -151,7 +150,7 @@ def discovery(binary, embedded=False): assert ('src' in top) == embedded, (top, embedded) before = client.read('/index') guide = client.read('/README') - assert guide.count(b'\n') <= 45 and b'Msg hello' in guide and b'mkdir' in guide, guide + assert guide.count(b'\n') <= 45 and b'Msg hello' in guide and b'pane/new' in guide, guide assert client.stat('/README')['length'] == len(guide) # ls/stat/find over the whole tree, without opening, creates nothing. seen = walk_tree(client) @@ -183,17 +182,20 @@ def discovery(binary, embedded=False): status = dict(line.split(maxsplit=1) for line in client.read('/status').decode().splitlines()) assert int(status['pid']) > 0 and status['version'] and int(status['panes']) >= 1, status assert client.read('/exec') == b'' - # mkdir makes a pane, named by the serial the editor gives it. + # An open of /pane/new makes a pane and the read names it; each + # open makes another. A stat makes none, which is why new can be + # listed at all: ls -l stats every name a listing gave it. log = client.open('/log') - client.mkdir('/pane', 'one') - first = newest(client) - client.mkdir('/pane', 'two') - second = newest(client) + first = int(client.read('/pane/new')) + assert first == newest(client) + second = int(client.read('/pane/new')) assert first != second and first != fixture, (first, second) - assert 'one' not in client.list('/pane') and 'two' not in client.list('/pane') + assert 'new' in client.list('/pane'), 'new should be visible to ls' + client.stat('/pane/new') + assert newest(client) == second, 'a stat of new made a pane' assert client.read_fid(log) == f'new {first} {root}/+New\n'.encode() assert client.read_fid(log) == f'new {second} {root}/+New\n'.encode() - assert set(client.list('/pane')) == {str(fixture), str(first), str(second)} + assert set(client.list('/pane')) == {'new', str(fixture), str(first), str(second)} client.write(f'/pane/{first}/body', b'first pane', truncate=True) assert client.read(f'/pane/{first}/body') == b'first pane' assert client.read(f'/pane/{second}/body') == b'' @@ -247,6 +249,7 @@ def discovery(binary, embedded=False): refused = [lambda: client.write('/exec', b'Msg a\x00b'), lambda: client.write('/status', b'anything\n'), lambda: client.mkdir('/', 'x'), + lambda: client.mkdir('/pane', 'one'), lambda: client.create('/pane', 'plain-file'), lambda: client.remove('/pane/1/body'), lambda: client.remove('/index')] @@ -262,7 +265,7 @@ def discovery(binary, embedded=False): assert client.read('/src/pardes.zig').startswith(b'const std') assert client.stat('/src/pardes.zig')['mode'] == 0o444 assert b'pub const Pardes' in client.read(f'/pane/{look(client, "/virtual/src/pardes.zig")}/body') - print('9P discovery: listing/stat/find are inert; create, remove, look, exec, name, sel and log behave') + print('9P discovery: listing/stat/find are inert; new, remove, look, exec, name, sel and log behave') def test(binary, quic=False): diff --git a/test/v9fs.py b/test/v9fs.py index fa35388f..30efe9fb 100644 --- a/test/v9fs.py +++ b/test/v9fs.py @@ -45,6 +45,7 @@ def worker(mountpoint, socket, uid, gid, original_namespace): tree = mountpoint assert {'os', 'index', 'pane', 'status', 'look', 'exec', 'log', 'screen', 'README'} <= set(os.listdir(tree)) assert 'self' not in os.listdir(tree) and 'new' not in os.listdir(tree) + assert 'new' not in os.listdir(tree / 'pane'), 'a listing would make a pane per stat' # A direct connection provides independent evidence for VFS reads/writes. with Client(socket) as client: assert (tree / 'index').read_bytes() == client.read('/index') @@ -55,26 +56,22 @@ def worker(mountpoint, socket, uid, gid, original_namespace): subprocess.run(['find', str(tree / 'pane'), '-ls'], check=True, capture_output=True, timeout=5) assert (tree / 'README').read_bytes() == client.read('/README') assert client.read('/index') == before, 'browsing created panes' - # mkdir through the kernel mount opens a pane. The editor names it - # after its serial, not after the name asked for, so the kernel's own - # revalidation of that name may fail; the index is the answer. + # Opening pane/new makes a pane and the read names it, so no trip + # through the index. Whether a repeated path reaches the server at all + # is the kernel's dentry cache's business, so the second pane comes + # over the wire, where the open is exact. def serials(): return {int(row.split()[0]) for row in (tree / 'index').read_bytes().splitlines()} - def mkpane(name): + def mkpane(): known = serials() - try: - (tree / 'pane' / name).mkdir() - except FileNotFoundError: - pass - made = serials() - known - assert len(made) == 1, (name, made) - return made.pop() - - serial = mkpane('kernel-made') - another = mkpane('kernel-made-again') - assert serial != another, 'a second mkdir reused a pane' - assert not (tree / 'pane' / 'kernel-made').exists() + made = int((tree / 'pane' / 'new').read_bytes()) + assert made not in known, 'the open of new made no pane' + return made + + serial = mkpane() + another = int(client.read('/pane/new')) + assert serial != another, 'a second open of new reused a pane' (tree / 'pane' / str(another)).rmdir() assert another not in serials() pane = tree / 'pane' / str(serial) -- cgit v1.3 From 3f6ad1bc30570348297ae4aa6d1fd676de229a09 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 24 Sep 2026 10:06:08 -0300 Subject: Ask from the keyboard which neighbour a closed pane's rows go to Del takes a side: `Del k` gives the closed pane's rows to the nearest expanded pane above it, `Del j` to the one below, each falling back to the other side when it has none. DelAbove and DelBelow are those two lines, with no path of their own under SPC. A bare Del started from a key -- SPC d, Enter on the tag word, a row run from an output buffer -- on a pane with expanded panes both above and below asks instead of guessing. The question is a prompt like Save's or a search's (Pane.Prompt.del_side), so it is painted on the pane's notice band by the same path, and the next key answers it before any mode sees it: k or Up, j or Down, anything else keeps the pane, as does a click. Only a key press sets Pardes.can_ask, so a click, a 9P ctl or event write, a startup line, a restore and a shell exiting all close the pane at once, the rows going where layout.absorbVWeight has always sent them. A collapsed pane is not asked about (it has only a tag row to give), and collapsed neighbours are passed over (layout.expandedNeighbor, which Collapse now uses too). removePane and absorbVWeight take the recipient; every other caller passes null. Three scripts that closed a middle pane with SPC d answer k, which is where the rows went before, and their goldens are unchanged. delask.snap covers the question, Esc, j, a clicked DelBelow and a clicked Del. Co-Authored-By: Claude Opus 5.5 (1M context) --- docs/tags.md | 11 ++++ src/CHANGELOG.md | 8 +++ src/builtins.zig | 43 ++++++++++++- src/config.zig | 8 +++ src/gui/gui.zig | 2 +- src/layout.zig | 29 +++++---- src/ninep/screen.zig | 2 +- src/ninep/tree.zig | 2 +- src/panes.zig | 6 +- src/pardes.zig | 136 +++++++++++++++++++++++++++++++++++---- src/tutor.txt | 5 +- test/perf.zig | 2 +- test/snapshots/builtins.snap | 2 + test/snapshots/delask.golden | 56 ++++++++++++++++ test/snapshots/delask.snap | 71 ++++++++++++++++++++ test/snapshots/layout-close.snap | 4 +- test/snapshots/leader.snap | 2 + test/snapshots/lspdebug.snap | 3 + 18 files changed, 359 insertions(+), 33 deletions(-) create mode 100644 test/snapshots/delask.golden create mode 100644 test/snapshots/delask.snap (limited to 'src/tutor.txt') diff --git a/docs/tags.md b/docs/tags.md index 8b1d3bf6..f299c859 100644 --- a/docs/tags.md +++ b/docs/tags.md @@ -33,6 +33,17 @@ Its text and terminal process are kept; the command stays available in the visible tag. Every default pane tag includes `Collapse`, including file, terminal, image, and PDF panes. +`Del` closes a pane and gives its rows to one neighbor; the rest of the +column keeps its heights. `Del k` (or `DelAbove`) gives them to the nearest +expanded pane above, `Del j` (or `DelBelow`) to the one below, each falling +back to the other side. Bare `Del` from the keyboard (`SPC d`, or Enter on +the word) on a pane with expanded panes both above and below asks on the +pane's notice band: `k` or Up gives the rows above, `j` or Down below, and +any other key keeps the pane. A click, a 9P write or a startup line never +asks; there bare `Del` gives the rows to the nearest document above, as it +always has. A collapsed pane is never asked about, and collapsed neighbors +are passed over: they only keep a weight for later. + Left-click a tag to place its caret; drag to select text, then type to replace it. Arrow keys, Home, End, Backspace and Delete edit the line. Tags reveal the caret horizontally when text is wider than their column. diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 0083f97f..f8451baf 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -2,6 +2,14 @@ ## 0.0.3 +- `Del` takes a side. `Del k` and `DelAbove` give the closed pane's rows to + the expanded pane above it, `Del j` and `DelBelow` to the one below. A bare + `Del` from the keyboard on a pane with panes both above and below asks on + its notice band, and one key answers; a click, a 9P write or a script + still closes it at once, rows going up as before. +- A prompt (Save's path, a search, a pipe) is drawn in the tagline's pitch + like the other notices instead of spread one glyph to a body cell, and in + the SDL shell every notice chip is ruled off from the body like a tagline. - Answer 9P on the connection's task instead of the editor's loop. The core is single-threaded and `pardes.turn` says whose turn it is with it: the editor's by default, given up while it waits for input and while a step of diff --git a/src/builtins.zig b/src/builtins.zig index 30a5a50f..146789b0 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -460,9 +460,38 @@ pub const Newcol = struct { } }; +/// Close the pane. `Del k` gives its rows to the open pane above it and +/// `Del j` to the one below, each falling back to the other side. pub const Del = struct { + pub const takes_arg = true; pub fn run(c: Ctx) void { - c.p.removePane(c.id) catch |err| c.p.reportError(c.id, "close", err); + const side = std.mem.trim(u8, c.arg orelse "", " \t\r\n"); + const at = layout.findPane(c.p, c.id); + const above = if (at) |f| layout.expandedNeighbor(c.p, f.col, f.idx, .above) else null; + const below = if (at) |f| layout.expandedNeighbor(c.p, f.col, f.idx, .below) else null; + const to: ?usize = if (std.mem.eql(u8, side, "k")) + above orelse below + else if (std.mem.eql(u8, side, "j")) + below orelse above + else if (side.len > 0) + return c.p.reportError(c.id, "Del k|j", error.InvalidArgument) + else + null; + // Someone at the keyboard with a real choice to make is asked, on the + // pane's notice band; a click, a 9P write or a script closes it the + // way it always has. A folded pane gives back only its tag row, and a + // pane with a prompt open closes as it did rather than trade the + // prompt for a question. + if (side.len == 0 and c.p.can_ask and above != null and below != null and + !c.pane.collapsed and c.pane.prompt == .none) + { + c.pane.prompt = .del_side; + c.p.active = c.id; + // The question says Del already. + if (c.pane.msg_announcement) c.pane.msg_len = 0; + return; + } + c.p.removePane(c.id, to) catch |err| c.p.reportError(c.id, "close", err); } }; @@ -500,6 +529,18 @@ pub const Delcol = struct { } }; +pub const DelAbove = struct { + pub fn run(c: Ctx) void { + Del.run(.{ .p = c.p, .pane = c.pane, .id = c.id, .txt = c.txt, .arg = "k" }); + } +}; + +pub const DelBelow = struct { + pub fn run(c: Ctx) void { + Del.run(.{ .p = c.p, .pane = c.pane, .id = c.id, .txt = c.txt, .arg = "j" }); + } +}; + /// A shell in the calling pane's directory, raw from the first frame. On every /// pane's tagline: the fast path from wherever you are to a prompt there. pub const Tty = struct { diff --git a/src/config.zig b/src/config.zig index 527c3752..4e46b1d8 100644 --- a/src/config.zig +++ b/src/config.zig @@ -42,6 +42,8 @@ pub const leader_path = paths: { .Supertypes = "lt", .Subtypes = "lT", .Del = "d", + .DelAbove = null, + .DelBelow = null, .Filter = null, .Mode = null, .Togglettymode = null, @@ -269,6 +271,12 @@ pub const pipe_marker_insert = " !"; pub const pipe_marker_append = " !+"; pub const search_submit: []const Chord = &.{.{ .cp = Key.enter }}; +// Del from the keyboard on a pane with open panes both above and below it +// asks which of them takes its rows. One key answers; any other keeps the pane. +pub const del_question = "Del: give space to k above j below"; +pub const del_above: []const Chord = &.{ .{ .cp = 'k' }, .{ .cp = Key.up } }; +pub const del_below: []const Chord = &.{ .{ .cp = 'j' }, .{ .cp = Key.down } }; + pub const wheel_rows: i32 = 1; pub const wheel_cols: i32 = 4; diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 92ded62c..acb8d729 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1387,7 +1387,7 @@ test "GUI PTY deletion joins an idle reader and retains only its owned child for const child = try host_io.forkShell(null, 0, &rcs, "/bin/sh", "", 24, 80, null); ptys[0] = .{ .fd = child.file.handle, .pid = child.pid, .serial = core.panes[0].?.serial }; try spawnReader(gpa, &ptys[0].?, 0, 1, &queue); - try core.removePane(0); + try core.removePane(0, null); shell.reconcilePtys(); try std.testing.expect(queue.readers[0] == null); try std.testing.expectEqual(@as(usize, 0), queue.waiting); diff --git a/src/layout.zig b/src/layout.zig index 3637f30e..116a64b8 100644 --- a/src/layout.zig +++ b/src/layout.zig @@ -995,7 +995,7 @@ pub fn splitColumn(p: *Pardes, source_id: usize, id: usize, before: bool) bool { if (needs_rebase) old_weight *= 2; if (id == source_id) { if (p.col_n[source_col] <= 1) return false; - absorbVWeight(p, id); + absorbVWeight(p, id, null); removePane(p, id); } else if (findPane(p, id) != null) return false; @@ -1033,13 +1033,16 @@ pub fn snapColWeights(p: *Pardes, c: usize) void { } } -pub fn absorbVWeight(p: *Pardes, id: usize) void { +/// Hand a closing pane's rows to `to`. With none named they go up: past any +/// results listing to the nearest pane above that is not one, or to the +/// pane below when the closing one is first in its column. +pub fn absorbVWeight(p: *Pardes, id: usize, to: ?usize) void { const f = findPane(p, id) orelse return; if (p.col_n[f.col] <= 1) return; snapColWeights(p, f.col); - var sib = if (f.idx > 0) p.col_panes[f.col][f.idx - 1] else p.col_panes[f.col][f.idx + 1]; + var sib = to orelse if (f.idx > 0) p.col_panes[f.col][f.idx - 1] else p.col_panes[f.col][f.idx + 1]; var k = f.idx; - while (k > 0) : (k -= 1) { + while (to == null and k > 0) : (k -= 1) { sib = p.col_panes[f.col][k - 1]; if (p.panes[sib]) |pp| if (if (pp.file) |ff| panes.Output.fileTraits(ff.output).doc else true) break; } @@ -1119,7 +1122,7 @@ pub fn toggleCollapse(p: *Pardes, id: usize) void { // Convert only visible panes to row weights. The toggle then changes one // pair, rather than letting the column redistribute the released space. snapColWeights(p, at.col); - const neighbor = collapseNeighbor(p, at.col, at.idx); + const neighbor = expandedNeighbor(p, at.col, at.idx, .above) orelse expandedNeighbor(p, at.col, at.idx, .below); if (was_collapsed) { if (neighbor) |other| { const wanted: u16 = @intFromFloat(@min(@as(f32, @floatFromInt(std.math.maxInt(u16))), @max(1, @round(remembered_height)))); @@ -1139,15 +1142,17 @@ pub fn toggleCollapse(p: *Pardes, id: usize) void { compute(p); } -fn collapseNeighbor(p: *Pardes, col: usize, index: usize) ?usize { - var above = index; - while (above > 0) { - above -= 1; - const id = p.col_panes[col][above]; +/// The nearest pane on one side of `index` in its column that is not folded +/// to its tag: the one Collapse lends rows to and Del k / Del j gives them +/// to. A folded pane only keeps its weight for later, so rows handed to it +/// would spread over the whole column instead. +pub fn expandedNeighbor(p: *const Pardes, col: usize, index: usize, side: enum { above, below }) ?usize { + var k = index; + while (if (side == .above) k > 0 else k + 1 < p.col_n[col]) { + k = if (side == .above) k - 1 else k + 1; + const id = p.col_panes[col][k]; if (p.panes[id]) |pane| if (!pane.collapsed) return id; } - for (p.col_panes[col][index + 1 .. p.col_n[col]]) |id| - if (p.panes[id]) |pane| if (!pane.collapsed) return id; return null; } diff --git a/src/ninep/screen.zig b/src/ninep/screen.zig index 2684aa41..60fb5951 100644 --- a/src/ninep/screen.zig +++ b/src/ninep/screen.zig @@ -237,7 +237,7 @@ test "terminal body snapshots are lazy bounded and released after the pane close try testing.expectEqual(E.INVAL, call(p, .{ .tag = 6, .op = .read, .node = screen_node, .handle = handles[0], .size = 32 }).errno()); _ = call(p, .{ .tag = 7, .op = .release, .node = screen_node, .handle = handles[0] }); try testing.expectEqual(node, p.fs.snapshots[handles[0] - 1].node); - try p.removePane(0); + try p.removePane(0, null); for (handles) |opened_handle| _ = call(p, .{ .tag = 8, .op = .release, .node = node, .handle = opened_handle }); for (p.fs.snapshots) |snapshot| { try testing.expectEqual(@as(u64, 0), snapshot.node); diff --git a/src/ninep/tree.zig b/src/ninep/tree.zig index b13b1472..aca8d109 100644 --- a/src/ninep/tree.zig +++ b/src/ninep/tree.zig @@ -529,7 +529,7 @@ fn remove(p: *Pardes, req: Req) Reply { }; if (t.file != .dir) return Reply.fail(req.tag, E.PERM); const id = p.paneBySerial(t.serial) orelse return Reply.fail(req.tag, E.NOENT); - p.removePane(id) catch return Reply.fail(req.tag, E.IO); + p.removePane(id, null) catch return Reply.fail(req.tag, E.IO); return .{ .tag = req.tag }; } diff --git a/src/panes.zig b/src/panes.zig index 0b565676..0b4204aa 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -94,6 +94,9 @@ pub const Pane = struct { pipe: struct { at: u16, how: modal.Normal.PipeBehavior }, /// Save on a scratch buffer or a terminal: the tail is a path to write to. save: u16, + /// Del from the keyboard with open panes both above and below: which + /// one takes the rows. Nothing is typed; one key answers. + del_side, }; pub const Cwd = union(enum) { none, inherited: *Pane, owned: []u8 }; @@ -338,7 +341,7 @@ pub const Pane = struct { } pub fn promptAt(p: *const Pane) ?u16 { return switch (p.prompt) { - .none => null, + .none, .del_side => null, .search, .save => |at| at, .pipe => |pipe| pipe.at, }; @@ -347,6 +350,7 @@ pub const Pane = struct { /// What an open prompt shows on its notice band: the one answer every /// painter of the band reads. pub fn promptText(p: *const Pane) ?[]const u8 { + if (p.prompt == .del_side) return config.del_question; const at = p.promptAt() orelse return null; return p.tagSlice()[@min(at, p.tag_tail_len)..]; } diff --git a/src/pardes.zig b/src/pardes.zig index 29f937d7..42729d50 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -2104,7 +2104,7 @@ test "New opens an empty scratch below the caller, inheriting its directory" { try std.testing.expectEqualStrings("/tmp/pardes-scratch-dir", Pardes.paneDir(np)); p.setCwd(source, "/tmp/pardes-moved"); try std.testing.expectEqualStrings("/tmp/pardes-moved", Pardes.paneDir(np)); - try p.removePane(source); + try p.removePane(source, null); p.sync(); try std.testing.expect(np.cwd == .owned); try std.testing.expectEqualStrings("/tmp/pardes-moved", Pardes.paneDir(np)); @@ -2176,7 +2176,7 @@ test "owned cwd close copies are transactional across inherited chains" { const active = p.active; const live_bytes = allocator.allocated_bytes - allocator.freed_bytes; allocator.fail_index = allocator.alloc_index + failed_copy; - try std.testing.expectError(error.OutOfMemory, p.removePane(0)); + try std.testing.expectError(error.OutOfMemory, p.removePane(0, null)); try std.testing.expectEqual(parent, p.panes[0].?); try std.testing.expectEqual(parent, first.cwd.inherited); try std.testing.expectEqual(parent, second.cwd.inherited); @@ -2189,12 +2189,12 @@ test "owned cwd close copies are transactional across inherited chains" { try std.testing.expectEqual(live_bytes, allocator.allocated_bytes - allocator.freed_bytes); allocator.fail_index = std.math.maxInt(usize); - try p.removePane(0); + try p.removePane(0, null); try std.testing.expect(p.panes[0] == null); try std.testing.expect(first.cwd == .owned and second.cwd == .owned); try std.testing.expectEqual(first, grandchild.cwd.inherited); try std.testing.expect(first.cwdSlice().ptr != second.cwdSlice().ptr); - try p.removePane(first_id); + try p.removePane(first_id, null); try std.testing.expect(grandchild.cwd == .owned); p.sync(); p.sync(); @@ -5539,7 +5539,7 @@ test "vertical close samples only a canonical baseline containing that pane" { _ = frame.reset(.retain_capacity); const opening = try p.render(frame.allocator()); p.acknowledgePanelPresentation(opening.panelTracks()); - try p.removePane(1); + try p.removePane(1, null); p.sync(); try std.testing.expectEqual(@as(usize, 0), p.presentation.closing_len); @@ -5565,7 +5565,7 @@ test "vertical close samples only a canonical baseline containing that pane" { try std.testing.expectEqual(@as(usize, 0), canonical.panelTracks().len); p.acknowledgePanelPresentation(canonical.panelTracks()); const serial = p.panes[1].?.serial; - try p.removePane(1); + try p.removePane(1, null); p.sync(); try std.testing.expectEqual(@as(usize, 1), p.presentation.closing_len); @@ -6387,6 +6387,10 @@ pub const Pardes = struct { chord_arg: ?[]u8 = null, /// how many `execute` calls are on the stack — see max_exec_depth exec_depth: u8 = 0, + /// A key press is being handled: someone is at the keyboard to answer, + /// so a builtin may ask rather than guess. Nothing else sets it -- not + /// a click, a 9P write, a startup line or a pane's shell exiting. + can_ask: bool = false, lsp_seq: u32 = 0, lsp_wait: ?struct { @@ -7794,14 +7798,18 @@ pub const Pardes = struct { ctlfs.events.notePtyOutput(p, o.pane, o.bytes); panes.Terminal.feedOutput(p, pane, o.bytes); }, - .eof => |e| p.removePane(e.pane) catch |err| { + .eof => |e| p.removePane(e.pane, null) catch |err| { if (p.panes[e.pane]) |pane| pane.mode = .normal; p.reportError(e.pane, "terminal exited; Del retries close", err); }, .lsp_resp => |r| p.lspResponse(r.id, r.rows), .pipe_resp => |r| p.pipeResponse(r.id, r.success, r.outputs, r.failure), .file_changed => |fc| _ = p.applyWatchedFileChanged(fc.pane, fc.bytes), - .key => |key| p.handleKey(key), + .key => |key| { + p.can_ask = true; + defer p.can_ask = false; + p.handleKey(key); + }, .mouse => |m| { if (m.kind == .release) switch (p.drag) { .border_v, .border_h, .move, .column_move => p.presentation.snap_once = true, @@ -8899,6 +8907,16 @@ pub const Pardes = struct { } fn handleKey(p: *Pardes, key: Key) void { + // A question waiting on a pane takes the next key, whatever mode the + // pane or a header edit is in: that key is its answer. + for (p.panes, 0..) |slot, id| { + const asked = slot orelse continue; + if (asked.prompt != .del_side) continue; + asked.prompt = .none; + if (hit(key, config.del_above)) p.runBuiltin(.Del, id, "", "k"); + if (hit(key, config.del_below)) p.runBuiltin(.Del, id, "", "j"); + return; + } if (p.topbar_col != null) return p.topbarKey(key); const pane = p.panes[p.active] orelse return; if (pane.isTerminal() and pane.mode == .tty and !pane.tag_edit) { @@ -8988,7 +9006,7 @@ pub const Pardes = struct { p.applySelRegex(pane, "", false); pane.tag_tail_len = @min(at, pane.tag_tail_len); }, - .none => unreachable, + .none, .del_side => unreachable, } exitTagEdit(pane); pane.mode = .normal; @@ -11955,6 +11973,15 @@ pub const Pardes = struct { } fn handleMouse(p: *Pardes, m: Mouse) void { + // A click goes somewhere else: the question it leaves unanswered is + // taken back, and the pane stays. A wheel only looks around. + if (m.kind == .press and switch (m.button) { + .left, .middle, .right => true, + else => false, + }) for (p.panes) |slot| { + const pane = slot orelse continue; + if (pane.prompt == .del_side) pane.prompt = .none; + }; if (m.button == .back or m.button == .forward) { if (m.kind == .press) p.jumpBy(if (m.button == .back) -1 else 1); return; @@ -12768,7 +12795,7 @@ pub const Pardes = struct { panes.Terminal.scrollbar(tt).total > tt.rows) return; p.deinitPane(tt) catch |err| return p.reportError(tty_id, "close", err); layout.compute(p); // a just-stacked doc has no rect yet; absorb snaps to rows - layout.absorbVWeight(p, tty_id); + layout.absorbVWeight(p, tty_id, null); layout.removePane(p, tty_id); p.panes[tty_id] = null; if (p.active == tty_id) p.active = keep_id; @@ -13621,7 +13648,9 @@ pub const Pardes = struct { pane.tag_init = true; } - pub fn removePane(p: *Pardes, id: usize) !void { + /// Close a pane; its rows go to `to`, or where layout.absorbVWeight + /// sends them when that is null. + pub fn removePane(p: *Pardes, id: usize, to: ?usize) !void { const pane = p.panes[id] orelse return; // A column outlives its panes. Closing the last one leaves an empty // pane standing in its place and in its directory; only Delcol ever @@ -13647,7 +13676,7 @@ pub const Pardes = struct { layout.insert(p, f.col, f.idx + 1, free); break :heir free; }; - layout.absorbVWeight(p, id); + layout.absorbVWeight(p, id, to); layout.removePane(p, id); p.panes[id] = null; if (p.active == id) p.active = heir orelse p.prevFocus(id) orelse { @@ -15499,6 +15528,87 @@ test "a prompt chip is a band with its caret, still on the grid, and only the ch for (pane.sel) |selection| try std.testing.expect(selection.state == .none); } +test "Del from a key asks which neighbour takes the rows; nothing else asks" { + if (platform == .web) return; + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 40 }); + defer p.deinit(); + var frame = std.heap.ArenaAllocator.init(std.testing.allocator); + defer frame.deinit(); + const top = p.active; + p.newScratchBelow(top); + const mid = p.active; + p.newScratchBelow(mid); + const low = p.active; + p.sync(); + var h = [_]u16{ p.rects[top].h, p.rects[mid].h, p.rects[low].h }; + + // SPC d on the middle pane asks on its notice band, and closes nothing yet. + p.active = mid; + p.update(.{ .key = .{ .cp = ' ' } }); + p.update(.{ .key = .{ .cp = 'd' } }); + try std.testing.expect(p.panes[mid] != null); + try std.testing.expectEqual(Pane.Prompt.del_side, p.panes[mid].?.prompt); + _ = try p.render(frame.allocator()); + try std.testing.expectEqual(Pane.Notices.Kind.prompt, p.panes[mid].?.notices.kinds[p.panes[mid].?.notices.len - 1]); + try std.testing.expectEqualStrings(config.del_question, p.panes[mid].?.promptText().?); + // j: the pane below takes every row, the one above keeps its own. + p.update(.{ .key = .{ .cp = 'j' } }); + try std.testing.expect(p.panes[mid] == null); + try std.testing.expectEqual(h[0], p.rects[top].h); + try std.testing.expectEqual(h[1] + h[2], p.rects[low].h); + + // Esc takes the question back and the pane stays; so does any other key, + // and so does a click. + p.newScratchBelow(top); + const again = p.active; + p.sync(); + h = .{ p.rects[top].h, p.rects[again].h, p.rects[low].h }; + try std.testing.expect(p.executeBuiltinLine(again, "Msg keep")); + for ([_]Key{ .{ .cp = Key.escape }, .{ .cp = 'x' } }) |answer| { + p.update(.{ .key = .{ .cp = ' ' } }); + p.update(.{ .key = .{ .cp = 'd' } }); + try std.testing.expectEqual(Pane.Prompt.del_side, p.panes[again].?.prompt); + p.update(.{ .key = answer }); + try std.testing.expect(p.panes[again] != null); + try std.testing.expectEqual(Pane.Prompt.none, p.panes[again].?.prompt); + } + p.update(.{ .key = .{ .cp = ' ' } }); + p.update(.{ .key = .{ .cp = 'd' } }); + const r = p.rects[again]; + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = r.x + 5, .row = r.y + 3 } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = r.x + 5, .row = r.y + 3 } }); + try std.testing.expect(p.panes[again] != null); + try std.testing.expectEqual(Pane.Prompt.none, p.panes[again].?.prompt); + try std.testing.expectEqual(h[1], p.rects[again].h); + + // A word that is not a side closes nothing. + try std.testing.expect(p.executeBuiltinLine(again, "Del x")); + try std.testing.expect(p.panes[again] != null); + // DelAbove is Del k, and a line that is not a key never asks. + try std.testing.expect(p.executeBuiltinLine(again, "DelAbove")); + p.sync(); + try std.testing.expect(p.panes[again] == null); + try std.testing.expectEqual(h[0] + h[1], p.rects[top].h); + try std.testing.expectEqual(h[2], p.rects[low].h); + + // Bare Del from anything but a key closes at once and gives the rows up, + // as it always has. + p.newScratchBelow(top); + const third = p.active; + p.sync(); + h = .{ p.rects[top].h, p.rects[third].h, p.rects[low].h }; + try std.testing.expect(p.executeBuiltinLine(third, "Del")); + p.sync(); + try std.testing.expect(p.panes[third] == null); + try std.testing.expectEqual(h[0] + h[1], p.rects[top].h); + + // With nothing open below, there is nothing to ask: SPC d closes at once. + p.active = low; + p.update(.{ .key = .{ .cp = ' ' } }); + p.update(.{ .key = .{ .cp = 'd' } }); + try std.testing.expect(p.panes[low] == null); +} + test "closing the last pane in a column leaves an empty one in its place" { if (platform == .web) return; const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 120, .rows = 24 }); @@ -15513,7 +15623,7 @@ test "closing the last pane in a column leaves an empty one in its place" { const had = try std.testing.allocator.dupe(u8, p.panes[lone].?.cwdSlice()); defer std.testing.allocator.free(had); - try p.removePane(lone); + try p.removePane(lone, null); p.sync(); // The column outlives the pane: still two columns, and the one that was diff --git a/src/tutor.txt b/src/tutor.txt index ab73be33..2f5b521c 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -127,7 +127,10 @@ Tty new terminal in the calling pane's directory Togglettymode in a terminal tag: switch editor/raw mode (Ctrl-B) Joincol delete this column, move its panes to the one right - Del in a pane's own tag: close it + Del in a pane's own tag: close it. From the keyboard, between + two panes, it asks which one gets the space: k or j + DelAbove close it, giving the space to the pane above (Del k) + DelBelow close it, giving the space to the pane below (Del j) A new file opens in a new COLUMN only if both panes would still get 100 columns of width. Otherwise it stacks in the one you are in. diff --git a/test/perf.zig b/test/perf.zig index 5ac38ccf..057725fd 100644 --- a/test/perf.zig +++ b/test/perf.zig @@ -1012,7 +1012,7 @@ fn miniMeasurement(fallback: std.mem.Allocator, probe: MiniProbe, path: []const if (core) |p| { pump(p); try pardes.panes.Mini.open(p, 0, path); - for (p.panes, 0..) |slot, id| if (slot != null and id != p.active) try p.removePane(id); + for (p.panes, 0..) |slot, id| if (slot != null and id != p.active) try p.removePane(id, null); pump(p); p.settings.colors = true; const file = p.panes[p.active].?.file.?; diff --git a/test/snapshots/builtins.snap b/test/snapshots/builtins.snap index 02547b91..9b91a93d 100644 --- a/test/snapshots/builtins.snap +++ b/test/snapshots/builtins.snap @@ -23,6 +23,8 @@ wheel up 110 50 wheel up 110 50 wheel up 110 50 wheel up 110 50 +wheel up 110 50 +wheel up 110 50 wait 10000 Look enter, right-click wait 10000 Exec tab, middle-click wait 10000 Filter diff --git a/test/snapshots/delask.golden b/test/snapshots/delask.golden new file mode 100644 index 00000000..56de45cf --- /dev/null +++ b/test/snapshots/delask.golden @@ -0,0 +1,56 @@ +== snap three grid=100x36 cursor=18,20 +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +| New Tty Find Grep Joincol Delcol +| /tmp/pardes-snap/delask/cwd/top.txt Save Tty Collapse Del +| 1 top-marker +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/delask/cwd/+New * Save Tty Collapse Del +| 1 middle-pane +| +| +| +| +| +| +| +| /tmp/pardes-snap/delask/cwd/+New * Save Tty Collapse Del +| 1 bottom-pane Up +== snap asked grid=100x36 cursor=18,20 +|20: 1 middle-pane Del: give space to k above j below +|29: 1 bottom-pane +== snap kept grid=100x36 cursor=18,20 +|20: 1 middle-pane +== snap below-took grid=100x36 cursor=18,20 +|20: 1 bottom-pane +|28: +|29: +== snap typed grid=100x36 cursor=27,20 +|20: 1 bottom-pane DelBelow +|28: /tmp/pardes-snap/delask/cwd/+New * Save Tty Collapse Del +|29: 1 third-pane +== snap below-took-click grid=100x36 cursor=17,20 +|20: 1 third-pane +|28: +|29: +== snap four grid=100x36 cursor=7,12 +|3: 1 top-marker New +|11: /tmp/pardes-snap/delask/cwd/+New Save Tty Collapse Del +|12: 1 +== snap mouse-del grid=100x36 cursor=9,3 +|3: 1 top-marker +|11: +|12: diff --git a/test/snapshots/delask.snap b/test/snapshots/delask.snap new file mode 100644 index 00000000..04bc850c --- /dev/null +++ b/test/snapshots/delask.snap @@ -0,0 +1,71 @@ +# Del from the keyboard on a pane with open panes above AND below asks, on the +# pane's notice band, which one takes its rows: k above, j below, anything else +# keeps the pane. A click, and DelAbove/DelBelow (Del k / Del j), never ask. +file top.txt top-marker +start 36 100 top.txt +wait 8000 top-marker +stable 700 20000 +# two scratch panes below the file, each saying which it is, then focus the +# middle one +key space f n +stable 400 5000 +key i +text middle-pane +key esc +settle 100 +key space f n +stable 400 5000 +key i +text bottom-pane +key esc +settle 100 +key c-w k +stable 400 5000 +snap three +# asked, and nothing closes yet +key space d +stable 400 5000 +snap asked +# Esc takes the question back: the pane stays +key esc +settle 100 +stable 400 5000 +snap kept +# j: the pane below grows over the middle one's rows, the file keeps its own +key space d +stable 400 5000 +key j +stable 700 10000 +snap below-took +# a pane under it, and DelBelow (Del j) appended to the middle one's text and +# executed with a click: no question, the pane below takes the rows +key space f n +stable 400 5000 +key i +text third-pane +key esc +settle 100 +key c-w k +stable 400 5000 +key A +send \x20DelBelow +key esc +settle 100 +stable 400 5000 +snap typed +press middle @DelBelow 21 +release middle @DelBelow 21 +stable 700 10000 +snap below-took-click +# a fresh pane between the file and the third one, closed by a middle click +# on its tag's Del: no question, and the rows go up as they always have +press left 10 5 +release left 10 5 +stable 400 5000 +key space f n +stable 400 5000 +snap four +press middle @Del 12 +release middle @Del 12 +stable 700 10000 +snap mouse-del diff --git a/test/snapshots/layout-close.snap b/test/snapshots/layout-close.snap index 3d28e1d5..f459ffb4 100644 --- a/test/snapshots/layout-close.snap +++ b/test/snapshots/layout-close.snap @@ -24,11 +24,13 @@ stable 700 15000 snap altc # Del the 2nd pane: source-local column insertion makes this column too narrow # to expose its tag words, so focus its body and invoke the same pane-scoped -# builtin by chord. The pane above absorbs; the other panes keep their rows. +# builtin by chord. With panes above and below, the chord asks which one +# takes the rows: k, the pane above. The other panes keep their rows. press left 5 9 release left 5 9 stable 400 5000 key space d +key k stable 700 10000 snap del # exit the (now) 2nd shell through its real tty: pty EOF, again only the pane diff --git a/test/snapshots/leader.snap b/test/snapshots/leader.snap index f018a88c..78594a47 100644 --- a/test/snapshots/leader.snap +++ b/test/snapshots/leader.snap @@ -32,7 +32,9 @@ key space h t wait 10000 PARDES TUTOR stable 700 15000 snap tutor +# the tutor has panes above and below it, so SPC d asks: k gives its rows up key space d +key k stable 700 15000 snap deleted diff --git a/test/snapshots/lspdebug.snap b/test/snapshots/lspdebug.snap index 23a95db0..ab330a76 100644 --- a/test/snapshots/lspdebug.snap +++ b/test/snapshots/lspdebug.snap @@ -46,7 +46,10 @@ wait 10000 definition z.zig # report one row short of its second query: step the cursor past it. key j j j wait 10000 explain z.zig +# the report sits between the source and the results, so Del asks where its +# rows go: k, back to the source above key space d +key k key space w j key space d stable 700 15000 -- cgit v1.3 From 1c3842f136b9f98fae784559ec12d66d629c5909 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 28 Sep 2026 11:22:53 -0300 Subject: Exit quits and Kill stops commands, as in acme Kill quit the editor, which in acme is Exit; acme's Kill stops the commands it started. Exit now quits as acme's does (exec.c, rowclean): it refuses once, naming each pane with unsaved text, and quits when asked again with nothing edited since (a small scratch is not asked about). Kill, bare or with names, stops the commands pardes typed into a terminal (an exec, a middle click, a pty/run) while their shell's marks say they run, by SIGTERM to the terminal's foreground job, never to the shell (acme posts the kill note, which terminates). Both are session builtins; the topbar's Kill becomes Exit, same width, and every golden's topbar row changed by exactly that word (checked line by line); the builtins script scrolls one more row for the index's new line. Co-Authored-By: Claude Opus 5.5 --- .agents/skills/pardes-9p/SKILL.md | 3 +- docs/fs.md | 13 +++-- docs/helix-keys.md | 2 +- src/Terminal.zig | 23 ++++++++ src/builtins.zig | 99 +++++++++++++++++++++++++++++++++- src/config.zig | 9 +++- src/exec.zig | 1 + src/fs-help.txt | 2 +- src/host_io.zig | 25 +++++++++ src/ninep/pty.zig | 1 + src/panes.zig | 6 +++ src/pardes.zig | 12 +++-- src/tutor.txt | 7 +-- test/fs.py | 14 ++--- test/snapshots/argv.golden | 8 +-- test/snapshots/badutf.golden | 2 +- test/snapshots/boot.golden | 2 +- test/snapshots/builtins.golden | 2 +- test/snapshots/builtins.snap | 1 + test/snapshots/chordcut.golden | 2 +- test/snapshots/cmdword.golden | 2 +- test/snapshots/colgrip.golden | 2 +- test/snapshots/collapse.golden | 4 +- test/snapshots/cornerdrag-left.golden | 2 +- test/snapshots/cornerdrag.golden | 2 +- test/snapshots/cursorline.golden | 2 +- test/snapshots/delask.golden | 2 +- test/snapshots/doccol.golden | 2 +- test/snapshots/dump.golden | 2 +- test/snapshots/edit.golden | 2 +- test/snapshots/exec-bigdrag.golden | 2 +- test/snapshots/exec.golden | 2 +- test/snapshots/fileedit.golden | 2 +- test/snapshots/filewatch.golden | 2 +- test/snapshots/find.golden | 2 +- test/snapshots/fsearch.golden | 2 +- test/snapshots/ghostty-mid.golden | 2 +- test/snapshots/grep.golden | 2 +- test/snapshots/hscroll.golden | 2 +- test/snapshots/images.golden | 4 +- test/snapshots/jumps.golden | 2 +- test/snapshots/layout-close.golden | 2 +- test/snapshots/layout-open.golden | 2 +- test/snapshots/leader.golden | 2 +- test/snapshots/load.golden | 2 +- test/snapshots/logquiet.golden | 2 +- test/snapshots/look-center.golden | 2 +- test/snapshots/look-dir.golden | 2 +- test/snapshots/look-file-1col.golden | 2 +- test/snapshots/look-file.golden | 2 +- test/snapshots/lookloaded.golden | 2 +- test/snapshots/lookpanes.golden | 2 +- test/snapshots/lookrange.golden | 2 +- test/snapshots/lsp-client-edit.golden | 2 +- test/snapshots/lsp-client.golden | 2 +- test/snapshots/lsp-rename.golden | 2 +- test/snapshots/lsp.golden | 2 +- test/snapshots/lspcomplete.golden | 8 +-- test/snapshots/lspcompletemoved.golden | 2 +- test/snapshots/lspdebug.golden | 2 +- test/snapshots/lsprelpath.golden | 4 +- test/snapshots/markup.golden | 4 +- test/snapshots/mini.golden | 8 +-- test/snapshots/modal.golden | 2 +- test/snapshots/msg.golden | 4 +- test/snapshots/multicursor.golden | 2 +- test/snapshots/nested-optout.golden | 10 ++-- test/snapshots/nested.golden | 6 +-- test/snapshots/ninep.golden | 8 +-- test/snapshots/pipe.golden | 2 +- test/snapshots/psearch.golden | 2 +- test/snapshots/reflow.golden | 2 +- test/snapshots/respawn.golden | 2 +- test/snapshots/restore.golden | 4 +- test/snapshots/rsearch.golden | 2 +- test/snapshots/savepane.golden | 2 +- test/snapshots/scroll.golden | 2 +- test/snapshots/scrolloff.golden | 2 +- test/snapshots/selarg.golden | 2 +- test/snapshots/selregex.golden | 2 +- test/snapshots/shellset.golden | 2 +- test/snapshots/shrinktag.golden | 2 +- test/snapshots/splitparent.golden | 6 +-- test/snapshots/stepgrain.golden | 2 +- test/snapshots/syntax.golden | 2 +- test/snapshots/tag.golden | 2 +- test/snapshots/tagalign.golden | 10 ++-- test/snapshots/tagalign2col.golden | 2 +- test/snapshots/tagbottom.golden | 2 +- test/snapshots/tagbottomimage.golden | 2 +- test/snapshots/tagbottomshort.golden | 12 ++--- test/snapshots/tagcmd.golden | 2 +- test/snapshots/tagnav.golden | 6 +-- test/snapshots/tagnav.snap | 2 +- test/snapshots/tagpath.golden | 2 +- test/snapshots/theme.golden | 2 +- test/snapshots/themesel.golden | 2 +- test/snapshots/tinywin.golden | 4 +- test/snapshots/topbarexec.golden | 2 +- test/snapshots/topbarexec.snap | 4 +- test/snapshots/tty.golden | 2 +- test/snapshots/ttyclick.golden | 2 +- test/snapshots/ttyedit.golden | 2 +- test/snapshots/ttyfollow.golden | 2 +- test/snapshots/ttyhelp.golden | 2 +- test/snapshots/ttylook.golden | 2 +- test/snapshots/ttyonly.golden | 2 +- test/snapshots/ttypaste.golden | 2 +- test/snapshots/ttyprompt.golden | 2 +- test/snapshots/ttytaken.golden | 2 +- test/snapshots/tutor.golden | 2 +- test/snapshots/wheeldrift.golden | 2 +- test/snapshots/winch.golden | 4 +- test/snapshots/windownav.golden | 2 +- test/snapshots/windowops.golden | 2 +- test/snapshots/wrap.golden | 2 +- test/snapshots/yankpaste.golden | 2 +- 117 files changed, 336 insertions(+), 166 deletions(-) (limited to 'src/tutor.txt') diff --git a/.agents/skills/pardes-9p/SKILL.md b/.agents/skills/pardes-9p/SKILL.md index daf4c279..a9cecaf8 100644 --- a/.agents/skills/pardes-9p/SKILL.md +++ b/.agents/skills/pardes-9p/SKILL.md @@ -57,7 +57,8 @@ $m/listeners this session's dial addresses $m/focus the serial of the pane with the keyboard (empty while a column/workspace tag has it); echo a serial into it to move the keyboard (a folded pane stays folded) $m/ctl the settings, one a line as a write takes them; write a setting or a session builtin - (Newcol, Dump, Theme x; Kill QUITS the editor); a pane's builtins (Del, Save f, + (Newcol, Dump, Theme x; Exit QUITS the editor, Kill [word...] stops the + commands pardes typed into terminals); a pane's builtins (Del, Save f, and the column words Delcol, Collapse, which act on that pane's column) go to $m/pane//ctl $m/commands every builtin: `Word`, `Word arg`, then `root` or `pane` (which ctl takes it) diff --git a/docs/fs.md b/docs/fs.md index af57a468..3b49105d 100644 --- a/docs/fs.md +++ b/docs/fs.md @@ -103,9 +103,16 @@ on a window's ctl and webfs and upas/fs keep session settings on a root ctl. Each builtin declares its scope in src/builtins.zig (`scope = .session`; every setting is one, the rest act on a pane). `/ctl` takes the session's builtins, one a line, at whichever pane has the keyboard as each runs -- -`Newcol`, `Dump`, `Mount name dial`, `Theme ink`, `Verbose off`, and `Kill`, -which **quits the editor** (acme's Kill only stops commands; pardes's is -acme's Exit) -- +`Newcol`, `Dump`, `Mount name dial`, `Theme ink`, `Verbose off`; `Exit`, +which quits the editor as acme's does (it refuses once, naming each pane with +unsaved text, `: Modified`, and a second `Exit` with nothing edited +since quits; a scratch under 100 bytes is not asked about); and `Kill`, which +does not quit but stops commands, as acme's does: bare, every command pardes +started, and `Kill make ls`, those whose line begins with one of the words. A +command pardes started is a line it typed into a terminal (a word written to +`exec`, a middle click on one, a `pty/run`), from its shell's start mark (C) +to its end mark (D); Kill sends its foreground job SIGTERM -- acme posts the +"kill" note, which ends a process -- and never signals the shell itself -- and reads every setting there is, one a line, in the words a write of it takes (`Verbose on`, `WindowOpacity 70`, `PanelSlide off`, `DumpDir` bare for the default directory, `LocationsConfig ...`), so writing what it reads diff --git a/docs/helix-keys.md b/docs/helix-keys.md index 0f847405..f2855b3a 100644 --- a/docs/helix-keys.md +++ b/docs/helix-keys.md @@ -122,7 +122,7 @@ language-backend queries, and the shell pipe. | `Ctrl-w` + `h/j/k/l`/arrows | directional pane focus prefix — editor normal mode only | pardes' own window handling (helix window mode skipped, section C). Runs the SAME `Left`/`Down`/`Up`/`Right` builtins `SPC w h/j/k/l` runs; Raw **tty** mode forwards Ctrl-w to the child. Insert mode owns `Ctrl-w` = delete-word-back, so a tag being TYPED into swallows it; from a tag in normal mode it moves focus to the neighbour's BODY, as from a body, and from the top pane `Up` reaches the column and workspace tags | pardes-specific | | `Alt-n` | new terminal below (outside raw tty) | shadows helix `Alt-n` TS sibling-select — skipped anyway (tree-sitter) | pardes-specific | | `Alt-c` | move active terminal to a fresh column (outside raw tty) | helix `Alt-c` is change-noyank; the pardes window op wins (do-not-touch contract). `Alt-d` + `i` covers the behavior | waived (`alt-c-window-op`) | -| `Space` (normal, body) | starts the pardes LEADER: a key path runs the same builtin words used by tags and the topbar. The main groups are `f` files, `h` docs, `c` columns, `t` toggles/effects, `a` panel animations, `s` session, `j` jumps, `l` language, and `w` directional focus; `SPC ?` lists every path and ` ?` lists one group in `+Help`. The pending path appears on the active pane's transient body/message row. Esc or an unmapped key abandons it. Paths, Help rows, and dispatch are all generated from the builtin registry at comptime; the leader applies only to a BODY in normal mode because tags and tty programs own their input | pardes-specific; helix spends Space on pickers/LSP (section C), while pardes uses acme-style executable words | +| `Space` (normal, body) | starts the pardes LEADER: a key path runs the same builtin words used by tags and the topbar. The main groups are `f` files, `h` docs, `c` columns, `t` toggles/effects, `a` panel animations, `s` session, `j` jumps, `l` language, and `w` directional focus; `SPC ?` lists every path and ` ?` lists one group in `+Help`. Neither `Exit` (quits the editor, acme's Exit) nor `Kill` (stops the commands pardes typed into terminals, acme's Kill) has a leader path: both are the topbar's and the root `ctl`'s. The pending path appears on the active pane's transient body/message row. Esc or an unmapped key abandons it. Paths, Help rows, and dispatch are all generated from the builtin registry at comptime; the leader applies only to a BODY in normal mode because tags and tty programs own their input | pardes-specific; helix spends Space on pickers/LSP (section C), while pardes uses acme-style executable words | | `SPC y` `SPC Y` `SPC p` `SPC P` `SPC R` | helix's clipboard menu on helix's own letters: yank the selection to the system clipboard (`ClipYank`) or the PRIMARY selection alone (`ClipYankMain`), paste the system clipboard after (`ClipPaste`) / before (`ClipPasteBefore`) the selection, replace the selection with it (`ClipReplace`) | the ONLY five words in pardes that touch the desktop's clipboard — `y`/`d`/`c`/`p`/`P`/`R` and the acme cut/paste chords are the internal register alone. Builtins rather than bare chords because a leader path names a builtin: they land in Help's index and are executable words like every other verb. One divergence: pardes keeps a single register VALUE where helix keeps one per range, so `SPC y` at N cursors joins them with newlines (`Pardes.setYank`, the divergence `msel-yank-paste` already waives). On a tty the write is OSC 52 out and the READ is OSC 52 back, which many terminals refuse or gate — so `SPC y` works there and `SPC p` can be a no-op | out of corpus | | a paste from the OUTER terminal | one `Event.paste`, spliced in at the cursor | the tty shell enables bracketed paste and coalesces `paste_start`..`paste_end` into a single event; before that the bytes arrived as individual key presses and normal mode RAN them, which is how a pasted `d` deleted a line. The bytes deliberately never enter the yank register — clipboard and default register are separate stores in both directions | pardes-specific | | `/` (any pane) | pardes' own plain-substring search into a `+Search` output buffer: the pattern is typed on a line of its own on the pane's notice band, Enter fills the buffer, and its rows are ordinary look targets. Enter also GOES to the first row — the buffer is focused and then the step `n` is and the look Enter is run in it (`Pardes.lookFirstHit`), so `/foo` lands on the first hit with the matched span selected. A pattern that matched nothing opens its empty buffer and moves nothing | KEEP, do not touch; not in the corpus (helix `/` is regex search). Find and Grep answer with OTHER files and deliberately do NOT jump. The stepping half is the next row | pardes-specific | diff --git a/src/Terminal.zig b/src/Terminal.zig index 0bec3ce8..cd292e5f 100644 --- a/src/Terminal.zig +++ b/src/Terminal.zig @@ -214,6 +214,29 @@ pub fn armShellSpawn(pane: *Pane) void { pane.pending_command.wait = .spawn; } +/// Remembers a line pardes types into this terminal as the command it +/// started, for Kill: it runs from the shell's next C mark to its D. +/// ponytail: of several lines queued for a shell not up yet, only the last +/// is remembered, as the first of them. +pub fn noteCommand(pane: *Pane, line: []const u8) void { + if (comptime !enabled) return; + const state = pane.terminal orelse return; + const word = std.mem.trim(u8, line, " \t")[0 .. std.mem.indexOfAny(u8, std.mem.trim(u8, line, " \t"), " \t") orelse std.mem.trim(u8, line, " \t").len]; + var sent: @typeInfo(@FieldType(Pane, "sent_command")).optional.child = .{ .seq = state.stream.handler.started +% 1 }; + sent.len = @intCast(@min(word.len, sent.word.len)); + @memcpy(sent.word[0..sent.len], word[0..sent.len]); + pane.sent_command = sent; +} + +/// Whether the command pardes last typed here is running now. +pub fn commandRunning(pane: *const Pane) bool { + if (comptime !enabled) return false; + const state = pane.terminal orelse return false; + const sent = pane.sent_command orelse return false; + const marks = &state.stream.handler; + return marks.phase == .running and marks.started == sent.seq; +} + pub fn queuePendingCommand(pane: *Pane, command: []const u8) !bool { if (pane.pending_command.wait == .none) return false; const old_len = pane.pending_command.bytes.len; diff --git a/src/builtins.zig b/src/builtins.zig index 2dac8a59..0154e707 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -213,6 +213,56 @@ test "a builtin's scope is the pane unless it says session, and every setting is try std.testing.expectEqual(Scope.session, registry.scope(std.meta.stringToEnum(Builtin, setting.word).?)); } +test "Exit asks once about unsaved text, and quits when asked again" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true }); + defer p.deinit(); + const pane = try p.setTestFile("saved\n"); + pane.file.?.saved_revision = pane.file.?.revision -% 1; // modified + try std.testing.expect(p.executeBuiltinLine(p.active, "Exit")); + try std.testing.expect(!p.quit); + try std.testing.expect(std.mem.endsWith(u8, pane.msg[0..pane.msg_len], ": Modified")); + // Told once, and nothing edited since: the second Exit quits. + try std.testing.expect(p.executeBuiltinLine(p.active, "Exit")); + try std.testing.expect(p.quit); +} + +test "Kill stops the commands pardes typed, bare all and by name those that match, and never quits" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 24 }); + defer p.deinit(); + while (p.nextEffect()) |_| {} + const term = p.active; + try std.testing.expect(p.panes[term].?.isTerminal()); + const prompt = "\x1b]133;A;cl=line;aid=pardes\x07$ \x1b]133;B;aid=pardes\x07"; + p.update(.{ .output = .{ .pane = @intCast(term), .bytes = prompt } }); + while (p.nextEffect()) |_| {} + const killed = struct { + fn count(pp: *Pardes, line: []const u8) usize { + _ = pp.executeBuiltinLine(pp.active, line); + var n: usize = 0; + while (pp.nextEffect()) |e| if (e == .signal_pty and e.signal_pty.sig == .command) { + n += 1; + }; + return n; + } + }; + // Nothing running: nothing to stop, and never the shell. + try std.testing.expectEqual(@as(usize, 0), killed.count(p, "Kill")); + _ = exec.execute(p, term, "make -j8"); + while (p.nextEffect()) |_| {} + // Typed but not started yet (no C mark): not running. + try std.testing.expectEqual(@as(usize, 0), killed.count(p, "Kill")); + p.update(.{ .output = .{ .pane = @intCast(term), .bytes = "\x1b]133;C;aid=pardes\x07" } }); + while (p.nextEffect()) |_| {} + try std.testing.expectEqual(@as(usize, 0), killed.count(p, "Kill ls")); + try std.testing.expectEqual(@as(usize, 1), killed.count(p, "Kill ls make")); + try std.testing.expectEqual(@as(usize, 1), killed.count(p, "Kill")); + try std.testing.expect(!p.quit); + // Ended (a D mark): nothing to stop again. + p.update(.{ .output = .{ .pane = @intCast(term), .bytes = "\x1b]133;D;143;aid=pardes\x07" ++ prompt } }); + while (p.nextEffect()) |_| {} + try std.testing.expectEqual(@as(usize, 0), killed.count(p, "Kill")); +} + test "Look does not announce itself on the message row; Del still does" { const Builtin = registry.Builtin(); try std.testing.expect(!registry.announces(Builtin.Look)); @@ -274,14 +324,61 @@ pub const Exec = struct { // ---- session ---- -pub const Kill = struct { +/// acme's Exit (editors/acme/exec.c, `exit` and rowclean): quit, unless a +/// pane holds unsaved text nobody has been told about. Each such pane says +/// so, `: Modified`, and the Exit goes no further; an Exit after that, +/// with nothing edited since, quits. A scratch of under 100 bytes is no +/// loss worth the question, as acme's winclean does not ask for one. +pub const Exit = struct { pub const scope: Scope = .session; pub fn run(c: Ctx) void { + var modified = false; + for (c.p.panes, 0..) |slot, id| { + const pane = slot orelse continue; + const f = pane.file orelse continue; + if (f.revision == f.saved_revision or !panes.Output.fileTraits(f.output).saves) continue; + if (f.output != null and f.content.len < 100) continue; + if (pane.exit_warned == f.revision) continue; + pane.exit_warned = f.revision; + c.p.reportError(id, f.path, error.Modified); + modified = true; + } + if (modified) return; c.p.quit = true; c.p.emit(.quit); } }; +/// acme's Kill (exec.c, `kill`; acme.c's WKill): stop the commands pardes +/// started -- the lines it typed into a terminal, from an exec, a middle +/// click or a pty/run, while their shell says they run (C mark to D). +/// Bare, every one; `Kill make ls`, those whose line starts with one of +/// the words. acme posts the "kill" note, which ends a process; here that +/// is SIGTERM to the terminal's foreground job, and never to the shell, +/// which is its own job and stays. +pub const Kill = struct { + pub const scope: Scope = .session; + pub const takes_arg = true; + pub fn run(c: Ctx) void { + const names = std.mem.trim(u8, c.arg orelse "", " \t\r\n"); + var stopped = false; + for (c.p.panes, 0..) |slot, id| { + const pane = slot orelse continue; + if (!panes.Terminal.commandRunning(pane)) continue; + const sent = pane.sent_command.?; + if (names.len > 0) { + var words = std.mem.tokenizeAny(u8, names, " \t"); + while (words.next()) |w| { + if (std.mem.eql(u8, w, sent.word[0..sent.len])) break; + } else continue; + } + c.p.emit(.{ .signal_pty = .{ .pane = @intCast(id), .sig = .command } }); + stopped = true; + } + if (!stopped and names.len > 0) c.p.reportError(c.id, "Kill", error.NoSuchCommand); + } +}; + pub const Dump = struct { pub const scope: Scope = .session; pub fn run(c: Ctx) void { diff --git a/src/config.zig b/src/config.zig index f898df11..6d0cf0a6 100644 --- a/src/config.zig +++ b/src/config.zig @@ -49,6 +49,7 @@ pub const leader_path = paths: { .Togglettymode = null, .Collapse = null, .Kill = null, + .Exit = null, .ClipYank = "y", .ClipYankMain = "Y", .ClipPaste = "p", @@ -160,8 +161,9 @@ pub const leader_path = paths: { break :paths table; }; -test "Space-k is unbound while Kill and other k chords remain available" { +test "Space-k is unbound while Exit, Kill and other k chords remain available" { try std.testing.expect(leader_path.get(.Kill) == null); + try std.testing.expect(leader_path.get(.Exit) == null); try std.testing.expectEqualStrings("wk", leader_path.get(.Up).?); try std.testing.expectEqualStrings("lk", leader_path.get(.Hover).?); try std.testing.expectEqualStrings("d", leader_path.get(.Del).?); @@ -183,7 +185,10 @@ test "Space-k is unbound while Kill and other k chords remain available" { while (p.nextEffect()) |effect| try std.testing.expect(effect != .quit); p.update(.{ .key = .{ .cp = 'k' } }); try std.testing.expectEqual(@as(i32, 0), pane.body.cur_row); + // Kill stops commands and never quits; Exit quits. try std.testing.expect(p.executeBuiltinLine(p.active, "Kill")); + try std.testing.expect(!p.quit); + try std.testing.expect(p.executeBuiltinLine(p.active, "Exit")); try std.testing.expect(p.quit); } @@ -237,7 +242,7 @@ pub const child_term = "xterm-256color"; pub const child_colorterm = "truecolor"; pub const child_term_program = "pardes"; -pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill"; +pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit"; pub const pane_builtins_str = "Tty Collapse Del"; pub const pdf_pane_builtins_str = "Tty PdfSections PdfTint Collapse Del"; diff --git a/src/exec.zig b/src/exec.zig index 46b4f57b..b16c600c 100644 --- a/src/exec.zig +++ b/src/exec.zig @@ -399,6 +399,7 @@ pub fn execute(p: *Pardes, id: usize, txt: []const u8) ?usize { defer p.exec_depth -= 1; const dst = (if (takesCommandLine(p, id)) id else ttyForDir(p, Pardes.paneDir(pane))) orelse return null; panes.Terminal.padOutputBelowEdits(p, dst); + panes.Terminal.noteCommand(p.panes[dst].?, cmd); if (panes.Terminal.queuePendingCommand(p.panes[dst].?, cmd) catch |err| { p.reportError(id, "queue command", err); return dst; diff --git a/src/fs-help.txt b/src/fs-help.txt index 8db1e288..bbff6f13 100644 --- a/src/fs-help.txt +++ b/src/fs-help.txt @@ -9,7 +9,7 @@ log events: new/del/rename/save , msg , screen rendered screen as JSON, frozen from open to close listeners the session's dial addresses focus the serial of the pane with the keyboard; write a serial to give it the keyboard -ctl the settings, one a line as a write takes them; write one, or Newcol, Dump; Kill QUITS +ctl settings, one a line as a write takes them; or Newcol, Dump, Exit (quits), Kill (stops cmds) commands every builtin: its word, arg if it takes one, and root or pane: which ctl takes it pane/new open it to make a pane (named +New); the read answers that pane's serial pane// name body tag ctl addr dot limit data xdata sel dirty mark scroll errors (write-only: diff --git a/src/host_io.zig b/src/host_io.zig index a5efc7d1..5d9dd413 100644 --- a/src/host_io.zig +++ b/src/host_io.zig @@ -1337,8 +1337,14 @@ pub fn signalTty(shell_pid: libc.pid_t, master_fd: c_int, which: pardes.PtySigna .hup => libc.SIG.HUP, .quit => libc.SIG.QUIT, .kill => libc.SIG.KILL, + .command => libc.SIG.TERM, }; const fg = tcgetpgrp(master_fd); + // The shell leads its own group: a job it runs has another. + if (which == .command) { + if (fg > 0 and fg != shell_pid) _ = libc.kill(-fg, sig); + return; + } if (fg > 0) { _ = libc.kill(-fg, sig); return; @@ -1640,6 +1646,25 @@ test "an idle prompt is free, a foreground job takes the tty, and Ctrl-C hands i try std.testing.expect(sh.waitText(test_prompt, 10_000)); } +test "Kill's signal stops the foreground job and never the shell" { + if (comptime !tty_probe_platform) return error.SkipZigTest; + var sh = TestShell.start() orelse return error.SkipZigTest; + defer sh.stop(); + + // At the prompt the shell is the foreground: there is nothing to stop. + signalTty(sh.pid, sh.master, .command); + sleepMs(100); + try std.testing.expectEqual(@as(libc.pid_t, 0), libc.waitpid(sh.pid, null, libc.W.NOHANG)); + + sh.send("sleep 30\n"); + try std.testing.expect(sh.waitTaken(true, 10_000)); + sh.forget(); + signalTty(sh.pid, sh.master, .command); + try std.testing.expect(sh.waitTaken(false, 10_000)); + try std.testing.expect(sh.waitText(test_prompt, 10_000)); + try std.testing.expectEqual(@as(libc.pid_t, 0), libc.waitpid(sh.pid, null, libc.W.NOHANG)); +} + test "a background job is not the tty's owner" { if (comptime !tty_probe_platform) return error.SkipZigTest; var sh = TestShell.start() orelse return error.SkipZigTest; diff --git a/src/ninep/pty.zig b/src/ninep/pty.zig index 50d14624..dcf9a8a7 100644 --- a/src/ninep/pty.zig +++ b/src/ninep/pty.zig @@ -233,6 +233,7 @@ pub fn noteMarks(p: *Pardes, id: usize, pane: *Pane) void { slot.declined = marks.declined; p.emitWrite(id, slot.line); p.emitWrite(id, "\r"); + pardes.panes.Terminal.noteCommand(pane, slot.line); slot.phase = .sent; return; } diff --git a/src/panes.zig b/src/panes.zig index ab4f5072..70b461eb 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -95,6 +95,12 @@ pub const Pane = struct { rows: u16, greet: bool = false, pending_command: Terminal.PendingCommand = .{}, + /// The last command line pardes typed into this terminal (an exec, a + /// middle click, a pty/run): its first word, which Kill matches, and + /// the shell's command count its start (C mark) reaches. + sent_command: ?struct { word: [64]u8 = undefined, len: u8 = 0, seq: u32 = 0 } = null, + /// The revision an Exit last warned this pane was modified at. + exit_warned: ?u32 = null, /// Native host queues the Linux v9fs launcher in this pane's initial shell. v9fs_on_spawn: bool = false, file: ?File.State = null, diff --git a/src/pardes.zig b/src/pardes.zig index 05f6710a..f3348ea5 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -561,7 +561,7 @@ test "startup config runs builtin lines in order and isolates bad lines" { .startup_config = \\Theme dark \\DefinitelyNotABuiltin - \\Kill trailing-garbage + \\Exit trailing-garbage \\Theme no-such-theme \\Theme acme , @@ -575,7 +575,7 @@ test "startup config runs builtin lines in order and isolates bad lines" { for (0..p.effects_len) |i| switch (p.effects[(p.effects_head + i) % p.effects.len]) { .write => |w| { try std.testing.expect(std.mem.indexOf(u8, w.bytes.slice(), "DefinitelyNotABuiltin") == null); - try std.testing.expect(std.mem.indexOf(u8, w.bytes.slice(), "Kill") == null); + try std.testing.expect(std.mem.indexOf(u8, w.bytes.slice(), "Exit") == null); }, else => {}, }; @@ -668,10 +668,10 @@ test "pane-tag Exec prefers Tty and argument builtins before shell fallback" { else => {}, }; - // Fixed-name builtins remain exact: a tail does not turn New or Kill into + // Fixed-name builtins remain exact: a tail does not turn New or Exit into // a match (especially important for the destructive one). try std.testing.expect(!p.executeBuiltinLine(0, "New argument")); - try std.testing.expect(!p.executeBuiltinLine(0, "Kill trailing-garbage")); + try std.testing.expect(!p.executeBuiltinLine(0, "Exit trailing-garbage")); try std.testing.expect(!p.quit); // A word absent from the builtin vocabulary takes the fallback, including @@ -3083,7 +3083,9 @@ pub const AttachRequest = struct { pane: u8, name: []const u8 }; pub const PendingWrite = struct { bytes: []u8, off: usize = 0 }; -pub const PtySignal = enum(u8) { int, term, hup, quit, kill }; +/// `command` is Kill's: SIGTERM to the terminal's foreground job, and never +/// to the shell itself when the shell is in the foreground. +pub const PtySignal = enum(u8) { int, term, hup, quit, kill, command }; /// IO the core wants done. Payloads are inline (fixed buffers): effects are /// queued values with no lifetime ties back into the core. diff --git a/src/tutor.txt b/src/tutor.txt index 2f5b521c..507ce40e 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -66,7 +66,7 @@ The top bar is: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor - Debug Kill + Debug Exit Reach it from the keyboard with `k` off the topmost tagline; `j` comes back down. @@ -361,7 +361,7 @@ typed abandons it, and so does any key that leads nowhere. SPC ? list every path - SPC d Del Kill remains available in the topbar. + SPC d Del Exit (quit) remains available in the topbar. SPC f s Save SPC f f Find SPC f n New SPC y Y p P R the system clipboard SPC w h/j/k/l focus a neighbouring pane @@ -488,4 +488,5 @@ typed Spawn this tutor again: middle-click "Tutor" in the top bar, or SPC h t. Quit: this is a file pane — `:q` is not wired. Close it with Del in its - tag, "Kill" in the top bar to quit everything, or Ctrl-c the app. + tag, "Exit" in the top bar to quit everything, or Ctrl-c the app. + "Kill" does not quit: it stops the commands pardes started, as acme's does. diff --git a/test/fs.py b/test/fs.py index e9540169..2199a645 100644 --- a/test/fs.py +++ b/test/fs.py @@ -405,12 +405,12 @@ def run_file(binary): assert closing == [b'error shell gone\n'], closing -def kill_answers(binary): - """Kill written to /ctl is answered before the editor quits.""" - with tempfile.TemporaryDirectory(prefix='pardes-kill-') as directory: +def exit_answers(binary): + """Exit written to /ctl is answered before the editor quits.""" + with tempfile.TemporaryDirectory(prefix='pardes-exit-') as directory: seen = {} - with session(binary, Path(directory), 'kill', terminal=seen) as (client, _): - client.write('/ctl', b'Kill\n') + with session(binary, Path(directory), 'exit', terminal=seen) as (client, _): + client.write('/ctl', b'Exit\n') deadline = time.monotonic() + 5 while time.monotonic() < deadline: try: @@ -421,13 +421,13 @@ def kill_answers(binary): break time.sleep(.01) else: - raise AssertionError('Kill did not quit the editor') + raise AssertionError("Exit did not quit the editor") def test(binary, quic=False): started = time.monotonic() run_file(binary) - kill_answers(binary) + exit_answers(binary) for options, message in [ (['--fs'], b'no such option'), (['--fs9'], b'no such option'), diff --git a/test/snapshots/argv.golden b/test/snapshots/argv.golden index abf5781d..e9caf508 100644 --- a/test/snapshots/argv.golden +++ b/test/snapshots/argv.golden @@ -1,5 +1,5 @@ == snap noargs grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/argv/cwd Tty Save Mode Filter Collapse Del | $ echo ARGV''TTY @@ -23,7 +23,7 @@ | /+New Save Tty Collapse Del | 1 == snap filearg grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/argv/cwd/notes.txt Save Tty Collapse Del | 3 line 3 @@ -34,7 +34,7 @@ | 8 line 8 | 9 == snap filearg-n3 grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/argv/cwd/notes.txt Save Tty Collapse Del | 1 line 1 @@ -47,7 +47,7 @@ | 8 line 8 | 9 == snap dirarg grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/argv/cwd/sub Tty Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/badutf.golden b/test/snapshots/badutf.golden index d3a906b1..0980612a 100644 --- a/test/snapshots/badutf.golden +++ b/test/snapshots/badutf.golden @@ -1,5 +1,5 @@ == snap badbytes grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/badutf/cwd/bad.txt Save Tty Collapse Del | 1 hello �� world diff --git a/test/snapshots/boot.golden b/test/snapshots/boot.golden index 2e4ad22f..f5fa64a8 100644 --- a/test/snapshots/boot.golden +++ b/test/snapshots/boot.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/boot/cwd Tty Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index a36092f7..de614ea2 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -1,5 +1,5 @@ == snap boot grid=120x67 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/builtins/cwd/notes.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/builtins.snap b/test/snapshots/builtins.snap index 9b91a93d..9a58502f 100644 --- a/test/snapshots/builtins.snap +++ b/test/snapshots/builtins.snap @@ -25,6 +25,7 @@ wheel up 110 50 wheel up 110 50 wheel up 110 50 wheel up 110 50 +wheel up 110 50 wait 10000 Look enter, right-click wait 10000 Exec tab, middle-click wait 10000 Filter diff --git a/test/snapshots/chordcut.golden b/test/snapshots/chordcut.golden index a002f53b..b814d888 100644 --- a/test/snapshots/chordcut.golden +++ b/test/snapshots/chordcut.golden @@ -1,5 +1,5 @@ == snap opened grid=120x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/chordcut/cwd Tty Save Mode Filter Collap /tmp/pardes-snap/chordcut/cwd Tty Save Mode Filter Collap | ls ls diff --git a/test/snapshots/cmdword.golden b/test/snapshots/cmdword.golden index f099464f..99ad446b 100644 --- a/test/snapshots/cmdword.golden +++ b/test/snapshots/cmdword.golden @@ -1,5 +1,5 @@ == snap opened grid=120x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cmdword/cwd/cmds.txt Save Tty Collapse Del | 1 @`echo ZZ''E` @`echo ZZ''L` Look p.txt @`Look .` diff --git a/test/snapshots/colgrip.golden b/test/snapshots/colgrip.golden index e096a665..3ad6b2b6 100644 --- a/test/snapshots/colgrip.golden +++ b/test/snapshots/colgrip.golden @@ -26,7 +26,7 @@ == style held grid=100x24 |1: 0-1 #ffffff,#887455, 2-2 d,#1d2824, 3-34 #b2c3b8,#1d2824, 35-49 d,#1d2824, 50-51 #000000,#f4c086, 52-52 d,#26362d, 53-84 #becfc4,#26362d, 85-99 d,#26362d, == snap resize-drag grid=100x24 cursor=54,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol ╎ New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/colgrip/cwd/w.txt S╎ve Tty Col /tmp/pardes-snap/colgrip/cwd Tty Save Mode Filt | 1 x ╎ ls diff --git a/test/snapshots/collapse.golden b/test/snapshots/collapse.golden index eaf9bbc3..f60b084f 100644 --- a/test/snapshots/collapse.golden +++ b/test/snapshots/collapse.golden @@ -1,5 +1,5 @@ == snap before grid=160x25 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/collapse/cwd/kept.txt Save Tty Collapse Del | 1 KEEP-FIRST @@ -10,7 +10,7 @@ |4: |5: == 9p middle-collapsed-cursor grid=160x25 cursor=none -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit @0: 0-70 #b2c3b8,#1d2824,,tagline 71-159 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#26362d,,tagline 3-34 #becfc4,#26362d,,tagline 35-159 d,#26362d,,tagline diff --git a/test/snapshots/cornerdrag-left.golden b/test/snapshots/cornerdrag-left.golden index 145adb02..ad7f2759 100644 --- a/test/snapshots/cornerdrag-left.golden +++ b/test/snapshots/cornerdrag-left.golden @@ -1,5 +1,5 @@ == snap right-split grid=100x31 cursor=54,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cornerdrag-left/cwd Tty Save M /tmp/pardes-snap/cornerdrag-left/cwd Tty Save M | ls ls diff --git a/test/snapshots/cornerdrag.golden b/test/snapshots/cornerdrag.golden index b95734ea..ae726cae 100644 --- a/test/snapshots/cornerdrag.golden +++ b/test/snapshots/cornerdrag.golden @@ -1,5 +1,5 @@ == snap hover-corner grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol ╎ New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cornerdrag/cwd Tty Save Mode ╎ /tmp/pardes-snap/cornerdrag/cwd Tty Save Mode F | ls ╎ ls diff --git a/test/snapshots/cursorline.golden b/test/snapshots/cursorline.golden index 97897c3f..e4383dca 100644 --- a/test/snapshots/cursorline.golden +++ b/test/snapshots/cursorline.golden @@ -1,5 +1,5 @@ == snap top grid=150x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cursorline/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/cursorline/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/delask.golden b/test/snapshots/delask.golden index 56de45cf..6b5331ec 100644 --- a/test/snapshots/delask.golden +++ b/test/snapshots/delask.golden @@ -1,5 +1,5 @@ == snap three grid=100x36 cursor=18,20 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/delask/cwd/top.txt Save Tty Collapse Del | 1 top-marker diff --git a/test/snapshots/doccol.golden b/test/snapshots/doccol.golden index 83d49ca5..76af647b 100644 --- a/test/snapshots/doccol.golden +++ b/test/snapshots/doccol.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/doccol/cwd/a.txt Save Tty Coll /tmp/pardes-snap/doccol/cwd Tty Save Mode Filte | 1 AAA ls diff --git a/test/snapshots/dump.golden b/test/snapshots/dump.golden index e466dbf1..41f29b0c 100644 --- a/test/snapshots/dump.golden +++ b/test/snapshots/dump.golden @@ -4,7 +4,7 @@ .version = 1, .screen = .{ .cols = 100, .rows = 31 }, .active = 0, - .topbar = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill", + .topbar = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit", .topbar_custom = null, .theme = "orchard", .locations_config = .{ diff --git a/test/snapshots/edit.golden b/test/snapshots/edit.golden index c4b1081e..12261959 100644 --- a/test/snapshots/edit.golden +++ b/test/snapshots/edit.golden @@ -1,5 +1,5 @@ == snap inserted grid=100x31 cursor=16,10 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/edit/cwd Tty Save Mode Filter /tmp/pardes-snap/edit/cwd Tty Save Mode Filter | ls ls diff --git a/test/snapshots/exec-bigdrag.golden b/test/snapshots/exec-bigdrag.golden index d18ea1b1..375922d7 100644 --- a/test/snapshots/exec-bigdrag.golden +++ b/test/snapshots/exec-bigdrag.golden @@ -1,5 +1,5 @@ == snap alive grid=200x61 cursor=119,38 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/exec-bigdrag/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/exec-bigdrag/cwd Tty Save Mode Filter Collapse Del | ls bash: line: command not found diff --git a/test/snapshots/exec.golden b/test/snapshots/exec.golden index 2ddd7eec..68a9737f 100644 --- a/test/snapshots/exec.golden +++ b/test/snapshots/exec.golden @@ -1,5 +1,5 @@ == snap exec grid=140x31 cursor=16,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/exec/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/exec/cwd Tty Save Mode Filter Collapse Del | ls Exec ls diff --git a/test/snapshots/fileedit.golden b/test/snapshots/fileedit.golden index a4d23656..42b50bbf 100644 --- a/test/snapshots/fileedit.golden +++ b/test/snapshots/fileedit.golden @@ -1,5 +1,5 @@ == snap edited grid=150x31 cursor=17,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/fileedit/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/fileedit/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/filewatch.golden b/test/snapshots/filewatch.golden index 74bce6f3..d6d38274 100644 --- a/test/snapshots/filewatch.golden +++ b/test/snapshots/filewatch.golden @@ -1,5 +1,5 @@ == snap edited grid=210x31 cursor=15,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/filewatch/cwd/w.txt * Save Tty Collapse Del /tmp/pardes-snap/filewatch/cwd Tty Save Mode Filter Collapse Del | 1 liMYEDITne 1 ls diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden index b6b7b322..b71da767 100644 --- a/test/snapshots/find.golden +++ b/test/snapshots/find.golden @@ -1,5 +1,5 @@ == snap group grid=120x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/find/cwd/here.txt Save Tty Collapse Del | 1 Find SPC f diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index eba3237f..01b4a54a 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -1,5 +1,5 @@ == snap opened grid=180x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/fsearch/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/fsearch/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/ghostty-mid.golden b/test/snapshots/ghostty-mid.golden index 3482431b..70a40fe7 100644 --- a/test/snapshots/ghostty-mid.golden +++ b/test/snapshots/ghostty-mid.golden @@ -1,5 +1,5 @@ == snap ghostty-mid grid=100x31 cursor=4,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ghostty-mid/cwd Tty Save Mode /tmp/pardes-snap/ghostty-mid/cwd Tty Save Mode | ZZPAD ls diff --git a/test/snapshots/grep.golden b/test/snapshots/grep.golden index a371bfb6..7ecb24af 100644 --- a/test/snapshots/grep.golden +++ b/test/snapshots/grep.golden @@ -1,5 +1,5 @@ == snap opened grid=180x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/grep/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/grep/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/hscroll.golden b/test/snapshots/hscroll.golden index cf6d92cd..bc1a7ff1 100644 --- a/test/snapshots/hscroll.golden +++ b/test/snapshots/hscroll.golden @@ -1,5 +1,5 @@ == snap opened grid=90x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/hscroll/cwd Tty Save Mode /tmp/pardes-snap/hscroll/cwd Tty Save Mode | ls ls diff --git a/test/snapshots/images.golden b/test/snapshots/images.golden index 52f5514f..5b72d72b 100644 --- a/test/snapshots/images.golden +++ b/test/snapshots/images.golden @@ -1,5 +1,5 @@ == snap img-open grid=150x31 cursor=11,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/images/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/images/cwd Tty Save Mode Filter Collapse Del | ls ls @@ -76,7 +76,7 @@ |15: 🬺█ðŸ¬�🬵 |16: ðŸ¬�â–„ == snap tag-edit grid=400x31 cursor=87,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/images/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/images/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/jumps.golden b/test/snapshots/jumps.golden index 18725402..fa50f66c 100644 --- a/test/snapshots/jumps.golden +++ b/test/snapshots/jumps.golden @@ -1,5 +1,5 @@ == snap start grid=150x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/jumps/cwd/big.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/layout-close.golden b/test/snapshots/layout-close.golden index a49ae97e..926ff1f7 100644 --- a/test/snapshots/layout-close.golden +++ b/test/snapshots/layout-close.golden @@ -1,5 +1,5 @@ == snap built grid=140x41 cursor=4,17 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/layout-close/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/layout-close/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/layout-open.golden b/test/snapshots/layout-open.golden index 5ab87cbe..f682924a 100644 --- a/test/snapshots/layout-open.golden +++ b/test/snapshots/layout-open.golden @@ -1,5 +1,5 @@ == snap before grid=100x31 cursor=2,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/layout-open/cwd Tty Save Mode /tmp/pardes-snap/layout-open/cwd Tty Save Mode | ls ls diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index cc420f46..18210edf 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -1,5 +1,5 @@ == snap spc grid=100x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/leader/cwd/cmds.txt Save Tty Collapse Del | 1 Help SPC diff --git a/test/snapshots/load.golden b/test/snapshots/load.golden index 32024cec..4671787a 100644 --- a/test/snapshots/load.golden +++ b/test/snapshots/load.golden @@ -1,5 +1,5 @@ == snap loaded grid=100x31 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/load/cwd Tty Save Mode Filter /tmp/pardes-snap/load/cwd Tty Save Mode Filter | $ echo LOAD''MARK; seq 1 40; echo E''ND $ ls diff --git a/test/snapshots/logquiet.golden b/test/snapshots/logquiet.golden index 1289761b..e3fbe0f1 100644 --- a/test/snapshots/logquiet.golden +++ b/test/snapshots/logquiet.golden @@ -1,5 +1,5 @@ == snap quiet grid=100x31 cursor=62,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/logquiet/cwd Tty Save Mode Filter Collapse Del | $ ls diff --git a/test/snapshots/look-center.golden b/test/snapshots/look-center.golden index 281753fa..bd97a25d 100644 --- a/test/snapshots/look-center.golden +++ b/test/snapshots/look-center.golden @@ -1,5 +1,5 @@ == snap center-open grid=150x31 cursor=7,12 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-center/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/look-center/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/look-dir.golden b/test/snapshots/look-dir.golden index b4b9d642..1d9f12e3 100644 --- a/test/snapshots/look-dir.golden +++ b/test/snapshots/look-dir.golden @@ -1,5 +1,5 @@ == snap dir-open grid=100x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-dir/cwd Tty Save Mode Fil /tmp/pardes-snap/look-dir/cwd Tty Save Mode Fil | ls ls diff --git a/test/snapshots/look-file-1col.golden b/test/snapshots/look-file-1col.golden index 5eee656e..fb0bd6cd 100644 --- a/test/snapshots/look-file-1col.golden +++ b/test/snapshots/look-file-1col.golden @@ -1,5 +1,5 @@ == snap file-open-1col grid=100x31 cursor=7,19 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-file-1col/cwd Tty Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/look-file.golden b/test/snapshots/look-file.golden index 474c4d1b..0091c966 100644 --- a/test/snapshots/look-file.golden +++ b/test/snapshots/look-file.golden @@ -1,5 +1,5 @@ == snap file-open grid=150x31 cursor=7,12 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-file/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/look-file/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/lookloaded.golden b/test/snapshots/lookloaded.golden index 35b32c80..cc2f4313 100644 --- a/test/snapshots/lookloaded.golden +++ b/test/snapshots/lookloaded.golden @@ -1,5 +1,5 @@ == snap file-open grid=100x31 cursor=7,12 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lookloaded/cwd Tty Save Mode F /tmp/pardes-snap/lookloaded/cwd Tty Save Mode F | ls ls diff --git a/test/snapshots/lookpanes.golden b/test/snapshots/lookpanes.golden index c2ef30cb..ae63b50f 100644 --- a/test/snapshots/lookpanes.golden +++ b/test/snapshots/lookpanes.golden @@ -1,5 +1,5 @@ == snap shells grid=130x51 cursor=122,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save Tty Collaps /tmp/pardes-snap/lookpanes/cwd Tty Save Mode Filter Collapse D | 1 both.txt ls diff --git a/test/snapshots/lookrange.golden b/test/snapshots/lookrange.golden index 129ee285..3db2246d 100644 --- a/test/snapshots/lookrange.golden +++ b/test/snapshots/lookrange.golden @@ -1,5 +1,5 @@ == snap opened grid=150x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lookrange/cwd/look.txt Save Tty Collapse Del | 1 r.txt:3-5 diff --git a/test/snapshots/lsp-client-edit.golden b/test/snapshots/lsp-client-edit.golden index 18138dd7..c75bae4c 100644 --- a/test/snapshots/lsp-client-edit.golden +++ b/test/snapshots/lsp-client-edit.golden @@ -1,5 +1,5 @@ == snap formatted grid=100x25 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lsp-client-edit/cwd/main.rs * Save Tty Collapse Del TreeContext | 1 // formatted by mock formatted 1 range(s) diff --git a/test/snapshots/lsp-client.golden b/test/snapshots/lsp-client.golden index 54276958..3dfcdd28 100644 --- a/test/snapshots/lsp-client.golden +++ b/test/snapshots/lsp-client.golden @@ -1,5 +1,5 @@ == snap gd-jumped grid=100x25 cursor=16,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lsp-client/cwd/main.rs Save Tty Collapse Del TreeContext | 1 mod lib; --:--:-- lsp rust-analyzer: ready diff --git a/test/snapshots/lsp-rename.golden b/test/snapshots/lsp-rename.golden index 75d87879..f6dc8358 100644 --- a/test/snapshots/lsp-rename.golden +++ b/test/snapshots/lsp-rename.golden @@ -1,5 +1,5 @@ == snap renamed grid=110x25 cursor=17,10 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lsp-rename/cwd/rename.zig * Save Tty Collapse Del TreeContext | 1 const std = @import("std"); renamed 2 range(s) diff --git a/test/snapshots/lsp.golden b/test/snapshots/lsp.golden index 82b53957..d6ffcc73 100644 --- a/test/snapshots/lsp.golden +++ b/test/snapshots/lsp.golden @@ -1,5 +1,5 @@ == snap opened grid=120x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lsp/cwd/a.zig Save Tty Collapse Del TreeContext | 1 const std = @import("std"); diff --git a/test/snapshots/lspcomplete.golden b/test/snapshots/lspcomplete.golden index 7af75baf..8efa7edf 100644 --- a/test/snapshots/lspcomplete.golden +++ b/test/snapshots/lspcomplete.golden @@ -1,5 +1,5 @@ == snap opened grid=120x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lspcomplete/cwd/a.zig Save Tty Collapse Del TreeContext | 1 const Shade = enum { @@ -30,13 +30,13 @@ == snap step grid=120x41 cursor=19,4 |2: /tmp/pardes-snap/lspcomplete/cwd/a.zig * Save Tty Collapse Del TreeContext == snap txtindent grid=120x41 cursor=15,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |^ /tmp/pardes-snap/lspcomplete/cwd/notes.txt * Save Tty Collapse Del | 1 abc. def ghi | 2 == snap nosemi grid=100x19 cursor=29,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |^ /tmp/pardes-snap/lspcomplete/cwd/c.zig * Save Tty Collapse Del TreeContext | 1 const Shade = enum { @@ -56,7 +56,7 @@ | 1 c.zig:2:5-13 verdigris verdigris, | 2 c.zig:3:5-12 cinnabar cinnabar, == snap nobrace grid=100x19 cursor=16,10 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |^ /tmp/pardes-snap/lspcomplete/cwd/d.zig * Save Tty Collapse Del TreeContext | 1 const Shade = enum { diff --git a/test/snapshots/lspcompletemoved.golden b/test/snapshots/lspcompletemoved.golden index af6616af..f12b3f0c 100644 --- a/test/snapshots/lspcompletemoved.golden +++ b/test/snapshots/lspcompletemoved.golden @@ -1,5 +1,5 @@ == snap typedthrough grid=120x21 cursor=16,14 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |^ /tmp/pardes-snap/lspcompletemoved/cwd/a.zig * Save Tty Collapse Del TreeContext | 1 const Shade = enum { diff --git a/test/snapshots/lspdebug.golden b/test/snapshots/lspdebug.golden index a2182231..cf2eb097 100644 --- a/test/snapshots/lspdebug.golden +++ b/test/snapshots/lspdebug.golden @@ -1,5 +1,5 @@ == snap opened grid=120x45 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lspdebug/cwd/z.zig Save Tty Collapse Del TreeContext | 1 const std = @import("std"); diff --git a/test/snapshots/lsprelpath.golden b/test/snapshots/lsprelpath.golden index fdca756d..96dc4c99 100644 --- a/test/snapshots/lsprelpath.golden +++ b/test/snapshots/lsprelpath.golden @@ -1,5 +1,5 @@ == snap absrow grid=100x35 cursor=16,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |^ /tmp/pardes-snap/lsprelpath/cwd/sub/parent.zig * Save Tty Collapse Del TreeContext | 1 const shade = @import("../shade.zig"); @@ -79,7 +79,7 @@ |33: 0-0 d,#608269, 1-1 d,#0d1410, 2-54 #59675c,#0d1410, 55-76 #e5eee5,#0d1410, 77-99 d,#0d1410, |34: 0-0 d,#152019, 1-1 d,#0d1410, 2-54 #59675c,#0d1410, 55-74 #e5eee5,#0d1410, 75-99 d,#0d1410, == snap subrow grid=100x35 cursor=16,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |^ /tmp/pardes-snap/lsprelpath/cwd/sub/subdir.zig * Save Tty Collapse Del TreeContext | 1 const tint = @import("inner/tint.zig"); diff --git a/test/snapshots/markup.golden b/test/snapshots/markup.golden index ca69d0f7..fb76f973 100644 --- a/test/snapshots/markup.golden +++ b/test/snapshots/markup.golden @@ -1,5 +1,5 @@ == snap typst grid=92x25 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/markup/cwd/paper.typ Save Tty Collapse Del TreeContext | 1 = Typst heading @@ -38,7 +38,7 @@ |23: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-91 d,#0d1410, |24: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-91 d,#0d1410, == snap markdown grid=92x25 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/markup/cwd/notes.md Save Tty Collapse Del TreeContext | 1 # Markdown heading with *italic* diff --git a/test/snapshots/mini.golden b/test/snapshots/mini.golden index 3f4e2889..cb51368d 100644 --- a/test/snapshots/mini.golden +++ b/test/snapshots/mini.golden @@ -1,5 +1,5 @@ == snap opened grid=90x23 cursor=7,14 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/mini/cwd/commands.txt Save Tty Collapse Del | 1 @`Mini demo.zig` Mini @@ -42,7 +42,7 @@ |21: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-89 d,#0d1410, |22: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-89 d,#0d1410, == 9p opened grid=90x23 cursor=7,14,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit @0: 0-70 #b2c3b8,#1d2824,,tagline 71-89 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#26362d,,tagline 3-34 #becfc4,#26362d,,tagline 35-89 d,#26362d,,tagline @@ -113,7 +113,7 @@ |15: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-8 #b9f480,#0d1410, 9-11 #c9a7ed,#0d1410, 12-25 #b9f480,#0d1410, 26-89 d,#0d1410, |16: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-19 #f8c082,#0d1410, 20-20 #e5eee5,#0d1410, 21-89 d,#0d1410, == snap resized grid=105x27 cursor=7,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/mini/cwd/commands.txt Save Tty Collapse Del | 1 @`Mini demo.zig` @@ -134,7 +134,7 @@ | 3 ⠉⠉â �⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ | 4 == 9p resized grid=105x27 cursor=7,16,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit @0: 0-70 #b2c3b8,#1d2824,,tagline 71-104 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#26362d,,tagline 3-34 #becfc4,#26362d,,tagline 35-104 d,#26362d,,tagline diff --git a/test/snapshots/modal.golden b/test/snapshots/modal.golden index 5f313dd3..2f71290b 100644 --- a/test/snapshots/modal.golden +++ b/test/snapshots/modal.golden @@ -1,5 +1,5 @@ == snap top grid=100x31 cursor=2,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/modal/cwd Tty Save Mode Filter /tmp/pardes-snap/modal/cwd Tty Save Mode Filter | ls ls diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden index 1d5b4cc2..d9a4a079 100644 --- a/test/snapshots/msg.golden +++ b/test/snapshots/msg.golden @@ -1,5 +1,5 @@ == snap opened grid=70x15 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kil +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/msg/cwd/a.txt Save Tty Collapse Del | 1 line 1 @@ -12,7 +12,7 @@ == snap saved grid=70x15 cursor=7,3 |3: 1 line 1 --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt == snap repainted grid=70x17 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kil +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/msg/cwd/a.txt Save Tty Collapse Del | 1 line 1 --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt diff --git a/test/snapshots/multicursor.golden b/test/snapshots/multicursor.golden index 7a602aab..8f4c4451 100644 --- a/test/snapshots/multicursor.golden +++ b/test/snapshots/multicursor.golden @@ -1,5 +1,5 @@ == snap three-cursors grid=150x31 cursor=7,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/multicursor/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/multicursor/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/nested-optout.golden b/test/snapshots/nested-optout.golden index 5d3fb8a7..1fa7cbe5 100644 --- a/test/snapshots/nested-optout.golden +++ b/test/snapshots/nested-optout.golden @@ -1,23 +1,23 @@ == snap optout-file grid=100x31 cursor=9,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit |New Tty Find Grep Joincol |$ /tmp/pardes-snap/nested-optout/cwd Save Tty Del Togglettymode Filter Collapse -| Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +| Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol | /tmp/pardes-snap/nested-optout/cwd/nested.txt Save Tty Del Collapse | 1 optout-marker | 2 second-optout-line | 3 == snap inner-shell grid=100x31 cursor=6,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit |New Tty Find Grep Joincol |$ /tmp/pardes-snap/nested-optout/cwd Save Tty Del Togglettymode Filter Collapse -| Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +| Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol | $ /tmp/pardes-snap/nested-optout/cwd/innerdir Save Tty Del Togglettymode Filter Collapse | $ == snap inner-launch grid=100x31 cursor=11,9 -|6: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|6: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit |7: New Tty Find Grep Joincol |8: /tmp/pardes-snap/nested-optout/cwd/innerdir/deeper.txt Save Tty Del Collapse |9: 1 deepest-marker diff --git a/test/snapshots/nested.golden b/test/snapshots/nested.golden index 88b0854c..2b69b055 100644 --- a/test/snapshots/nested.golden +++ b/test/snapshots/nested.golden @@ -1,5 +1,5 @@ == snap file-arg grid=100x31 cursor=7,27 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/nested/cwd Tty Save Mode Filter Collapse Del | $ $(readlink /proc/$PPID/exe) nested.txt @@ -30,7 +30,7 @@ | 2 second-nested-line | 3 == snap no-arg grid=100x31 cursor=4,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/nested/cwd Tty Save Mode Filter Collapse Del | $ $(readlink /proc/$PPID/exe) @@ -54,7 +54,7 @@ | /+New Save Tty Collapse Del | 1 == snap dir-arg grid=100x31 cursor=4,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/nested/cwd Tty Save Mode Filter Collapse Del | $ $(readlink /proc/$PPID/exe) nestdir diff --git a/test/snapshots/ninep.golden b/test/snapshots/ninep.golden index d4cb2a27..65fb38ec 100644 --- a/test/snapshots/ninep.golden +++ b/test/snapshots/ninep.golden @@ -1,5 +1,5 @@ == snap opened grid=90x15 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ninep/cwd/demo.zig Save Tty Collapse Del TreeContext | 1 const greeting = "café λ 界 eÌ�"; @@ -26,7 +26,7 @@ |13: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-89 d,#0d1410, |14: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-89 d,#0d1410, == 9p opened grid=90x15 cursor=7,3,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit @0: 0-70 #b2c3b8,#1d2824,,tagline 71-89 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#26362d,,tagline 3-34 #becfc4,#26362d,,tagline 35-89 d,#26362d,,tagline @@ -147,7 +147,7 @@ |18: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-104 d,#0d1410, |19: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-104 d,#0d1410, == 9p resized grid=105x20 cursor=7,4,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit @0: 0-70 #b2c3b8,#1d2824,,tagline 71-104 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#26362d,,tagline 3-34 #becfc4,#26362d,,tagline 35-104 d,#26362d,,tagline @@ -190,7 +190,7 @@ |19: @19: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body == snap resized grid=105x20 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ninep/cwd/demo.zig * Save Tty Collapse Del TreeContext | 1 // café λ 界 Colors diff --git a/test/snapshots/pipe.golden b/test/snapshots/pipe.golden index 2e0b3fa6..14353ebf 100644 --- a/test/snapshots/pipe.golden +++ b/test/snapshots/pipe.golden @@ -1,5 +1,5 @@ == snap prompt grid=180x13 cursor=179,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/pipe/cwd/pipe.txt Save Tty Collapse Del | 1 alpha beta |tr a-z A-Z diff --git a/test/snapshots/psearch.golden b/test/snapshots/psearch.golden index 8d9e5ee9..f21d8ae1 100644 --- a/test/snapshots/psearch.golden +++ b/test/snapshots/psearch.golden @@ -1,5 +1,5 @@ == snap output grid=140x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/psearch/cwd Tty Save Mode Filter Collapse Del | printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' diff --git a/test/snapshots/reflow.golden b/test/snapshots/reflow.golden index a13b5936..958fe934 100644 --- a/test/snapshots/reflow.golden +++ b/test/snapshots/reflow.golden @@ -1,5 +1,5 @@ == snap widened grid=200x25 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/reflow/cwd Tty Save Mode Filter Collapse Del | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy diff --git a/test/snapshots/respawn.golden b/test/snapshots/respawn.golden index e2b6a75c..f6027895 100644 --- a/test/snapshots/respawn.golden +++ b/test/snapshots/respawn.golden @@ -1,5 +1,5 @@ == snap respawn grid=140x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/respawn/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/respawn/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/restore.golden b/test/snapshots/restore.golden index 01b52984..d6c81e75 100644 --- a/test/snapshots/restore.golden +++ b/test/snapshots/restore.golden @@ -1,5 +1,5 @@ == snap dumped grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill Restore /tmp/pardes-snap/res +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit Restore /tmp/pardes-snap/res | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/restore/cwd Tty Save Mode Filter Collapse Del | $ ls @@ -7,6 +7,6 @@ | KEEPME | $ == snap restored grid=100x31 cursor=4,8 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit |2: /tmp/pardes-snap/restore/cwd Tty Save Mode Filter Collapse Del |7: ── restored history ── diff --git a/test/snapshots/rsearch.golden b/test/snapshots/rsearch.golden index 9b1f12d4..2f8214e0 100644 --- a/test/snapshots/rsearch.golden +++ b/test/snapshots/rsearch.golden @@ -1,5 +1,5 @@ == snap opened grid=210x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/rsearch/cwd/code.txt Save Tty Collapse Del /tmp/pardes-snap/rsearch/cwd Tty Save Mode Filter Collapse Del | 1 run count_x now ls diff --git a/test/snapshots/savepane.golden b/test/snapshots/savepane.golden index 23af2bd5..9a27342c 100644 --- a/test/snapshots/savepane.golden +++ b/test/snapshots/savepane.golden @@ -1,5 +1,5 @@ == snap scratch grid=100x31 cursor=20,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/savepane/cwd Tty Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/scroll.golden b/test/snapshots/scroll.golden index 86bad0e5..8a48dcca 100644 --- a/test/snapshots/scroll.golden +++ b/test/snapshots/scroll.golden @@ -1,5 +1,5 @@ == snap bottom grid=100x31 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/scroll/cwd Tty Save Mode Filte /tmp/pardes-snap/scroll/cwd Tty Save Mode Filte | 188 ls diff --git a/test/snapshots/scrolloff.golden b/test/snapshots/scrolloff.golden index 5ab9fa55..acc15f71 100644 --- a/test/snapshots/scrolloff.golden +++ b/test/snapshots/scrolloff.golden @@ -1,5 +1,5 @@ == snap top grid=210x12 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/scrolloff/cwd/g.txt Save Tty Collapse Del /tmp/pardes-snap/scrolloff/cwd Tty Save Mode Filter Collapse Del | 1 line 1 ls diff --git a/test/snapshots/selarg.golden b/test/snapshots/selarg.golden index 1a9fb86d..068a256d 100644 --- a/test/snapshots/selarg.golden +++ b/test/snapshots/selarg.golden @@ -1,5 +1,5 @@ == snap kept grid=100x31 cursor=6,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/selarg/cwd Tty Save Mode Filte /tmp/pardes-snap/selarg/cwd Tty Save Mode Filte | ZZARG ZZVEE ./c.sh diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden index e28d47a5..8b45ae43 100644 --- a/test/snapshots/selregex.golden +++ b/test/snapshots/selregex.golden @@ -1,5 +1,5 @@ == snap prompt-armed grid=160x25 cursor=159,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/selregex/cwd/m.zig Save Tty Collapse Del TreeContext | 1 const one = 1; Select / diff --git a/test/snapshots/shellset.golden b/test/snapshots/shellset.golden index d4ab24d9..f68065b9 100644 --- a/test/snapshots/shellset.golden +++ b/test/snapshots/shellset.golden @@ -1,5 +1,5 @@ == snap boot grid=90x21 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/shellset/cwd/cmd.txt Save Tty Collapse Del | 1 Shell zznosuchshell diff --git a/test/snapshots/shrinktag.golden b/test/snapshots/shrinktag.golden index 8ff798fa..1fb12c15 100644 --- a/test/snapshots/shrinktag.golden +++ b/test/snapshots/shrinktag.golden @@ -1,5 +1,5 @@ == snap before grid=100x31 cursor=2,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/shrinktag/cwd Tty Save Mode Fi /tmp/pardes-snap/shrinktag/cwd Tty Save Mode Fi | ls ls diff --git a/test/snapshots/splitparent.golden b/test/snapshots/splitparent.golden index aedbdb8a..14b95f26 100644 --- a/test/snapshots/splitparent.golden +++ b/test/snapshots/splitparent.golden @@ -1,5 +1,5 @@ == snap shrunk grid=100x31 cursor=4,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/splitparent/cwd Tty Save Mode /tmp/pardes-snap/splitparent/cwd Tty Save Mode | /tmp/pardes-snap/splitparent/cwd Tty Save Mode ls @@ -8,13 +8,13 @@ |6: /tmp/pardes-snap/splitparent/cwd Tty Save Mode |7: ls == snap tallest grid=100x6 cursor=54,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/splitparent/cwd Tty Save Mode /tmp/pardes-snap/splitparent/cwd Tty Save Mode | /tmp/pardes-snap/splitparent/cwd Tty Save Mode | /tmp/pardes-snap/splitparent/cwd Tty Save Mode /tmp/pardes-snap/splitparent/cwd Tty Save Mode == snap regrown grid=100x31 cursor=54,19 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/splitparent/cwd Tty Save Mode /tmp/pardes-snap/splitparent/cwd Tty Save Mode | /tmp/pardes-snap/splitparent/cwd Tty Save Mode ls diff --git a/test/snapshots/stepgrain.golden b/test/snapshots/stepgrain.golden index a6473d92..6d3ba91f 100644 --- a/test/snapshots/stepgrain.golden +++ b/test/snapshots/stepgrain.golden @@ -1,5 +1,5 @@ == snap results grid=150x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/stepgrain/cwd/a.txt Save Tty Collapse Del | 1 hello ZQMARK one diff --git a/test/snapshots/syntax.golden b/test/snapshots/syntax.golden index 08f74758..cf8c6d9a 100644 --- a/test/snapshots/syntax.golden +++ b/test/snapshots/syntax.golden @@ -1,5 +1,5 @@ == snap zig-open grid=150x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/syntax/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/syntax/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/tag.golden b/test/snapshots/tag.golden index 60eced41..b6403902 100644 --- a/test/snapshots/tag.golden +++ b/test/snapshots/tag.golden @@ -1,5 +1,5 @@ == snap tag-focus grid=150x31 cursor=31,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tag/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/tag/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/tagalign.golden b/test/snapshots/tagalign.golden index 6d61ad2f..72133440 100644 --- a/test/snapshots/tagalign.golden +++ b/test/snapshots/tagalign.golden @@ -1,5 +1,5 @@ == snap aligned grid=100x31 cursor=4,20 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty Collapse Del | 1 alpha @@ -20,7 +20,7 @@ | ls | deep == snap fits grid=87x31 cursor=4,20 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty Co | 1 alpha @@ -41,7 +41,7 @@ | ls | deep == snap overby1 grid=86x31 cursor=4,20 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty C | 1 alpha @@ -62,7 +62,7 @@ | ls | deep == snap clicked grid=100x31 cursor=11,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty Collapse Del | 1 alpha @@ -83,7 +83,7 @@ | ls | deep == snap revealed grid=70x31 cursor=69,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kil +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi | New Tty Find Grep Joincol Delcol | d/deep/nested-project-directory/document.txt Save Tty Collapse Del | 1 alpha diff --git a/test/snapshots/tagalign2col.golden b/test/snapshots/tagalign2col.golden index afa1c1ec..81329d0c 100644 --- a/test/snapshots/tagalign2col.golden +++ b/test/snapshots/tagalign2col.golden @@ -1,5 +1,5 @@ == snap onecol grid=160x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign2col/cwd/deep/proj/document.txt Save Tty Collapse De /tmp/pardes-snap/tagalign2col/cwd Tty Save Mode Filter Collapse Del | 1 alpha ls Left diff --git a/test/snapshots/tagbottom.golden b/test/snapshots/tagbottom.golden index 95ef0529..8d770358 100644 --- a/test/snapshots/tagbottom.golden +++ b/test/snapshots/tagbottom.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagbottom/cwd/top.txt Save Tty Collapse Del | 1 aaa diff --git a/test/snapshots/tagbottomimage.golden b/test/snapshots/tagbottomimage.golden index 3f446682..06d23077 100644 --- a/test/snapshots/tagbottomimage.golden +++ b/test/snapshots/tagbottomimage.golden @@ -1,5 +1,5 @@ == snap img-top grid=150x31 cursor=11,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagbottomimage/cwd Tty Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/tagbottomshort.golden b/test/snapshots/tagbottomshort.golden index c11fe4ac..3fd3b180 100644 --- a/test/snapshots/tagbottomshort.golden +++ b/test/snapshots/tagbottomshort.golden @@ -1,5 +1,5 @@ == snap roomy grid=80x11 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | 2 two @@ -11,21 +11,21 @@ | | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap two-body grid=80x5 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | 2 two | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap one-body grid=80x4 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap tag-only grid=80x2 cursor=79,1 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap regrown grid=80x11 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | 2 two @@ -37,7 +37,7 @@ | | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap leader-one-body grid=80x4 cursor=7,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | 1 one SPC | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del diff --git a/test/snapshots/tagcmd.golden b/test/snapshots/tagcmd.golden index 4270eb76..7853de32 100644 --- a/test/snapshots/tagcmd.golden +++ b/test/snapshots/tagcmd.golden @@ -1,5 +1,5 @@ == snap edited grid=100x31 cursor=13,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagcmd/cwd/c.txt * Save Tty Collapse Del | 1 ZZEDITline 1 diff --git a/test/snapshots/tagnav.golden b/test/snapshots/tagnav.golden index 45d64b42..61a40af5 100644 --- a/test/snapshots/tagnav.golden +++ b/test/snapshots/tagnav.golden @@ -1,5 +1,5 @@ == snap start grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagnav/cwd/w.txt Save Tty Coll /tmp/pardes-snap/tagnav/cwd Tty Save Mode Filte | 1 alpha ls @@ -51,12 +51,12 @@ |3: 1 alpha ls == snap topbar-dump-word grid=100x31 cursor=46,0 == snap topbar-exec grid=100x31 cursor=7,3 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill Restore /tmp/pardes-snap/tag +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit Restore /tmp/pardes-snap/tag |3: 1 alpha Dump ls == snap topbar-restore-word grid=100x31 cursor=72,0 |3: 1 alpha ls == snap topbar-restored grid=100x31 cursor=7,3 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit |3: 1 alpha $ ls |5: 3 gamma $ |6: ── restored history ── diff --git a/test/snapshots/tagnav.snap b/test/snapshots/tagnav.snap index c9ac9605..95c4b751 100644 --- a/test/snapshots/tagnav.snap +++ b/test/snapshots/tagnav.snap @@ -94,7 +94,7 @@ key c-w k stable 400 5000 snap workspace-tag # `$` is the last cell; four long-word steps back land on `Dump`, and the -# execute key runs it and gives the keyboard back to the body FIRST -- `Kill` +# execute key runs it and gives the keyboard back to the body FIRST -- `Exit` # lives up here too, so a builtin that frees the session must never return # into a focused header. Dump grows a `Restore ` word, which is also the # case where the line gets longer than the column you were parked on. diff --git a/test/snapshots/tagpath.golden b/test/snapshots/tagpath.golden index a2ea32fc..ba22a859 100644 --- a/test/snapshots/tagpath.golden +++ b/test/snapshots/tagpath.golden @@ -1,5 +1,5 @@ == snap start grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagpath/cwd/c.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/theme.golden b/test/snapshots/theme.golden index 39bfaa23..51bb77ff 100644 --- a/test/snapshots/theme.golden +++ b/test/snapshots/theme.golden @@ -1,5 +1,5 @@ == snap orchard grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/theme/cwd Tty Save Mode Filter /tmp/pardes-snap/theme/cwd Tty Save Mode Filter | ls ls diff --git a/test/snapshots/themesel.golden b/test/snapshots/themesel.golden index 8dd13c43..b3100e27 100644 --- a/test/snapshots/themesel.golden +++ b/test/snapshots/themesel.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/themesel/cwd/t.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/tinywin.golden b/test/snapshots/tinywin.golden index b759e810..0be511c7 100644 --- a/test/snapshots/tinywin.golden +++ b/test/snapshots/tinywin.golden @@ -1,5 +1,5 @@ == snap stacked grid=100x31 cursor=14,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/tinywin/cwd Tty Save Mode Filter Collapse Del | $ :^[n^[n^[n @@ -28,7 +28,7 @@ |$ /tmp/pardes-snap/tinywin/cwd Tty Save Mode Filter Collaps | /+New Save Tty Collapse Del == snap columns grid=100x31 cursor=23,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/tinywin/cwd Tty Save Mode Filter Collapse Del | $ :^[n^[n^[n cn cn cn diff --git a/test/snapshots/topbarexec.golden b/test/snapshots/topbarexec.golden index 4218825b..d83dff70 100644 --- a/test/snapshots/topbarexec.golden +++ b/test/snapshots/topbarexec.golden @@ -1,5 +1,5 @@ == snap selected grid=90x21 cursor=14,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/topbarexec/cwd Tty Save M /tmp/pardes-snap/topbarexec/cwd Tty Save M | ls ls diff --git a/test/snapshots/topbarexec.snap b/test/snapshots/topbarexec.snap index f5f09a08..516a23b3 100644 --- a/test/snapshots/topbarexec.snap +++ b/test/snapshots/topbarexec.snap @@ -4,8 +4,8 @@ # selection at all. # # But a selection is only an argument to a builtin that has somewhere to put -# one. `Kill`, `Debug`, `NextColor` and the rest match their name WHOLE — that -# is what makes `Kill foo` a shell command and not Kill — so splicing a sweep +# one. `Exit`, `Debug`, `NextColor` and the rest match their name WHOLE — that +# is what makes `Exit foo` a shell command and not Exit — so splicing a sweep # onto them produced a name matching no builtin, which fell out of the builtin # parser and into a SHELL, as a command nobody typed (`bash: Debug: command # not found`). It only ever bit you with a terminal open, because that is diff --git a/test/snapshots/tty.golden b/test/snapshots/tty.golden index 31aacf56..3bb73d72 100644 --- a/test/snapshots/tty.golden +++ b/test/snapshots/tty.golden @@ -1,5 +1,5 @@ == snap tty-on grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/tty/cwd Tty Save Mode Filter C /tmp/pardes-snap/tty/cwd Tty Save Mode Filter C | $ ls ls diff --git a/test/snapshots/ttyclick.golden b/test/snapshots/ttyclick.golden index 14344371..5eb8bc25 100644 --- a/test/snapshots/ttyclick.golden +++ b/test/snapshots/ttyclick.golden @@ -1,5 +1,5 @@ == snap tty-bodyclick grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttyclick/cwd Tty Save Mode Fil /tmp/pardes-snap/ttyclick/cwd Tty Save Mode Fil | $ ls ls diff --git a/test/snapshots/ttyedit.golden b/test/snapshots/ttyedit.golden index d76fc7e0..092cb481 100644 --- a/test/snapshots/ttyedit.golden +++ b/test/snapshots/ttyedit.golden @@ -1,5 +1,5 @@ == snap before grid=100x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttyedit/cwd Tty Save Mode Filt /tmp/pardes-snap/ttyedit/cwd Tty Save Mode Filt | ls ls diff --git a/test/snapshots/ttyfollow.golden b/test/snapshots/ttyfollow.golden index 77f27d8e..d0b554bd 100644 --- a/test/snapshots/ttyfollow.golden +++ b/test/snapshots/ttyfollow.golden @@ -1,5 +1,5 @@ == snap held-pre grid=100x31 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttyfollow/cwd Tty Save Mode Fi /tmp/pardes-snap/ttyfollow/cwd Tty Save Mode Fi | 185 ls diff --git a/test/snapshots/ttyhelp.golden b/test/snapshots/ttyhelp.golden index b6125242..be95be2b 100644 --- a/test/snapshots/ttyhelp.golden +++ b/test/snapshots/ttyhelp.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=4,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttyhelp/cwd Tty Save Mode Filter Collapse Del | $ diff --git a/test/snapshots/ttylook.golden b/test/snapshots/ttylook.golden index 122eba66..108a8f86 100644 --- a/test/snapshots/ttylook.golden +++ b/test/snapshots/ttylook.golden @@ -1,5 +1,5 @@ == snap tok1 grid=120x31 cursor=2,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttylook/cwd Tty Save Mode Filter Collaps /tmp/pardes-snap/ttylook/cwd Tty Save Mode Filter Collaps | ls ls diff --git a/test/snapshots/ttyonly.golden b/test/snapshots/ttyonly.golden index 20d11e30..e4376308 100644 --- a/test/snapshots/ttyonly.golden +++ b/test/snapshots/ttyonly.golden @@ -1,5 +1,5 @@ == snap ttyonly grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttyonly/cwd Tty Save Mode Filter Collapse Del | $ echo TTY''ONLY diff --git a/test/snapshots/ttypaste.golden b/test/snapshots/ttypaste.golden index 21dbbd85..6222bf03 100644 --- a/test/snapshots/ttypaste.golden +++ b/test/snapshots/ttypaste.golden @@ -1,5 +1,5 @@ == snap bracketed-paste-reached-the-shell grid=100x31 cursor=18,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttypaste/cwd Tty Save Mode Fil /tmp/pardes-snap/ttypaste/cwd Tty Save Mode Fil | $ ls ls diff --git a/test/snapshots/ttyprompt.golden b/test/snapshots/ttyprompt.golden index 797b9040..28cdbbee 100644 --- a/test/snapshots/ttyprompt.golden +++ b/test/snapshots/ttyprompt.golden @@ -1,5 +1,5 @@ == snap greeted grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttyprompt/cwd Tty Save Mode Fi /tmp/pardes-snap/ttyprompt/cwd Tty Save Mode Fi | ls ls diff --git a/test/snapshots/ttytaken.golden b/test/snapshots/ttytaken.golden index a6f27e30..72708e64 100644 --- a/test/snapshots/ttytaken.golden +++ b/test/snapshots/ttytaken.golden @@ -1,5 +1,5 @@ == snap opened grid=210x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttytaken/cwd/cmd.txt Save Tty Collapse Del /tmp/pardes-snap/ttytaken/cwd Tty Save Mode Filter Collapse Del | 1 echo TAKEN''ONE ls diff --git a/test/snapshots/tutor.golden b/test/snapshots/tutor.golden index 23f6b28e..d9a87df8 100644 --- a/test/snapshots/tutor.golden +++ b/test/snapshots/tutor.golden @@ -1,5 +1,5 @@ == snap tutor grid=150x31 cursor=7,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tutor/cwd Tty Save Mode Filter Collapse Del /tmp/pardes-snap/tutor/cwd Tty Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/wheeldrift.golden b/test/snapshots/wheeldrift.golden index 50bd6580..256c2999 100644 --- a/test/snapshots/wheeldrift.golden +++ b/test/snapshots/wheeldrift.golden @@ -1,5 +1,5 @@ == snap home grid=70x17 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kil +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/wheeldrift/cwd/drift.txt Save Tty Collapse Del | 1 line 1_0123456789_abcdefghij_ZEND Wrap diff --git a/test/snapshots/winch.golden b/test/snapshots/winch.golden index e6206961..b9732a32 100644 --- a/test/snapshots/winch.golden +++ b/test/snapshots/winch.golden @@ -1,5 +1,5 @@ == snap storm grid=100x31 cursor=4,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/winch/cwd Tty Save Mode Filter /tmp/pardes-snap/winch/cwd Tty Save Mode Filter | $ ls ls @@ -19,7 +19,7 @@ | /tmp/pardes-snap/winch/cwd Tty Save Mode Filter | ls == snap resized grid=106x35 cursor=4,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/winch/cwd Tty Save Mode Filter Co /tmp/pardes-snap/winch/cwd Tty Save Mode Filter Co | $ ls ls diff --git a/test/snapshots/windownav.golden b/test/snapshots/windownav.golden index d665c655..5bdfb99f 100644 --- a/test/snapshots/windownav.golden +++ b/test/snapshots/windownav.golden @@ -1,5 +1,5 @@ == snap start grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/windownav/cwd/w.txt Save Tty C /tmp/pardes-snap/windownav/cwd Tty Save Mode Fi | 1 alpha ls Left diff --git a/test/snapshots/windowops.golden b/test/snapshots/windowops.golden index 4dbb2b16..9ee02837 100644 --- a/test/snapshots/windowops.golden +++ b/test/snapshots/windowops.golden @@ -1,5 +1,5 @@ == snap hover-v grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol ╎ New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/windowops/cwd Tty Save Mode F╎ /tmp/pardes-snap/windowops/cwd Tty Save Mode Fi | ls ╎ ls diff --git a/test/snapshots/wrap.golden b/test/snapshots/wrap.golden index 69887484..8ef0ca9f 100644 --- a/test/snapshots/wrap.golden +++ b/test/snapshots/wrap.golden @@ -34,7 +34,7 @@ |9: 3 third line |10: 4 == snap on-wide grid=128x15 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/wrap/cwd/long.txt Save Tty Collapse Del | 1 0---------1---------2---------3---------4---------5---------6---------7---------8---------9---------A---------B---------↩ diff --git a/test/snapshots/yankpaste.golden b/test/snapshots/yankpaste.golden index a3ca404e..2efcd66d 100644 --- a/test/snapshots/yankpaste.golden +++ b/test/snapshots/yankpaste.golden @@ -1,5 +1,5 @@ == snap linewise-below grid=100x31 cursor=13,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kill +|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/yankpaste/cwd/f.txt * Save Tty Collapse Del | 1 line 1 -- cgit v1.3 From 06fe2290db7d0eb654b9a908358942cfde298e29 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 28 Sep 2026 16:15:15 -0300 Subject: $ keeps the selections a shell command exits 0 on, and line end is gl $ was a second key for line end, which helix never meant: in helix it is shell_keep_pipe. It now arms the pipe prompt with a $ marker, runs the command once per range with that range's text on stdin, and keeps the ranges it exits 0 on; the primary stays if kept, else the last kept range takes over, and keeping none changes nothing. The runner's answer is all or nothing, so the command runs in a subshell whose status is echoed as its output. Line end stays on helix's own gl and End; the snapshots, tutor and docs that pressed $ for it press gl. Co-Authored-By: Claude Opus 5.5 --- docs/design.typ | 2 +- docs/helix-keys.md | 4 +-- src/Pipe.zig | 63 +++++++++++++++++++++++++++++++++++++++++++-- src/config.zig | 4 ++- src/modal.zig | 7 ++++- src/tutor.txt | 2 +- test/panes.zig | 6 ++++- test/pdf.zig | 3 ++- test/snapshots/badutf.snap | 2 +- test/snapshots/hscroll.snap | 4 +-- test/snapshots/tagnav.snap | 4 +-- 11 files changed, 86 insertions(+), 15 deletions(-) (limited to 'src/tutor.txt') diff --git a/docs/design.typ b/docs/design.typ index 234c3692..4765fabd 100644 --- a/docs/design.typ +++ b/docs/design.typ @@ -1916,7 +1916,7 @@ delayed, theme-derived highlight of the exact side-effect-free selection that Look would expand; it neither focuses nor installs that selection, and pointer leave/input/content invalidation cancels it. Wheel: scroll hovered pane, batched. -*Modes.* normal: helix motions (`h j k l w b e W B E 0 $ ^`, `f F t T` and +*Modes.* normal: helix motions (`h j k l w b e W B E 0 gl ^`, `f F t T` and `Alt-.`, counts, `gg ge gh gs gl g| G`, `Ctrl-d/u/f/b`, `zt zz zb zj zk`), insert entries (`i a I A o O`), selections (`v` extend — displayed as a fourth mode name, "select" — `x`/`X`/`Alt-x`, `%`, `;`/`Alt-;`, `_`), MULTIPLE CURSORS diff --git a/docs/helix-keys.md b/docs/helix-keys.md index 14a39239..cd33ccbe 100644 --- a/docs/helix-keys.md +++ b/docs/helix-keys.md @@ -100,7 +100,7 @@ language-backend queries, and the shell pipe. | `w` `b` `e` | select to next word start / prev word start / next word end | full helix model incl. landing conventions (block cursor one before the next word after `w`) and newline/punct/EOF edges | helix-verified | | `W` `B` `E` | long-word (WORD) variants | same | helix-verified | | `Home` / `End` | line start / line end | matches `goto_line_start` / `goto_line_end` | helix-verified | -| `0` / `$` / `^` | line start / line end / first non-ws | `0` and `^` are pardes extras — helix leaves those two unbound (it spells them `gh`/`gs`). `$` is NOT unbound in helix: it is `shell_keep_pipe` (`keymap/default.rs`), and taking it for line-end is a deliberate divergence — see the `$` row in C. It is the one shell command still unimplemented: it needs a per-selection verdict, where the runner's answer is atomic. `0` is a count digit while a count is pending | pardes-specific (`$`: deliberate) | +| `0` / `^` | line start / first non-ws | pardes extras: helix leaves both unbound (it spells them `gh`/`gs`), so they collide with nothing. Line end is helix's own `gl` and End. `0` is a count digit while a count is pending | pardes-specific | | `G` | bare `G` is a **no-op**; `G` = goto line n | vim-ism removed (phase 5): helix `goto_line` only acts with a count; `ge` is goto-last-line | helix-verified | | `gg` / `gg` | goto first line / line n | | helix-verified | | `ge` | goto last content line | matches `goto_last_line` (ignores the trailing empty line) | helix-verified | @@ -146,6 +146,7 @@ language-backend queries, and the shell pipe. | `A-\|` | the same, and the output is DISCARDED — the text is not touched at all | helix `shell_pipe_to`. For a command run for its effect. Marker `\|-` | out of corpus | | `!` | run with NO stdin, insert the output BEFORE each selection | helix `shell_insert_output`. Runs ONCE and every cursor gets that one answer, as helix does — ten cursors and `date` give ten identical stamps. Marker `!` | out of corpus | | `A-!` | the same, appended AFTER each selection | helix `shell_append_output`. Marker `!+` | out of corpus | +| `$` | keep only the selections a shell command exits 0 on: each range's text on its stdin, one run per range, its output discarded; the primary stays if kept, else the last kept range takes over, and keeping none changes nothing | helix `shell_keep_pipe`. The runner's answer is all or nothing, so the command runs as `(cmd) >/dev/null; echo $?` and the status comes back as the output. Marker `$` | out of corpus | ## B. To implement @@ -355,7 +356,6 @@ text. | `Ctrl-s` (normal) | save jumplist position | jumplist itself is implemented (`Ctrl-o`/`Ctrl-i`, section A); only the explicit save point is skipped | | `Alt-u` / `Alt-U` | undo-history earlier/later | history timeline — linear snapshot u/U covers pardes | | `K Alt-K`, `Alt-:` | regex keep/remove, ensure-forward | `K`/`Alt-K` are the same prompt `s`/`S` now have, filtering instead of splitting (`s S` moved to "Regex selection" in A, the rest of the family to "Multiple cursors") | -| `Alt-\|` `!` `Alt-!` `$` | shell pipe-to (output discarded), insert output, append output, keep-by-exit-status | shell — `\|` (`shell_pipe`, output replaces the selection) is implemented in section A; these four are the other members of helix's shell family. `$` is additionally taken for line-end here (section A) | | `:` | command mode | side-effects/file-ops — pardes builtins live in the tag, and `:` is bound to focusing it (section A) | | `gf` | goto file under selection | covered by pardes Enter-look | | `Ctrl-z` | suspend | pardes IS the terminal multiplexer | diff --git a/src/Pipe.zig b/src/Pipe.zig index 1ad7b826..37145edf 100644 --- a/src/Pipe.zig +++ b/src/Pipe.zig @@ -35,6 +35,7 @@ pub fn pipeMarker(how: modal.Normal.PipeBehavior) []const u8 { .ignore => config.pipe_marker_to, .insert => config.pipe_marker_insert, .append => config.pipe_marker_append, + .keep => config.pipe_marker_keep, }; } @@ -117,7 +118,13 @@ pub fn submitPipe(p: *Pardes, id: usize) void { p.gpa.free(inputs); return; } - const command_copy = p.gpa.dupe(u8, command) catch { + // `$` wants a verdict per selection where the runner's is all or + // nothing: the command runs in a subshell whose exit status becomes the + // output, so the runner always succeeds and the answer says which kept + const command_copy = (if (how == .keep) + std.fmt.allocPrint(p.gpa, "(\n{s}\n) >/dev/null; echo $?", .{command}) + else + p.gpa.dupe(u8, command)) catch { for (inputs) |input| p.gpa.free(@constCast(input.bytes)); p.gpa.free(inputs); return; @@ -202,7 +209,7 @@ fn pipeCut(wait: *const PendingPipe, content: []const u8, i: usize) ?struct { lo const hi = @max(range.anchor, range.head); if (hi > content.len) return null; return switch (wait.how) { - .replace, .ignore => .{ .lo = lo, .hi = hi }, + .replace, .ignore, .keep => .{ .lo = lo, .hi = hi }, .insert => .{ .lo = lo, .hi = lo }, .append => .{ .lo = hi, .hi = hi }, }; @@ -260,6 +267,21 @@ pub fn pipeResponse( if (changed) return p.reportError(wait.pane, "pipe", error.FileChangedWhileFiltering); if (wait.how == .ignore) return; + if (wait.how == .keep) { + // helix shell_keep_pipe: the primary stays if kept, else the last + // kept range takes over; keeping none changes nothing + var kept: [panes.Text.max_selections]modal.Selection = undefined; + var m: usize = 0; + var pri: ?usize = null; + for (0..wait.nranges) |i| { + if (!std.mem.eql(u8, std.mem.trim(u8, outputs[i], " \n"), "0")) continue; + if (i == wait.primary) pri = m; + kept[m] = wait.ranges[i]; + m += 1; + } + if (m == 0) return; + return t.setRanges(content, kept[0..m], &.{}, pri orelse m - 1, wait.explicit); + } const n = wait.nranges; var total_output: usize = 0; @@ -366,6 +388,43 @@ test "| in a tag pipes the tag's own text, and undo there brings it back" { try std.testing.expect(std.mem.startsWith(u8, pardes.tagline.curTail(pane), " Save ")); } +test "$ keeps the selections the command exits 0 on, and a real shell gives that verdict" { + const gpa = std.testing.allocator; + const p = try Pardes.init(gpa, .{ .tty_only = true }); + defer p.deinit(); + while (p.nextEffect()) |_| {} + const pane = try p.setTestFile("aa bb cc\n"); + const ranges = [_]modal.Selection{ + .{ .anchor = 0, .head = 2 }, + .{ .anchor = 3, .head = 5 }, + .{ .anchor = 6, .head = 8 }, + }; + pane.body.setRanges(pane.file.?.content, &ranges, &.{}, 1, true); + p.update(.{ .key = .{ .cp = '$' } }); + try std.testing.expectEqualStrings(config.pipe_marker_keep, pane.promptText().?); + p.update(.{ .key = .{ .cp = 'g', .text = "grep -v b" } }); + p.update(.{ .key = .{ .cp = Key.enter } }); + const id = nextPipeEffect(p) orelse return error.MissingPipeEffect; + const request = p.pipe.pipeRequest(id) orelse return error.MissingPipeRequest; + try std.testing.expectEqual(@as(usize, 3), request.inputs.len); + // the wrapper turns each run's status into its output, as the runner sees it + const job = try selection_pipe.Job.copy(gpa, request); + defer job.deinit(gpa); + var response = selection_pipe.runJob(gpa, std.testing.io, job); + defer response.deinit(gpa); + try std.testing.expect(response.success); + try std.testing.expectEqualStrings("0\n", response.outputs[0]); + try std.testing.expectEqualStrings("1\n", response.outputs[1]); + p.update(.{ .pipe_resp = .{ .id = id, .success = true, .outputs = response.outputs } }); + try std.testing.expectEqualStrings("aa bb cc\n", pane.file.?.content); + var out: [panes.Text.max_selections]modal.Selection = undefined; + const got = pane.body.ranges(pane.file.?.content, 0, &out); + try std.testing.expectEqual(@as(usize, 2), got.n); + try std.testing.expectEqual(@as(usize, 6), out[1].anchor); + // the primary was dropped: the last kept range takes over + try std.testing.expectEqual(@as(usize, 1), got.pri); +} + test "selection pipe replaces all ranges atomically and undo restores them" { const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .tty_only = true }); diff --git a/src/config.zig b/src/config.zig index 4412ef0d..91665b14 100644 --- a/src/config.zig +++ b/src/config.zig @@ -266,10 +266,12 @@ pub const pipe_selection: []const Chord = &.{.{ .cp = '|' }}; pub const pipe_selection_to: []const Chord = &.{.{ .cp = '|', .alt = true }}; pub const insert_output: []const Chord = &.{.{ .cp = '!' }}; pub const append_output: []const Chord = &.{.{ .cp = '!', .alt = true }}; +pub const keep_pipe: []const Chord = &.{.{ .cp = '$' }}; // Armed inputs are parsed from their distinct, nonempty tag markers. pub const pipe_marker_to = " |-"; pub const pipe_marker_insert = " !"; pub const pipe_marker_append = " !+"; +pub const pipe_marker_keep = " $"; pub const search_submit: []const Chord = &.{.{ .cp = Key.enter }}; // Del from the keyboard on a pane with open panes both above and below it @@ -454,7 +456,7 @@ pub const next_long_word_start: []const Chord = &.{.{ .cp = 'W' }}; pub const prev_long_word_start: []const Chord = &.{.{ .cp = 'B' }}; pub const next_long_word_end: []const Chord = &.{.{ .cp = 'E' }}; pub const line_start: []const Chord = &.{ .{ .cp = '0' }, .{ .cp = Key.home } }; -pub const line_end: []const Chord = &.{ .{ .cp = '$' }, .{ .cp = Key.end } }; +pub const line_end: []const Chord = &.{.{ .cp = Key.end }}; pub const line_first_nonws: []const Chord = &.{.{ .cp = '^' }}; // Bare G does nothing; ge reaches the last line. pub const goto_line: []const Chord = &.{.{ .cp = 'G' }}; diff --git a/src/modal.zig b/src/modal.zig index aec1c579..bce941d5 100644 --- a/src/modal.zig +++ b/src/modal.zig @@ -128,6 +128,7 @@ pub const Normal = struct { pipe_selection_to, insert_output, append_output, + keep_pipe, search, search_next, search_prev, @@ -196,10 +197,13 @@ pub const Normal = struct { insert, /// `A-!` — no stdin, and the output is appended AFTER each selection. append, + /// `$` — stdin is the selection; the output is discarded, and only the + /// selections the command exits 0 on are kept. + keep, /// Do the selections become stdin? helix's `pipe` flag. pub fn pipes(b: PipeBehavior) bool { - return b == .replace or b == .ignore; + return b == .replace or b == .ignore or b == .keep; } }; @@ -597,6 +601,7 @@ pub const Normal = struct { if (key.has(.pipe_selection_to)) return resultAction(.{ .pipe_selection = .ignore }); if (key.has(.insert_output)) return resultAction(.{ .pipe_selection = .insert }); if (key.has(.append_output)) return resultAction(.{ .pipe_selection = .append }); + if (key.has(.keep_pipe)) return resultAction(.{ .pipe_selection = .keep }); if (key.has(.search)) return resultAction(.search); if (key.has(.search_next)) return resultAction(.{ .search_step = .forward }); if (key.has(.search_prev)) return resultAction(.{ .search_step = .backward }); diff --git a/src/tutor.txt b/src/tutor.txt index 507ce40e..0893415e 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -461,7 +461,7 @@ typed N frontends share ONE screen at the smallest common grid the default 9P socket works in a daemon too - KEYS h j k l w b e 0 $ ^ gg ge f F t T v x d c y p + KEYS h j k l w b e 0 gl ^ gg ge f F t T v x d c y p i a I A o O u undo U redo motions SELECT, so `i` types at the selection's start and `;` collapses first diff --git a/test/panes.zig b/test/panes.zig index 0b9909ad..f0e1ba3d 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -1954,7 +1954,11 @@ test "a prompt owns the pipe behavior through cancellation and submission" { p.update(.{ .key = .{ .cp = Key.enter } }); const pending = p.pipe.wait orelse return error.MissingPipe; try std.testing.expectEqual(how, pending.how); - try std.testing.expectEqualStrings("cat", pending.command); + // `$` runs the command in a subshell that reports its status + if (how == .keep) + try std.testing.expect(std.mem.indexOf(u8, pending.command, "\ncat\n") != null) + else + try std.testing.expectEqualStrings("cat", pending.command); try std.testing.expectEqual(@as(usize, 1), pending.inputs.len); try std.testing.expectEqualStrings(if (how.pipes()) "one" else "", pending.inputs[0].bytes); try std.testing.expect(pane.prompt == .none); diff --git a/test/pdf.zig b/test/pdf.zig index 3a592451..8b94c1ae 100644 --- a/test/pdf.zig +++ b/test/pdf.zig @@ -859,7 +859,8 @@ test "MuPDF pane renders, navigates, searches, and round-trips its page" { p.update(.{ .key = .{ .cp = '2' } }); p.update(.{ .key = .{ .cp = 'l' } }); try std.testing.expect(pane.pdf.?.pan_x > 0); - p.update(.{ .key = .{ .cp = '$' } }); + p.update(.{ .key = .{ .cp = 'g' } }); + p.update(.{ .key = .{ .cp = 'l' } }); try std.testing.expectEqual(std.math.maxInt(u16), pane.pdf.?.pan_x); p.update(.{ .key = .{ .cp = '2' } }); p.update(.{ .key = .{ .cp = 'h' } }); diff --git a/test/snapshots/badutf.snap b/test/snapshots/badutf.snap index ddd1588b..7171df00 100644 --- a/test/snapshots/badutf.snap +++ b/test/snapshots/badutf.snap @@ -19,6 +19,6 @@ stable 700 20000 # first visible CJK glyph intact instead of starting inside its UTF-8 bytes. key space t w stable 400 5000 -key $ +key g l stable 700 10000 snap hscroll-midglyph diff --git a/test/snapshots/hscroll.snap b/test/snapshots/hscroll.snap index 6f73154f..05366323 100644 --- a/test/snapshots/hscroll.snap +++ b/test/snapshots/hscroll.snap @@ -36,10 +36,10 @@ send \x1b[<67;10;8M send \x1b[<67;10;8M stable 400 5000 snap clamped -# $ walks the cursor to the line end: the view follows with the margin +# gl walks the cursor to the line end: the view follows with the margin key g g stable 400 5000 -key $ +key g l stable 400 5000 snap dollar # 0 back to column zero: the view snaps home diff --git a/test/snapshots/tagnav.snap b/test/snapshots/tagnav.snap index 95c4b751..f145480e 100644 --- a/test/snapshots/tagnav.snap +++ b/test/snapshots/tagnav.snap @@ -98,7 +98,7 @@ snap workspace-tag # lives up here too, so a builtin that frees the session must never return # into a focused header. Dump grows a `Restore ` word, which is also the # case where the line gets longer than the column you were parked on. -key $ +key g l stable 400 5000 snap topbar-dollar key B B B B @@ -114,7 +114,7 @@ snap topbar-exec key c-w k key c-w k stable 400 5000 -key $ B B +key g l B B stable 400 5000 snap topbar-restore-word key tab -- cgit v1.3 From 15ddd805905f785f4dde463d4d6b91e1d2c41e26 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 00:17:45 -0300 Subject: A pane's last row of text is no resize handle; the grip is, and the GUI's rule A press on a pane's last row began a seam drag, so the row could not be clicked or swept like the rest of the text (rsearch dragged the handle out of the way first). Now no row of text is a handle: in the GUI a press on the 2 px rule between two panes drags their seam, and anywhere the grip does, as acme's button moves a window -- dragged up or down its own column it moves the pane's top, either pane down to its tag alone (acme's coldragwin), dragged down inside itself too. The hover hint over a last row is gone; column edges resize as they did. Scripts that dragged a seam drag a grip instead and match their goldens; six goldens lost the hint or moved a cursor to the clicked text, re-recorded by name. Co-Authored-By: Claude Opus 5.5 --- docs/tags.md | 9 ++++++ src/draw.zig | 11 ++------ src/gui/gui.zig | 9 +++++- src/layout.zig | 17 ++++++++++-- src/mouse.zig | 59 ++++++++++++++++++++++++++++++++++------ src/pardes.zig | 5 ++++ src/tutor.txt | 9 ++++++ test/snapshots/builtins.golden | 1 - test/snapshots/lookrange.golden | 1 - test/snapshots/lsprelpath.golden | 1 - test/snapshots/rsearch.golden | 17 ++++-------- test/snapshots/rsearch.snap | 9 ++---- test/snapshots/shrinktag.snap | 37 +++++++++++++------------ test/snapshots/splitparent.snap | 9 +++--- test/snapshots/tagbottom.golden | 4 +-- test/snapshots/tagbottom.snap | 18 ++++++------ test/snapshots/windowops.golden | 3 +- test/snapshots/windowops.snap | 13 +++++---- 18 files changed, 149 insertions(+), 83 deletions(-) (limited to 'src/tutor.txt') diff --git a/docs/tags.md b/docs/tags.md index 885eb22f..c1034cb4 100644 --- a/docs/tags.md +++ b/docs/tags.md @@ -30,6 +30,15 @@ edge will land, beside the rule as a border drag's rail does. Only columns between the old and new positions shift. Each column keeps its width, panes and command text. +Two panes in a column are resized as acme's windows are, by the grip: drag +a pane's grip up or down its own column and its top follows, the pane above +taking or giving the rows, either one down to its tag alone (acme's +coldragwin keeps a window its tag line); drop it in another column and the +pane moves there. In the GUI the 2 px rule between two panes also drags +their seam. No row of text is a handle: a pane's last row takes a click like +any other, and a terminal, which draws no rule, resizes by the grip. A +column's right edge still drags its width. + When Look opens the first document and its source column is too narrow for a new column, it splits below the originating pane, just like `Tty`, instead of inserting at the top of the leftmost column. The originating terminal is diff --git a/src/draw.zig b/src/draw.zig index fb770b60..4ad1a1fe 100644 --- a/src/draw.zig +++ b/src/draw.zig @@ -504,15 +504,8 @@ pub fn render(p: *Pardes, arena: std.mem.Allocator) !*Surface { s.addRegion(.{ .kind = .guide, .rect = .{ .x = p.hover_col, .y = p.topBarHeight(), .w = 1, .h = s.rows -| p.topBarHeight() } }); } } - for (0..p.ncol) |cc| { - if (p.hover_col < p.col_x[cc] or p.hover_col >= p.col_x[cc] + p.col_w[cc]) continue; - // the same seam the h-handle hit test picks (see there) - if (mouse.seamIdxAt(p, cc, p.hover_row) != null) { - var col = p.col_x[cc]; - while (col < p.col_x[cc] + p.col_w[cc]) : (col += 1) s.overlayDash(col, p.hover_row, "╌"); - s.addRegion(.{ .kind = .guide, .rect = .{ .x = p.col_x[cc], .y = p.hover_row, .w = p.col_w[cc], .h = 1 } }); - } - } + // No hint over a pane's last row: a row of text is no handle; two + // panes resize by the rule between them or by the grip. for (0..p.ncol -| 1) |cn| { if (p.hover_col != p.col_x[cn] + p.col_w[cn] -| 1) continue; if (mouse.seamIdxAt(p, cn, p.hover_row) != null) continue; diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 141a802a..ab281cb6 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1972,7 +1972,11 @@ fn glyphForCodepoint(g: *const Gui, cp: u32) FaceGlyph { } const CellLayout = struct { w: f32, h: f32, x_off: f32, y_off: f32 }; -const MouseCell = struct { col: u16, row: u16, body_hit: ?pardes.Mouse.BodyHit = null, tag_hit: ?pardes.TagHit = null }; +const MouseCell = struct { col: u16, row: u16, body_hit: ?pardes.Mouse.BodyHit = null, tag_hit: ?pardes.TagHit = null, rule_above: bool = false }; + +/// How near a row's top edge a press is on the rule drawn there between two +/// panes: the rule's 2 px and a pixel either side. +const rule_grab_px: f32 = 3; const WindowGeometry = struct { window_w: f32, window_h: f32, @@ -3420,6 +3424,7 @@ fn dispatch(g: *Gui, in: *Input, sev: *const c.SDL_Event) void { .row = mc.row, .tag_hit = mc.tag_hit, .body_hit = mc.body_hit, + .rule_above = mc.rule_above, .ctrl = (c.SDL_GetModState() & c.SDL_KMOD_CTRL) != 0, }, }); @@ -3720,6 +3725,8 @@ fn gridCellAtDimensions( ) MouseCell { const row: u16 = @intFromFloat(@min(@floor(@max(y, 0) / @max(body_h, 1)), 10_000)); var point: MouseCell = .{ .col = @intFromFloat(@min(@floor(@max(x, 0) / @max(body_w, 1)), 10_000)), .row = row }; + // On the rule over this row, which is where two panes meet if they do. + point.rule_above = row > 0 and @max(y, 0) - @as(f32, @floatFromInt(row)) * @max(body_h, 1) < rule_grab_px; if (core) |p| if (p.presentation.pointerFractional(p.screen_w, p.screen_h, x / @max(body_w, 1), y / @max(body_h, 1))) |mapped| { for (p.surface.tagLayers()) |*layer| { if (layer.tagHit(mapped.x * body_w, mapped.y * body_h, body_w, body_h, tagline_w, @floatFromInt(p.row_metrics.tagline_h))) |hit| { diff --git a/src/layout.zig b/src/layout.zig index 6de7a912..25c95d30 100644 --- a/src/layout.zig +++ b/src/layout.zig @@ -162,8 +162,15 @@ pub fn targetColumn(p: *Pardes, cur_x: u16) usize { } pub fn splitRowForExtent(y: u16, h: u16, cur_y: u16) ?u16 { + return splitRowFor(y, h, cur_y, null); +} + +/// As `splitRowForExtent`, each pane keeping at least `least` rows when +/// given: a pane dragged by its grip within its own column is how a +/// terminal resizes, and acme lets either window keep only its tag. +fn splitRowFor(y: u16, h: u16, cur_y: u16, least: ?u16) ?u16 { if (h < 2) return null; - const min_each: u16 = if (h >= config.MINH * 2) config.MINH else 1; + const min_each: u16 = least orelse if (h >= config.MINH * 2) config.MINH else 1; const lo = y +| min_each; const hi = y + h - min_each; if (lo > hi) return y + h / 2; @@ -176,7 +183,11 @@ pub fn movePlacement(p: *Pardes, id: usize, cur_x: u16, cur_y: u16) ?MovePlaceme if (tc == src.col and p.col_n[src.col] == 1) return null; if (tc == src.col) { const sr = p.rects[id]; - if (cur_y >= sr.y and cur_y < sr.y + sr.h) return null; + // Dropped on itself it stays, unless dragged down from its top with + // a pane above: its top moves down there, the pane above taking the + // rows, as acme's window dragged by its button does. With no rule + // between panes, that is how a terminal resizes them. + if (cur_y >= sr.y and cur_y < sr.y + sr.h and (src.idx == 0 or cur_y <= sr.y)) return null; } var heights: [MAX_PANES]u16 = @splat(0); for (0..p.ncol) |c| { @@ -196,7 +207,7 @@ pub fn movePlacement(p: *Pardes, id: usize, cur_x: u16, cur_y: u16) ?MovePlaceme const pid = p.col_panes[tc][k]; if (pid == id) continue; const h = heights[pid]; - const row = splitRowForExtent(y, h, cur_y) orelse { + const row = splitRowFor(y, h, cur_y, if (tc == src.col) BOX_H else null) orelse { y +|= h; continue; }; diff --git a/src/mouse.zig b/src/mouse.zig index 36786612..1ca53017 100644 --- a/src/mouse.zig +++ b/src/mouse.zig @@ -97,13 +97,50 @@ fn cornerFixture(gpa: std.mem.Allocator) !*Pardes { return p; } +test "a pane's last row of text is no resize handle; the rule over the next pane is" { + if (platform == .web) return; + const p = try cornerFixture(std.testing.allocator); + defer p.deinit(); + const seam = seamRowOf(p, 1, 0); + const inside = p.col_x[1] + p.col_w[1] / 2; + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = inside, .row = seam } }); + try std.testing.expect(p.drag != .border_h); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = inside, .row = seam } }); + try std.testing.expect(nudgeRightSeam(p, 2) == seam + 2); +} + +test "a pane's grip dragged up or down its own column moves its top, down to a tag alone above" { + if (platform == .web) return; + const p = try cornerFixture(std.testing.allocator); + defer p.deinit(); + const upper = p.col_panes[1][0]; + const lower = p.col_panes[1][1]; + const grip_x = p.rects[lower].x; + // Up, past the pane above's first row: it keeps one row, its tag. + const top = p.rects[upper].y; + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = grip_x, .row = p.rects[lower].y } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .drag, .col = grip_x, .row = top } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = grip_x, .row = top } }); + p.sync(); + try std.testing.expectEqual(@as(u16, 1), p.rects[upper].h); + try std.testing.expectEqual(lower, p.col_panes[1][1]); + // Down, inside itself: its top follows, the pane above taking the rows. + const to = p.rects[lower].y + 6; + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = grip_x, .row = p.rects[lower].y } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .drag, .col = grip_x, .row = to } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = grip_x, .row = to } }); + p.sync(); + try std.testing.expectEqual(to, p.rects[lower].y); +} + fn nudgeRightSeam(p: *Pardes, delta: i32) u16 { const from = seamRowOf(p, 1, 0); const inside = p.col_x[1] + p.col_w[1] / 2; const to: u16 = @intCast(@as(i32, from) + delta); - p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = inside, .row = from } }); - p.update(.{ .mouse = .{ .button = .left, .kind = .drag, .col = inside, .row = to } }); - p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = inside, .row = to } }); + // On the rule a pixel frontend draws over the lower pane's first row. + p.update(.{ .mouse = .{ .button = .left, .kind = .press, .col = inside, .row = from + 1, .rule_above = true } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .drag, .col = inside, .row = to + 1 } }); + p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = inside, .row = to + 1 } }); p.sync(); return seamRowOf(p, 1, 0); } @@ -437,13 +474,17 @@ pub fn handleMouse(p: *Pardes, m: Mouse) void { return; } } - for (0..p.ncol) |cc| { + // Two panes are resized on the rule between them, never on a + // row of text; with no rule, by the grip, as acme moves a + // window by its button. + if (m.rule_above and mrow > 0) for (0..p.ncol) |cc| { if (mcol < p.col_x[cc] or mcol >= p.col_x[cc] + p.col_w[cc]) continue; - if (seamIdxAt(p, cc, mrow)) |k| { - p.drag = .{ .border_h = .{ .col = cc, .top_idx = k, .cur_y = mrow } }; + const seam = if (p.settings.tag_bottom) mrow else mrow - 1; + if (seamIdxAt(p, cc, seam)) |k| { + p.drag = .{ .border_h = .{ .col = cc, .top_idx = k, .cur_y = seam } }; return; } - } + }; const id = hovered orelse return; const r = p.rects[id]; const pane = p.panes[id] orelse return; @@ -597,7 +638,9 @@ pub fn dragUpdate(p: *Pardes, mcol: u16, mrow: u16, body_hit: ?Mouse.BodyHit) vo if (k + 1 < p.col_n[cc]) { const a = p.rects[p.col_panes[cc][k]]; const b = p.rects[p.col_panes[cc][k + 1]]; - d.cur_y = clampBorderRow(a.y, a.h, b.h, mrow, p.settings.tag_bottom); + // Held by the rule over the lower pane: the seam is the row above. + const seam = if (p.settings.tag_bottom) mrow else mrow -| 1; + d.cur_y = clampBorderRow(a.y, a.h, b.h, seam, p.settings.tag_bottom); } else d.cur_y = mrow; }, .column_move => |*d| d.cur_x = mcol, diff --git a/src/pardes.zig b/src/pardes.zig index ea03b3eb..8dbe6744 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -3483,6 +3483,11 @@ pub const Mouse = struct { ctrl: bool = false, body_hit: ?BodyHit = null, tag_hit: ?TagHit = null, + /// A pixel frontend's press on the rule it draws at the top of this row, + /// which is where two panes meet if they do: the one grab that resizes + /// them there. A row of text never is one; a terminal, with no rule, + /// resizes by the grip. + rule_above: bool = false, }; pub const Key = struct { diff --git a/src/tutor.txt b/src/tutor.txt index 0893415e..c59deeae 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -132,6 +132,15 @@ DelAbove close it, giving the space to the pane above (Del k) DelBelow close it, giving the space to the pane below (Del j) + RESIZE, AS ACME MOVES A WINDOW + the grip (the box left of a pane's tag) drag it: drop it in another + column to move the pane there, or up or down its own + column to move its top, the pane above taking or giving + the rows -- down to its tag alone + the rule in the GUI, the line between two panes drags their seam + a column's right edge drags the column's width + A pane's last row is text like any other, never a handle. + A new file opens in a new COLUMN only if both panes would still get 100 columns of width. Otherwise it stacks in the one you are in. diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 00f53a1b..f40d563e 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -27,7 +27,6 @@ |16: == snap tutor-from-index grid=120x67 cursor=7,16 |10: 1 pardes builtins under SPC h Tutor -|14: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ |15: /Tutor Save Tty Collapse Del |16: 1 |17: 2 PARDES TUTOR diff --git a/test/snapshots/lookrange.golden b/test/snapshots/lookrange.golden index 7d802b0b..f070a953 100644 --- a/test/snapshots/lookrange.golden +++ b/test/snapshots/lookrange.golden @@ -62,7 +62,6 @@ |12: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #616f64,#0d1410,b 7-9 #f5f7ee,#3c614a, 10-10 #e5eee5,#0d1410, 11-149 d,#0d1410, |14: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-18 #e5eee5,#0d1410, 19-149 d,#0d1410, == snap stale grid=150x31 cursor=10,16 -|6: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ == style stale grid=150x31 |10: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-15 #e5eee5,#0d1410, 16-149 d,#0d1410, |11: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-149 d,#0d1410, diff --git a/test/snapshots/lsprelpath.golden b/test/snapshots/lsprelpath.golden index c8121b5a..4cc687ab 100644 --- a/test/snapshots/lsprelpath.golden +++ b/test/snapshots/lsprelpath.golden @@ -117,4 +117,3 @@ |33: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-99 d,#0d1410, |34: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-99 d,#0d1410, == snap clicked grid=100x35 cursor=16,16 -|12: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ diff --git a/test/snapshots/rsearch.golden b/test/snapshots/rsearch.golden index efbd81c9..89c4f7bd 100644 --- a/test/snapshots/rsearch.golden +++ b/test/snapshots/rsearch.golden @@ -18,13 +18,11 @@ |15: 4 count_x again |16: 5 == snap select grid=210x31 cursor=14,10 -|10: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ |16: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig |17: 1 code.txt:4:1-8 |18: 2 pick two words |19: 3 == snap path-open grid=210x31 cursor=16,22 -|10: 4 pick two words |19: /tmp/pardes-snap/rsearch/cwd/sub/dep.txt Save Tty Collapse Del |20: 1 d1 |21: 2 d2 @@ -36,13 +34,8 @@ == snap step2 grid=210x31 cursor=13,9 == snap step3 grid=210x31 cursor=13,9 == snap selclick grid=210x31 cursor=14,10 -|11: -|12: -|13: -|14: -|15: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig -== snap outside grid=210x31 cursor=14,10 -|10: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig -|11: 1 code.txt:4:10-14 -|12: 2 pick two words -|13: 3 +== snap outside grid=210x31 cursor=20,10 +|25: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig +|26: 1 code.txt:4:10-14 +|27: 2 pick two words +|28: 3 diff --git a/test/snapshots/rsearch.snap b/test/snapshots/rsearch.snap index 0ce257bd..8c81db1d 100644 --- a/test/snapshots/rsearch.snap +++ b/test/snapshots/rsearch.snap @@ -74,13 +74,8 @@ press right 10 10 release right 10 10 stable 700 15000 snap step3 -# acme sized code.txt to its four lines, so line 4 is on its last row, and a -# pane's last row is its resize handle: a press there would drag the seam, not -# sweep text. Drag that handle down four rows first. -press left 40 11 -drag left 40 15 -release left 40 15 -stable 700 15000 +# acme sized code.txt to its four lines, so line 4 is on its last row: a +# pane's last row is text like any other, never a resize handle. # A LEFT sweep over `pick two` (line 4, cols 8..15) and then a right CLICK # INSIDE it: the click takes the whole selection — the search is for the # two-word span (`4:1-8`), which the file-ish word expansion could never diff --git a/test/snapshots/shrinktag.snap b/test/snapshots/shrinktag.snap index f17c402f..31edad14 100644 --- a/test/snapshots/shrinktag.snap +++ b/test/snapshots/shrinktag.snap @@ -1,6 +1,8 @@ -# a pane can shrink to just its tagline: border-drag the handle to the tag row -# (0 body rows), the gutter box still grabs a move, and dragging back down -# restores the body intact (the hidden pane's pty/vt is never resized) +# a pane can shrink to just its tagline: the pane below dragged by its grip up +# to the tag row (0 body rows) -- a terminal has no rule between panes, so +# the grip is the handle, as acme's button is -- the gutter box still grabs a +# move, and dragging back down restores the body intact (the hidden pane's +# pty/vt is never resized) file w.txt x start 31 100 -n 3 wait 8000 w.txt @@ -16,16 +18,15 @@ key esc settle 100 stable 400 5000 snap before -# drag pane 0's bottom handle (its last row) up to its tag row: tag-only pane -press left 20 17 -drag left 20 3 -release left 20 3 +# drag the lower pane's grip up under pane 0's tag row: tag-only pane +press left 1 18 +drag left 1 3 +release left 1 3 motion 40 25 stable 500 8000 snap shrunk -# the shrunk pane's single row is now the pair's resize handle, but the gutter -# box must still win: grab it, preview a move into the right column, abort by -# releasing over the pane itself +# the shrunk pane's gutter box grabs a move: preview one into the right +# column, abort by releasing over the pane itself press left 1 3 drag left 70 9 stable 400 5000 @@ -33,17 +34,17 @@ snap move-preview drag left 20 3 release left 20 3 stable 400 5000 -# re-enlarge: the tag row doubles as the drag handle, pull it back down -press left 20 3 -drag left 20 17 -release left 20 17 +# re-enlarge: the lower pane's grip, now under pane 0's tag, pulled back down +press left 1 4 +drag left 1 18 +release left 1 18 motion 40 25 stable 500 8000 snap restored -# the bottom pane can shrink to ITS tag too: drag past the bottom, clamp holds -press left 20 17 -drag left 20 31 -release left 20 31 +# the bottom pane can shrink to ITS tag too: its grip dragged past the bottom +press left 1 18 +drag left 1 31 +release left 1 31 motion 40 25 stable 500 8000 snap bottom-shrunk diff --git a/test/snapshots/splitparent.snap b/test/snapshots/splitparent.snap index 3ec42b14..b9038af2 100644 --- a/test/snapshots/splitparent.snap +++ b/test/snapshots/splitparent.snap @@ -5,10 +5,11 @@ config Placement pardes start 31 100 -n 3 stable 700 20000 -# shrink pane 0 (top-left) to just its tagline -press left 20 17 -drag left 20 3 -release left 20 3 +# shrink pane 0 (top-left) to just its tagline: the pane below's grip dragged +# up under it (a terminal has no rule between panes; the grip is the handle) +press left 1 18 +drag left 1 3 +release left 1 3 motion 40 25 stable 500 8000 snap shrunk diff --git a/test/snapshots/tagbottom.golden b/test/snapshots/tagbottom.golden index a86bb8fb..d5f1f720 100644 --- a/test/snapshots/tagbottom.golden +++ b/test/snapshots/tagbottom.golden @@ -131,8 +131,8 @@ |27: |30: /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save Tty Collapse Del == snap body-cursor grid=100x31 cursor=9,6 -== snap seam-noop grid=100x31 cursor=9,6 -== snap seam-dragged grid=100x31 cursor=9,6 +== snap seam-noop grid=100x31 cursor=12,16 +== snap seam-dragged grid=100x31 cursor=12,12 |11: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Tty Collapse Del bottom.txt |12: 1 ZZONE |13: 2 ZZTWO diff --git a/test/snapshots/tagbottom.snap b/test/snapshots/tagbottom.snap index a70ace1f..68b79fc7 100644 --- a/test/snapshots/tagbottom.snap +++ b/test/snapshots/tagbottom.snap @@ -67,19 +67,21 @@ press left 10 7 release left 10 7 stable 400 8000 snap body-cursor -# The h-resize seam. With top taglines it is the upper pane's LAST row; here -# that row is the upper pane's TAG, so the handle is the lower pane's FIRST row -# (grid 16, click row 17). A no-drag click on it must leave both sizes alone. +# No row of text is a resize handle: a click on the lower pane's FIRST row +# (grid 16, click row 17), where the seam used to be, is a click in its text, +# and both sizes stay. press left 40 17 release left 40 17 motion 40 25 stable 500 8000 snap seam-noop -# ...and the real drag, four rows up: the upper pane keeps 10 rows, the lower -# grows to 19. Both taglines follow their own pane's bottom. -press left 40 17 -drag left 40 13 -release left 40 13 +# A terminal has no rule between panes, so the grip resizes them, as acme's +# button moves a window: the lower pane's, on its tag at the bottom, dragged up +# to row 13. The upper pane keeps 10 rows, the lower grows to 19. Both +# taglines follow their own pane's bottom. +press left 1 31 +drag left 1 13 +release left 1 13 motion 40 25 stable 500 8000 snap seam-dragged diff --git a/test/snapshots/windowops.golden b/test/snapshots/windowops.golden index 965486d3..38450ac2 100644 --- a/test/snapshots/windowops.golden +++ b/test/snapshots/windowops.golden @@ -112,7 +112,7 @@ |9: |10: |11: -|12: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ +|12: |13: /tmp/pardes-snap/windowops/cwd Tty+ba |14: sh Save Mode Filter Collapse Del |15: ls @@ -132,7 +132,6 @@ |29: |30: == snap move-preview grid=100x31 cursor=4,17 -|12: == snap moved grid=100x31 cursor=4,17 == snap altn grid=100x31 cursor=4,22 |18: /tmp/pardes-snap/windowops/cwd Tty+ba diff --git a/test/snapshots/windowops.snap b/test/snapshots/windowops.snap index 32d8c83b..8166f663 100644 --- a/test/snapshots/windowops.snap +++ b/test/snapshots/windowops.snap @@ -1,4 +1,4 @@ -# hover resize hints, border drags, move drag, Alt-n, Ctrl-w focus (routed through the Right builtin), Debug box +# hover resize hints, border drags, grip resize, move drag, Alt-n, Ctrl-w focus (routed through the Right builtin), Debug box file w.txt x start 31 100 -n 3 wait 8000 w.txt @@ -7,7 +7,7 @@ stable 700 20000 motion 50 10 stable 400 5000 snap hover-v -# hover over the top-left pane's last row: horizontal dash hint +# hover over the top-left pane's last row: no hint, a row of text is no handle motion 20 16 stable 400 5000 snap hover-h @@ -19,10 +19,11 @@ snap border-drag release left 40 11 stable 500 8000 snap border-done -# drag the horizontal border up 4 rows (pane 0's new last row) -press left 20 17 -drag left 20 13 -release left 20 13 +# resize the left pair by the lower pane's grip, 4 rows up (a terminal has no +# rule between panes; pane 0's last row is now 13) +press left 1 18 +drag left 1 14 +release left 1 14 stable 500 8000 snap hborder-done # move pane 1 (its gutter box) into the right column -- cgit v1.3 From d4960472375ea68f709c56a677d8a37571419ff7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 29 Sep 2026 22:27:38 -0300 Subject: Config opens the startup file, DumpConfig the settings report, and the workspace tag reads Dump Themes Config Debug Exit Config (SPC f c) opens init, found as the settings report finds it (opts.startup_config_path: $XDG_CONFIG_HOME/pardes/init or ~/.config/pardes/init, and the macOS and Windows paths config.md gives). A pane that already holds it is gone to instead; a file on disk is looked at; with none, an empty pane is named for it, and Save makes its directory and any above it first (File.make_dirs, fs.makeDirs) before writing. Without a configuration directory it says so and opens nothing. The report Config used to open, the startup path and every live setting, is DumpConfig, in a +DumpConfig pane. No alias keeps the old meaning. The workspace tag's default words put Themes where NextColor was, NextColor staying a builtin, and Config beside it. A tag the user edited is kept as it was: a dump stores only an edited one (topbar_custom), and a restore puts back only that. theme.snap types NextColor onto the workspace tag to click it, and tagnav's walk back to Dump takes five long-word steps. The rest of the re-recorded goldens differ in the workspace words and their widths only. Co-Authored-By: Claude Opus 5.5 --- docs/config.md | 11 ++-- docs/macos.md | 4 +- docs/tags.md | 4 +- docs/themes.md | 2 +- docs/ui-review.md | 2 +- src/CHANGELOG.md | 10 +++ src/File.zig | 4 ++ src/Messages.zig | 2 +- src/Output.zig | 2 +- src/builtins.zig | 32 +++++++++- src/config.zig | 11 ++-- src/crash.zig | 2 +- src/fs.zig | 19 ++++++ src/ninep/ctl.zig | 6 +- src/pardes.zig | 10 +-- src/tutor.txt | 4 +- test/appearance_gallery.py | 4 +- test/font_size.py | 4 +- test/output.zig | 98 +++++++++++++++++++++++++++--- test/snapshots/argv.golden | 8 +-- test/snapshots/badutf.golden | 2 +- test/snapshots/boot.golden | 2 +- test/snapshots/builtins.golden | 2 +- test/snapshots/chordcut.golden | 2 +- test/snapshots/cmdexit.golden | 2 +- test/snapshots/cmdword.golden | 2 +- test/snapshots/colgrip.golden | 2 +- test/snapshots/collapse.golden | 6 +- test/snapshots/cornerdrag-left.golden | 2 +- test/snapshots/cornerdrag.golden | 2 +- test/snapshots/cursorline.golden | 2 +- test/snapshots/delask.golden | 2 +- test/snapshots/doccol.golden | 2 +- test/snapshots/dump.golden | 2 +- test/snapshots/edit.golden | 2 +- test/snapshots/emptycol.golden | 2 +- test/snapshots/exec-bigdrag.golden | 2 +- test/snapshots/exec.golden | 2 +- test/snapshots/fileedit.golden | 2 +- test/snapshots/filewatch.golden | 2 +- test/snapshots/find.golden | 2 +- test/snapshots/fsearch.golden | 2 +- test/snapshots/ghostty-mid.golden | 2 +- test/snapshots/grep.golden | 2 +- test/snapshots/headersweep-restored.golden | 4 +- test/snapshots/headersweep.golden | 6 +- test/snapshots/hscroll.golden | 2 +- test/snapshots/images.golden | 4 +- test/snapshots/jumps.golden | 2 +- test/snapshots/layout-close.golden | 2 +- test/snapshots/layout-open.golden | 2 +- test/snapshots/leader.golden | 2 +- test/snapshots/load.golden | 2 +- test/snapshots/logquiet.golden | 2 +- test/snapshots/look-center.golden | 2 +- test/snapshots/look-dir.golden | 2 +- test/snapshots/look-file-1col.golden | 2 +- test/snapshots/look-file.golden | 2 +- test/snapshots/lookloaded.golden | 2 +- test/snapshots/lookpanes.golden | 2 +- test/snapshots/lookrange.golden | 2 +- test/snapshots/lsp-client-edit.golden | 2 +- test/snapshots/lsp-client.golden | 2 +- test/snapshots/lsp-rename.golden | 2 +- test/snapshots/lsp.golden | 2 +- test/snapshots/lspcomplete.golden | 8 +-- test/snapshots/lspcompletemoved.golden | 2 +- test/snapshots/lspdebug.golden | 2 +- test/snapshots/lsprelpath.golden | 4 +- test/snapshots/markup.golden | 4 +- test/snapshots/mini.golden | 12 ++-- test/snapshots/modal.golden | 2 +- test/snapshots/msg.golden | 4 +- test/snapshots/multicursor.golden | 2 +- test/snapshots/nested.golden | 6 +- test/snapshots/ninep.golden | 12 ++-- test/snapshots/pipe.golden | 2 +- test/snapshots/psearch.golden | 2 +- test/snapshots/reflow.golden | 2 +- test/snapshots/respawn.golden | 2 +- test/snapshots/restore.golden | 2 +- test/snapshots/rsearch.golden | 2 +- test/snapshots/savepane.golden | 2 +- test/snapshots/scroll.golden | 2 +- test/snapshots/scrolloff.golden | 2 +- test/snapshots/selarg.golden | 2 +- test/snapshots/selregex.golden | 2 +- test/snapshots/shellset.golden | 2 +- test/snapshots/shrinktag.golden | 2 +- test/snapshots/splitparent.golden | 6 +- test/snapshots/stepgrain.golden | 2 +- test/snapshots/syntax.golden | 2 +- test/snapshots/tag.golden | 2 +- test/snapshots/tagalign.golden | 10 +-- test/snapshots/tagalign2col.golden | 2 +- test/snapshots/tagbottom.golden | 2 +- test/snapshots/tagbottomimage.golden | 2 +- test/snapshots/tagbottomshort.golden | 12 ++-- test/snapshots/tagcmd.golden | 2 +- test/snapshots/tagnav.golden | 8 +-- test/snapshots/tagnav.snap | 4 +- test/snapshots/tagpath.golden | 2 +- test/snapshots/theme.golden | 40 ++++++------ test/snapshots/theme.snap | 8 +++ test/snapshots/themesel.golden | 2 +- test/snapshots/tinywin.golden | 6 +- test/snapshots/topbarexec.golden | 2 +- test/snapshots/tty.golden | 2 +- test/snapshots/ttyclick.golden | 2 +- test/snapshots/ttyedit.golden | 2 +- test/snapshots/ttyfollow.golden | 2 +- test/snapshots/ttyhelp.golden | 2 +- test/snapshots/ttylook.golden | 2 +- test/snapshots/ttyonly.golden | 2 +- test/snapshots/ttypaste.golden | 2 +- test/snapshots/ttyprompt.golden | 2 +- test/snapshots/ttytaken.golden | 2 +- test/snapshots/tutor.golden | 2 +- test/snapshots/wheeldrift.golden | 2 +- test/snapshots/winch.golden | 4 +- test/snapshots/windownav.golden | 2 +- test/snapshots/windowops.golden | 4 +- test/snapshots/wrap.golden | 2 +- test/snapshots/yankpaste.golden | 2 +- test/window_opacity.py | 12 ++-- 125 files changed, 371 insertions(+), 218 deletions(-) (limited to 'src/tutor.txt') diff --git a/docs/config.md b/docs/config.md index f25c8746..bc4acf12 100644 --- a/docs/config.md +++ b/docs/config.md @@ -31,10 +31,13 @@ not stop later ones. Text that is no builtin is not run as a shell command (`Exec ...` still is). Key bindings are compile-time choices in `src/config.zig`; `init` does not remap them. -`Config` (`SPC f c`) opens a `+Config` pane with the startup path (a right -click opens it) and every live setting; a setting the frontend cannot show -reads `unsupported`. The root `ctl` file reads the settings back in the -words a write takes ([fs.md](fs.md#the-root-ctl)). +`Config` (`SPC f c`) opens `init` itself in a pane, or goes to its pane when +it is open. With no file there yet, the pane is named for it, empty, and +Save writes it, making its directory first. `DumpConfig` opens a +`+DumpConfig` pane with the startup path (a right click opens it) and every +live setting; a setting the frontend cannot show reads `unsupported`. The +root `ctl` file reads the settings back in the words a write takes +([fs.md](fs.md#the-root-ctl)). ## Settings diff --git a/docs/macos.md b/docs/macos.md index 8bb81be6..5512edbd 100644 --- a/docs/macos.md +++ b/docs/macos.md @@ -525,7 +525,7 @@ what is on screen. Cmd+=, Cmd- and Cmd+0 change the point size, rebuild `Metrics`, and report the new cell through the same resize path a window drag uses. They also observe the -effective face/point tuple through `pardes_font_observe`, so the single `Config` +effective face/point tuple through `pardes_font_observe`, so the single `DumpConfig` report follows a host-owned zoom without resolving a pending face request. The initial system face is observed the same way. Cmd+= rather than Cmd++ because AppKit matches the character and `=` is what is under the finger. @@ -759,7 +759,7 @@ separation is currently macOS-specific; other hosts keep the opaque raster path. `WindowBlur <0..100>` controls the strength of that native backdrop independently of `WindowOpacity`. It is a macOS-only builtin, also accepted in the startup -config and reported by `Config`. It defaults to 0 (off); 100 shows the full +config and reported by `DumpConfig`. It defaults to 0 (off); 100 shows the full AppKit material and intermediate values blend the material with the unblurred backdrop using the effect view's alpha. An opaque themed background hides the effect; lowering `WindowOpacity` makes the remembered strength visible again. diff --git a/docs/tags.md b/docs/tags.md index 8fe63804..93c8a6fa 100644 --- a/docs/tags.md +++ b/docs/tags.md @@ -11,8 +11,8 @@ pane's directory. Over 9P the tags are `/tag`, `/col//tag` and ## Default words -- Workspace: `Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor - Debug Exit`. +- Workspace: `Newcol Joincol Find Grep Help Changelog Tutor Dump Themes + Config Debug Exit`. - Column: `New Tty Find Grep Joincol Delcol`. - File pane: `Save Tty Collapse Del`; a source file with a grammar adds `TreeContext`, a result list `LocationsConfig`. PDF: `manual.pdf [1/12] diff --git a/docs/themes.md b/docs/themes.md index d163b243..c7204173 100644 --- a/docs/themes.md +++ b/docs/themes.md @@ -174,7 +174,7 @@ colors switch directly so syntax and ANSI content stay coherent. `FocusTint` toggles the focused pane's tag tint, which is on by default. `SyntaxBold` toggles bold syntax keywords, which are off by default. Both commands take no argument, work in GUI and TTY, and report their states in -`Config`. Use them in the startup configuration to reverse the defaults. +`DumpConfig`. Use them in the startup configuration to reverse the defaults. The original required roles remain unchanged: nullable `bg` and `fg`, `sel_bg`, `sel_fg`, `tag_bg`, `tag_fg`, `box`, `box_dim`, `kw`, `str`, `num`, diff --git a/docs/ui-review.md b/docs/ui-review.md index decf042d..6702ce31 100644 --- a/docs/ui-review.md +++ b/docs/ui-review.md @@ -206,7 +206,7 @@ pass does not change that environment code or skip the affected tests. The appearance checks cover native palette contrast, old ThemeFile documents, wrapped search matches, selection precedence, immediate body colors during theme fades, light-theme carets and both quiet and bold syntax preferences. -The 9P walkthrough also verifies `FocusTint` and `SyntaxBold` through `Config`. +The 9P walkthrough also verifies `FocusTint` and `SyntaxBold` through `DumpConfig`. All 97 terminal snapshot scripts passed without retries after reviewing and refreshing 32 appearance goldens. Of those, 27 preserve identical visible text, diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 50149551..ca37856e 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## Unreleased + +- `Config` (`SPC f c`) opens the startup file, `init`, in a pane, or goes + to its pane when it is open. With no file yet, it opens an empty pane of + that name, and Save writes it, making the directory first. The settings + report `Config` used to open is `DumpConfig`, in a `+DumpConfig` pane. +- The workspace tag reads `… Dump Themes Config Debug Exit`: `Themes` in + place of `NextColor`, which stays a builtin, and `Config` beside it. A + workspace tag you edited, and one a dump kept, stays as it is. + ## 0.0.5 - Over a slow link the terminal build keeps at most one frame in flight: it diff --git a/src/File.zig b/src/File.zig index 8babb27d..e8a9e2f8 100644 --- a/src/File.zig +++ b/src/File.zig @@ -58,6 +58,10 @@ pub const State = struct { /// as an undo to the save point is in acme. saved_hash: ?u64 = null, watch_after_save: bool = false, + /// Save makes the file's directory, and any above it, first: `Config`'s + /// pane for an init file that is not there yet, whose directory may not + /// be either. + make_dirs: bool = false, /// The file changed on disk under unsaved edits, which were kept (see /// `changed`): its hash, so the same change is said once, until a Save /// or get settles it. A Save warns once before overwriting it, as acme's diff --git a/src/Messages.zig b/src/Messages.zig index 7dcb22ed..d1478ac7 100644 --- a/src/Messages.zig +++ b/src/Messages.zig @@ -782,7 +782,7 @@ test "a message falls in, lingers past the input that dismisses it, and dissolve try std.testing.expect(p.executeBuiltinLine(p.active, "MessageDissolve 0")); try std.testing.expectEqual(@as(u16, 3), messageFrames(p.settings.message_fall_ms)); try std.testing.expectEqual(@as(u16, 1), messageFrames(p.settings.message_dissolve_ms)); - // The Config report reads back as configuration. + // The DumpConfig report reads back as configuration. try std.testing.expect(p.executeBuiltinLine(p.active, "MessageAnimation")); try std.testing.expect(!p.settings.message_animation); try std.testing.expect(p.executeBuiltinLine(p.active, "Msg plain")); diff --git a/src/Output.zig b/src/Output.zig index fb8fe7a3..69e9644c 100644 --- a/src/Output.zig +++ b/src/Output.zig @@ -835,7 +835,7 @@ pub fn openConfig(p: *Pardes, id: usize) !void { .state = &p.settings, }); const content = try out.toOwnedSlice(); - return openRead(p, id, .{ .cmd = .Config }, "", content); + return openRead(p, id, .{ .cmd = .DumpConfig }, "", content); } /// The message-row log, oldest first — the lines that were said in passing and diff --git a/src/builtins.zig b/src/builtins.zig index c549b17f..c40b2e00 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -1283,10 +1283,38 @@ pub const Help = struct { } }; -/// Open the settings in effect, each a word to click. +/// Open the startup file, `init`, in a pane: its pane when it is open, else +/// the file, else a pane of that name for Save to make it and its directory. pub const Config = struct { pub const scope: Scope = .session; - pub const output: OutputTraits = .{ .name = config.config_buffer }; + pub fn run(c: Ctx) void { + const path = c.p.opts.startup_config_path orelse + return c.p.reportFailure(c.id, "Config: no startup file here: no configuration directory"); + var real_buf: [4096]u8 = undefined; + const real = if (pardes.filesystem.resolveOs(path, &real_buf)) |r| r.path else null; + for (c.p.panes, 0..) |slot, id| { + const pane = slot orelse continue; + const f = pane.file orelse continue; + if (f.output != null) continue; + if (!std.mem.eql(u8, f.path, path) and !(if (real) |r| std.mem.eql(u8, f.path, r) else false)) continue; + return look.focusPaneLine(c.p, id, .{}, .keep); + } + if (real != null) return look.lookAt(c.p, c.id, path); + // Not there yet: a pane named for it, which Save makes. + const free = c.p.freeSlot() orelse return c.p.reportError(c.id, "Config", error.NoPaneSlots); + c.p.newScratchFor(c.id, .scratch); + const pane = c.p.panes[free] orelse return; + @import("ninep/pane.zig").nameBuffer(c.p, free, path, false) catch |err| return c.p.reportError(c.id, "Config", err); + pane.file.?.make_dirs = true; + c.p.active = free; + } +}; + +/// Open the settings in effect, each a word to click, and the startup +/// file's path. +pub const DumpConfig = struct { + pub const scope: Scope = .session; + pub const output: OutputTraits = .{ .name = config.dump_config_buffer }; pub fn run(c: Ctx) void { panes.Output.openConfig(c.p, c.id) catch |err| c.p.reportError(c.id, "config", err); } diff --git a/src/config.zig b/src/config.zig index ea7a877a..bb033823 100644 --- a/src/config.zig +++ b/src/config.zig @@ -68,6 +68,7 @@ pub const leader_path = paths: { .Recent = "fr", .Grep = "fg", .Config = "fc", + .DumpConfig = null, .LocationsConfig = null, .Tutor = "ht", .Changelog = "hc", @@ -266,7 +267,7 @@ pub const child_term = "xterm-256color"; pub const child_colorterm = "truecolor"; pub const child_term_program = "pardes"; -pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit"; +pub const topbar_str = "Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit"; pub const pane_builtins_str = "Tty Collapse Del"; pub const pdf_pane_builtins_str = "Tty PdfSections PdfTint Collapse Del"; @@ -452,7 +453,7 @@ pub const pipe_marker = " |"; pub const search_buffer = "+Search"; pub const help_buffer = "+Help"; -pub const config_buffer = "+Config"; +pub const dump_config_buffer = "+DumpConfig"; pub const effect_code_buffer = "+EffectCode"; pub const jumps_buffer = "+Jumps"; pub const recent_buffer = "+Recent"; @@ -968,7 +969,7 @@ pub const Runtime = struct { } }; - // The builtin registry and Config report share this command table. + // The builtin registry and DumpConfig report share this command table. pub const settings = [_]Setting{ .{ .word = "Colors", .action = .{ .toggle = .colors }, .doc = "Syntax colours in text panes, on or off." }, .{ .word = "Wrap", .action = .{ .toggle = .wrap }, .doc = "Long lines wrap onto the next row, on or off." }, @@ -1292,7 +1293,7 @@ pub const Runtime = struct { /// Each line reads as the command that would set it: the word, then the /// value you would type after it. No colons, no units — `WindowOpacity 70` - /// is both what Config prints and what you write back. + /// is both what DumpConfig prints and what you write back. pub fn writeReport(out: *std.Io.Writer, context: ReportContext) !void { const state = context.state; var wrote_transition = false; @@ -1653,7 +1654,7 @@ pub const Runtime = struct { try std.testing.expect(FontSpec.parse(bad) == null); } - test "Config report observes every simple setting and all live context" { + test "DumpConfig report observes every simple setting and all live context" { var state: Runtime = .{}; // Every setting, every context line: the report outgrows 4K. var storage: [8192]u8 = undefined; diff --git a/src/crash.zig b/src/crash.zig index 10d38591..99822aad 100644 --- a/src/crash.zig +++ b/src/crash.zig @@ -23,7 +23,7 @@ const std = @import("std"); const builtin = @import("builtin"); const pardes = @import("pardes.zig"); -/// Beside `init`, so `Config` opens the directory that holds both. +/// The crash log's name, beside `init` in the configuration directory. pub const name = "crashes"; /// The config directory `config.User.load` resolved, COPIED rather than diff --git a/src/fs.zig b/src/fs.zig index fc3eb98f..1d0bbc22 100644 --- a/src/fs.zig +++ b/src/fs.zig @@ -637,6 +637,25 @@ test "a path with a part over 255 bytes is NameTooLong, never a panic" { try std.testing.expectError(error.NameTooLong, statPath(std.testing.io, long, .{})); } +/// Make `dir` and each directory above it that is missing, as `mkdir -p` +/// does: one already there is no failure. A failure shows at the open +/// that follows. +pub fn makeDirs(dir: []const u8) void { + if (comptime !platform_has_fs) return; + var z: [4096:0]u8 = undefined; + if (dir.len == 0 or dir.len >= z.len) return; + @memcpy(z[0..dir.len], dir); + z[dir.len] = 0; + pardes.turn.yield(); + defer pardes.turn.back(); + for (z[1..dir.len], 1..) |c, i| if (c == '/') { + z[i] = 0; + _ = libc.mkdir(z[0..i :0], 0o755); + z[i] = '/'; + }; + _ = libc.mkdir(z[0..dir.len :0], 0o755); +} + pub fn localPath(path: []const u8) ?[]const u8 { if (std.mem.eql(u8, path, "/n/os")) return "/"; if (std.mem.startsWith(u8, path, "/n/os/")) return path[5..]; diff --git a/src/ninep/ctl.zig b/src/ninep/ctl.zig index 060e0d6c..5ed03c58 100644 --- a/src/ninep/ctl.zig +++ b/src/ninep/ctl.zig @@ -485,7 +485,7 @@ const e_prompt = "control message needs its argument"; /// Every setting, one a line, in the words a write of it takes, so that the /// file read back is the configuration, as webfs's ctl reads (webfs(4)). /// What is not a setting -- platform, themes, where the config came from -- -/// is /status's or the Config window's. +/// is /status's or the DumpConfig window's. fn writeSettings(p: *Pardes, w: *std.Io.Writer) !void { try writeSettingsOf(p, &p.settings, w); try w.writeAll("LocationsConfig "); @@ -523,7 +523,7 @@ pub fn writeSettingsOf(p: *Pardes, s: *const config.Runtime, w: *std.Io.Writer) inline else => |field| try w.print("{s} {s}\n", .{ word, @tagName(@field(s, @tagName(field))) }), }, .message_ms => |which| try w.print("{s} {d}\n", .{ word, @field(s, "message_" ++ @tagName(which) ++ "_ms") }), - // The directory in effect, as Config reports it; bare only when + // The directory in effect, as DumpConfig reports it; bare only when // there is none (no home to put the default in). .dump_dir => { var buf: [900]u8 = undefined; @@ -1165,7 +1165,7 @@ test "the root ctl reads the settings as a write takes them, and takes the sessi try testing.expectEqual(@as(u64, settings.len), call(p, .{ .tag = 1, .op = .getattr, .node = root_ctl }).reply.attr.size); try testing.expect(std.mem.indexOf(u8, settings, "Verbose on\n") != null); try testing.expect(std.mem.indexOf(u8, settings, "LocationsConfig ") != null); - // Settings only: nothing /status or the Config window says. + // Settings only: nothing /status or the DumpConfig window says. try testing.expect(std.mem.indexOf(u8, settings, "Platform") == null); try testing.expect(std.mem.indexOf(u8, settings, "requested") == null); diff --git a/src/pardes.zig b/src/pardes.zig index 18794975..e3db97d9 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -1329,7 +1329,7 @@ test "acme placement: New and 9P's new take the bottom half of the last pane" { try std.testing.expect(p.rects[made].y > was.y + BOX_H); } -test "Placement pardes brings back the old rules, and says so in Config" { +test "Placement pardes brings back the old rules, and says so in DumpConfig" { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 40 }); defer p.deinit(); try std.testing.expect(p.executeBuiltinLine(p.active, "Placement pardes")); @@ -3493,7 +3493,7 @@ test "s in a header selects in the header's own text" { var ranges: [Text.max_selections]modal.Selection = undefined; const text = try edit.flatSurface(p, &p.global_tag); const got = p.global_tag.ranges(text, 0, &ranges); - try std.testing.expectEqual(@as(usize, 3), got.n); // Newcol, Joincol, NextColor + try std.testing.expectEqual(@as(usize, 2), got.n); // Newcol, Joincol try std.testing.expectEqual(@as(u16, 0), pane.body.nsel); } @@ -5261,7 +5261,7 @@ pub const Pardes = struct { } /// Resolve the request already handed to the GUI host. Requested and - /// effective tuples deliberately remain separate so Config can show both. + /// effective tuples deliberately remain separate so DumpConfig can show both. pub fn acknowledgeFont( p: *Pardes, effective_name: []const u8, @@ -5596,6 +5596,8 @@ pub const Pardes = struct { const was = f.saved_revision; const failures = p.fs.failures; f.saved_revision = f.revision; + if (f.make_dirs) if (filesystem.localPath(f.path)) |local| + filesystem.makeDirs(std.fs.path.dirname(local) orelse "/"); p.hostWriteFile(sf.pane, f.path, f.content); const saved_pane = p.panes[sf.pane] orelse return; if (saved_pane.serial != serial) return; @@ -6721,7 +6723,7 @@ pub const Pardes = struct { } /// A native post pass proved unavailable: the chain is emptied, which - /// Config then reports. + /// DumpConfig then reports. pub fn disableSceneEffects(p: *Pardes) void { p.settings.post.clear(); } diff --git a/src/tutor.txt b/src/tutor.txt index c59deeae..f8aa7aef 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -65,8 +65,8 @@ Every pane has Collapse: hide its body, then execute again to expand it. The top bar is: - Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor - Debug Exit + Newcol Joincol Find Grep Help Changelog Tutor Dump Themes + Config Debug Exit Reach it from the keyboard with `k` off the topmost tagline; `j` comes back down. diff --git a/test/appearance_gallery.py b/test/appearance_gallery.py index 46b17dd9..c321c7c0 100644 --- a/test/appearance_gallery.py +++ b/test/appearance_gallery.py @@ -91,8 +91,8 @@ def run(args): def config_report(): before = set(panes(client)) - command(client, right, 'Config') - pane = require(wait_for(lambda: next((s for s in panes(client) if s not in before), None)), 'Config output missing') + command(client, right, 'DumpConfig') + pane = require(wait_for(lambda: next((s for s in panes(client) if s not in before), None)), 'DumpConfig output missing') text = client.read(f'/pane/{pane}/body').decode() client.write(f'/pane/{pane}/exec', b'Del\n') return text diff --git a/test/font_size.py b/test/font_size.py index b7104099..ef685a9e 100644 --- a/test/font_size.py +++ b/test/font_size.py @@ -25,10 +25,10 @@ def run(args): control = new_pane(client, b'') def report(size): - execute(client, control, 'Config') + execute(client, control, 'DumpConfig') def ready(): for serial, tag in panes(client).items(): - if '/+Config ' in tag: + if '/+DumpConfig ' in tag: body = client.read(f'/pane/{serial}/body').decode() if f'Font effective size {size:.2f} pixels' in body: return body diff --git a/test/output.zig b/test/output.zig index 1b1b80c9..da17eccc 100644 --- a/test/output.zig +++ b/test/output.zig @@ -89,7 +89,7 @@ fn resultId(p: *Pardes) !usize { } test "output callers opt into location highlighting instead of matching prose colons" { - for ([_]panes.Output.Origin{ .{ .cmd = .LocationsConfig }, .{ .cmd = .Config }, .{ .query = .hover } }) |origin| { + for ([_]panes.Output.Origin{ .{ .cmd = .LocationsConfig }, .{ .cmd = .DumpConfig }, .{ .query = .hover } }) |origin| { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 140, .rows = 30 }); defer p.deinit(); p.locations_config.layout = .@"inline"; @@ -533,12 +533,12 @@ test "Mini failures leave its existing snapshot and focus unchanged" { try std.testing.expectEqual(next, p.freeSlot()); } -test "Config prints the startup path and refreshes its one output" { +test "DumpConfig prints the startup path and refreshes its one output" { const path = "/home/pardes-test/.config/pardes/init"; const p = try Pardes.init(std.testing.allocator, .{ .startup_config_path = path }); defer p.deinit(); - try std.testing.expect(p.executeBuiltinLine(0, "Config")); + try std.testing.expect(p.executeBuiltinLine(0, "DumpConfig")); const opened = p.active; const out = p.panes[opened].?.file.?; for ([_][]const u8{ @@ -549,28 +549,106 @@ test "Config prints the startup path and refreshes its one output" { }) |line| try std.testing.expect(std.mem.indexOf(u8, out.content, line) != null); var default_line: [256]u8 = undefined; try std.testing.expect(std.mem.indexOf(u8, out.content, try std.fmt.bufPrint(&default_line, "Shell requested (new panes) {s} (default)\n", .{config.defaultShell()})) != null); - try std.testing.expectEqualStrings(config.config_buffer, std.fs.path.basename(out.path)); - try std.testing.expectEqual(panes.Output.Origin{ .cmd = .Config }, out.output.?.from); + try std.testing.expectEqualStrings(config.dump_config_buffer, std.fs.path.basename(out.path)); + try std.testing.expectEqual(panes.Output.Origin{ .cmd = .DumpConfig }, out.output.?.from); - try std.testing.expect(p.executeBuiltinLine(0, "Config")); + try std.testing.expect(p.executeBuiltinLine(0, "DumpConfig")); try std.testing.expectEqual(opened, p.active); var buffers: usize = 0; for (p.panes) |slot| { const f = (slot orelse continue).file orelse continue; const origin = (f.output orelse continue).from; - buffers += @intFromBool(std.meta.eql(origin, panes.Output.Origin{ .cmd = .Config })); + buffers += @intFromBool(std.meta.eql(origin, panes.Output.Origin{ .cmd = .DumpConfig })); } try std.testing.expectEqual(@as(usize, 1), buffers); } -test "Config reports the absence of a per-user config path" { +test "DumpConfig reports the absence of a per-user config path" { const p = try Pardes.init(std.testing.allocator, .{}); defer p.deinit(); - try std.testing.expect(p.executeBuiltinLine(0, "Config")); + try std.testing.expect(p.executeBuiltinLine(0, "DumpConfig")); const report = p.panes[p.active].?.file.?.content; try std.testing.expect(std.mem.indexOf(u8, report, "no per-user config path") != null); } +/// The file Config names, in a fresh temporary directory: `pardes/init` +/// under it, written with `content` unless that is null. +fn configFixture(tmp: *std.testing.TmpDir, content: ?[]const u8, buf: *[4096]u8) ![]const u8 { + if (content) |text| { + try tmp.dir.createDirPath(std.testing.io, "pardes"); + try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "pardes/init", .data = text }); + } + const len = try tmp.dir.realPath(std.testing.io, buf); + return std.fmt.bufPrint(buf[len..], "{s}/pardes/init", .{buf[0..len]}) catch unreachable; +} + +test "Config opens the startup file, and a second Config goes back to its pane" { + if (comptime !pardes.hosted) return; + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + var buf: [4096]u8 = undefined; + const path = try configFixture(&tmp, "Theme orchard\n", &buf); + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .startup_config_path = path }); + defer p.deinit(); + const first = p.active; + + try std.testing.expect(p.executeBuiltinLine(first, "Config")); + const opened = p.active; + try std.testing.expect(opened != first); + const f = p.panes[opened].?.file.?; + try std.testing.expectEqualStrings(path, f.path); + try std.testing.expectEqualStrings("Theme orchard\n", f.content); + try std.testing.expect(f.output == null); + + p.active = first; + try std.testing.expect(p.executeBuiltinLine(first, "Config")); + try std.testing.expectEqual(opened, p.active); + var named: usize = 0; + for (p.panes) |slot| if (slot) |pane| if (pane.file) |file| { + named += @intFromBool(std.mem.eql(u8, file.path, path)); + }; + try std.testing.expectEqual(@as(usize, 1), named); +} + +test "Config with no startup file opens a pane of its name, and Save makes its directory" { + if (comptime !pardes.hosted) return; + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + var buf: [4096]u8 = undefined; + const path = try configFixture(&tmp, null, &buf); + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .startup_config_path = path }); + defer p.deinit(); + const first = p.active; + + try std.testing.expect(p.executeBuiltinLine(first, "Config")); + const opened = p.active; + try std.testing.expect(opened != first); + const f = p.panes[opened].?.file.?; + try std.testing.expectEqualStrings(path, f.path); + try std.testing.expectEqualStrings("", f.content); + try std.testing.expect(f.output == null); + + // Again: the same pane, not a second one. + p.active = first; + try std.testing.expect(p.executeBuiltinLine(first, "Config")); + try std.testing.expectEqual(opened, p.active); + + try std.testing.expectError(error.FileNotFound, tmp.dir.statFile(std.testing.io, "pardes", .{})); + // Save's effect, as a host performs it. + try std.testing.expect(p.executeBuiltinLine(opened, "Save")); + p.perform(.{ .save_file = .{ .pane = @intCast(opened) } }); + const made = try tmp.dir.statFile(std.testing.io, "pardes", .{}); + try std.testing.expectEqual(std.Io.File.Kind.directory, made.kind); +} + +test "Config without a configuration directory says so and opens nothing" { + const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true }); + defer p.deinit(); + const before = p.freeSlot(); + try std.testing.expect(p.executeBuiltinLine(p.active, "Config")); + try std.testing.expectEqual(before, p.freeSlot()); +} + test "EffectCode lists readable virtual sources used by this backend" { if (comptime !builtins.EffectCode.enabled) return; const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true }); @@ -651,7 +729,7 @@ test "every enabled setting builtin mutates the State Config reports" { } } - try std.testing.expect(p.executeBuiltinLine(p.active, "Config")); + try std.testing.expect(p.executeBuiltinLine(p.active, "DumpConfig")); const report = p.panes[p.active].?.file.?.content; for ([_][]const u8{ "Colors off\n", diff --git a/test/snapshots/argv.golden b/test/snapshots/argv.golden index e4d41d6c..65b0ac71 100644 --- a/test/snapshots/argv.golden +++ b/test/snapshots/argv.golden @@ -1,5 +1,5 @@ == snap noargs grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/argv/cwd Tty+bash Save Mode Filter Collapse Del | $ echo ARGV''TTY @@ -23,7 +23,7 @@ | /tmp/pardes-snap/argv/cwd/+New Save Tty Collapse Del | 1 == snap filearg grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/argv/cwd/notes.txt Save Tty Collapse Del | 3 line 3 @@ -34,7 +34,7 @@ | 8 line 8 | 9 == snap filearg-n3 grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/argv/cwd/notes.txt Save Tty Collapse Del | 1 line 1 @@ -47,7 +47,7 @@ | 8 line 8 | 9 == snap dirarg grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/argv/cwd/sub Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/badutf.golden b/test/snapshots/badutf.golden index d013a610..14aa71dc 100644 --- a/test/snapshots/badutf.golden +++ b/test/snapshots/badutf.golden @@ -1,5 +1,5 @@ == snap badbytes grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/badutf/cwd/bad.txt Save Tty Collapse Del | 1 hello �� world diff --git a/test/snapshots/boot.golden b/test/snapshots/boot.golden index 3aedceff..ac674ed2 100644 --- a/test/snapshots/boot.golden +++ b/test/snapshots/boot.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/boot/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index f40d563e..6b79d47f 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -1,5 +1,5 @@ == snap boot grid=120x67 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/builtins/cwd/notes.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/chordcut.golden b/test/snapshots/chordcut.golden index f0443a01..817c534c 100644 --- a/test/snapshots/chordcut.golden +++ b/test/snapshots/chordcut.golden @@ -1,5 +1,5 @@ == snap opened grid=120x31 cursor=7,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/chordcut/cwd Tty+bash Save Mode Filter C /tmp/pardes-snap/chordcut/cwd Tty+bash Save Mode Filter C | ollapse Del ollapse Del diff --git a/test/snapshots/cmdexit.golden b/test/snapshots/cmdexit.golden index c5c314b9..7d950a43 100644 --- a/test/snapshots/cmdexit.golden +++ b/test/snapshots/cmdexit.golden @@ -1,5 +1,5 @@ == snap opened grid=120x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cmdexit/cwd/cmds.txt Save Tty Collapse Del | 1 sleep 30 & echo BG''STARTED diff --git a/test/snapshots/cmdword.golden b/test/snapshots/cmdword.golden index 748bf06b..af2fbcb8 100644 --- a/test/snapshots/cmdword.golden +++ b/test/snapshots/cmdword.golden @@ -1,5 +1,5 @@ == snap opened grid=120x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cmdword/cwd/cmds.txt Save Tty Collapse Del | 1 @`echo ZZ''E` @`echo ZZ''L` Look p.txt @`Look .` diff --git a/test/snapshots/colgrip.golden b/test/snapshots/colgrip.golden index 1491a1f3..26a0b1c0 100644 --- a/test/snapshots/colgrip.golden +++ b/test/snapshots/colgrip.golden @@ -26,7 +26,7 @@ == style held grid=100x24 |1: 0-1 d,#887455, 2-2 d,#1d2824, 3-49 #b2c3b8,#1d2824, 50-51 #b2c3b8,#f4c086, 52-52 #b2c3b8,#314738, 53-99 #becfc4,#314738, == snap resize-drag grid=100x24 cursor=54,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol ╎ New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/colgrip/cwd/w.txt S╎ve Tty Col /tmp/pardes-snap/colgrip/cwd Tty+bash Save Mode | lapse Del ╎ Filter Collapse Del diff --git a/test/snapshots/collapse.golden b/test/snapshots/collapse.golden index 23dfa8f3..57aafc8f 100644 --- a/test/snapshots/collapse.golden +++ b/test/snapshots/collapse.golden @@ -1,5 +1,5 @@ == snap before grid=160x25 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/collapse/cwd/kept.txt Save Tty Collapse Del | 1 KEEP-FIRST @@ -10,8 +10,8 @@ |4: |5: == 9p middle-collapsed-cursor grid=160x25 cursor=none -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit -@0: 0-70 #b2c3b8,#1d2824,,tagline 71-159 d,#1d2824,,tagline +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +@0: 0-74 #b2c3b8,#1d2824,,tagline 75-159 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#314738,,tagline 3-34 #becfc4,#314738,,tagline 35-159 d,#314738,,tagline |2: /tmp/pardes-snap/collapse/cwd/kept.txt Save Tty Collapse Del diff --git a/test/snapshots/cornerdrag-left.golden b/test/snapshots/cornerdrag-left.golden index 22bdd5b7..a5f36319 100644 --- a/test/snapshots/cornerdrag-left.golden +++ b/test/snapshots/cornerdrag-left.golden @@ -1,5 +1,5 @@ == snap right-split grid=100x31 cursor=54,11 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cornerdrag-left/cwd Tty+bash S /tmp/pardes-snap/cornerdrag-left/cwd Tty+bash S | ave Mode Filter Collapse Del ave Mode Filter Collapse Del diff --git a/test/snapshots/cornerdrag.golden b/test/snapshots/cornerdrag.golden index 30c1830a..8dd21eff 100644 --- a/test/snapshots/cornerdrag.golden +++ b/test/snapshots/cornerdrag.golden @@ -1,5 +1,5 @@ == snap hover-corner grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol ╎ New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cornerdrag/cwd Tty+bash Save ╎ /tmp/pardes-snap/cornerdrag/cwd Tty+bash Save M | ode Filter Collapse Del ╎ ode Filter Collapse Del diff --git a/test/snapshots/cursorline.golden b/test/snapshots/cursorline.golden index 85c23f7f..6b99a30a 100644 --- a/test/snapshots/cursorline.golden +++ b/test/snapshots/cursorline.golden @@ -1,5 +1,5 @@ == snap top grid=150x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/cursorline/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/cursorline/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/delask.golden b/test/snapshots/delask.golden index ed5dd66a..d1487a36 100644 --- a/test/snapshots/delask.golden +++ b/test/snapshots/delask.golden @@ -1,5 +1,5 @@ == snap three grid=100x36 cursor=18,20 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/delask/cwd/top.txt Save Tty Collapse Del | 1 top-marker diff --git a/test/snapshots/doccol.golden b/test/snapshots/doccol.golden index db2b0074..21424456 100644 --- a/test/snapshots/doccol.golden +++ b/test/snapshots/doccol.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/doccol/cwd/a.txt Save Tty Coll /tmp/pardes-snap/doccol/cwd Tty+bash Save Mode | apse Del Filter Collapse Del diff --git a/test/snapshots/dump.golden b/test/snapshots/dump.golden index 9220c450..b9608741 100644 --- a/test/snapshots/dump.golden +++ b/test/snapshots/dump.golden @@ -4,7 +4,7 @@ .version = 1, .screen = .{ .cols = 100, .rows = 31 }, .active = 0, - .topbar = "Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit", + .topbar = "Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit", .topbar_custom = null, .theme = "orchard", .locations_config = .{ diff --git a/test/snapshots/edit.golden b/test/snapshots/edit.golden index f03f7e24..aa39ed9c 100644 --- a/test/snapshots/edit.golden +++ b/test/snapshots/edit.golden @@ -1,5 +1,5 @@ == snap inserted grid=100x31 cursor=16,10 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/edit/cwd Tty+bash Save Mode Fi /tmp/pardes-snap/edit/cwd Tty+bash Save Mode Fi | lter Collapse Del lter Collapse Del diff --git a/test/snapshots/emptycol.golden b/test/snapshots/emptycol.golden index 1e3f916d..9bac8492 100644 --- a/test/snapshots/emptycol.golden +++ b/test/snapshots/emptycol.golden @@ -1,5 +1,5 @@ == snap newcol grid=100x24 cursor=53,1 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/emptycol/cwd/notes.txt Save Tt | y Collapse Del diff --git a/test/snapshots/exec-bigdrag.golden b/test/snapshots/exec-bigdrag.golden index c74fd8f9..a2ac6610 100644 --- a/test/snapshots/exec-bigdrag.golden +++ b/test/snapshots/exec-bigdrag.golden @@ -1,5 +1,5 @@ == snap alive grid=200x61 cursor=119,38 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/exec-bigdrag/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/exec-bigdrag/cwd Tty+bash Save Mode Filter Collapse Del | ls 2 diff --git a/test/snapshots/exec.golden b/test/snapshots/exec.golden index 216327b3..a9f8716e 100644 --- a/test/snapshots/exec.golden +++ b/test/snapshots/exec.golden @@ -1,5 +1,5 @@ == snap exec grid=140x31 cursor=16,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/exec/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/exec/cwd Tty+bash Save Mode Filter Collapse Del | ls Exec ls diff --git a/test/snapshots/fileedit.golden b/test/snapshots/fileedit.golden index 4c651d3c..5ba6e18a 100644 --- a/test/snapshots/fileedit.golden +++ b/test/snapshots/fileedit.golden @@ -1,5 +1,5 @@ == snap edited grid=150x31 cursor=17,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/fileedit/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/fileedit/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/filewatch.golden b/test/snapshots/filewatch.golden index 589cfc3a..36f51582 100644 --- a/test/snapshots/filewatch.golden +++ b/test/snapshots/filewatch.golden @@ -1,5 +1,5 @@ == snap edited grid=210x31 cursor=15,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/filewatch/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/find.golden b/test/snapshots/find.golden index 61716d87..c9c6b755 100644 --- a/test/snapshots/find.golden +++ b/test/snapshots/find.golden @@ -1,5 +1,5 @@ == snap group grid=120x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/find/cwd/here.txt Save Tty Collapse Del | 1 Find SPC f diff --git a/test/snapshots/fsearch.golden b/test/snapshots/fsearch.golden index d459f8c7..7ba94492 100644 --- a/test/snapshots/fsearch.golden +++ b/test/snapshots/fsearch.golden @@ -1,5 +1,5 @@ == snap opened grid=180x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/fsearch/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/fsearch/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/ghostty-mid.golden b/test/snapshots/ghostty-mid.golden index ab117f8a..4bd8bf1f 100644 --- a/test/snapshots/ghostty-mid.golden +++ b/test/snapshots/ghostty-mid.golden @@ -1,5 +1,5 @@ == snap ghostty-mid grid=100x31 cursor=4,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ghostty-mid/cwd Tty+bash Save /tmp/pardes-snap/ghostty-mid/cwd Tty+bash Save | Mode Filter Collapse Del Mode Filter Collapse Del diff --git a/test/snapshots/grep.golden b/test/snapshots/grep.golden index 65b2fd5b..687d7099 100644 --- a/test/snapshots/grep.golden +++ b/test/snapshots/grep.golden @@ -1,5 +1,5 @@ == snap opened grid=180x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/grep/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/grep/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/headersweep-restored.golden b/test/snapshots/headersweep-restored.golden index 765f221f..38b505e7 100644 --- a/test/snapshots/headersweep-restored.golden +++ b/test/snapshots/headersweep-restored.golden @@ -21,7 +21,7 @@ |19: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |20: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, == snap col-swept grid=120x21 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit Restore /tmp/pardes-snap/headersweep-restored/du +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit Restore /tmp/pardes-snap/headersweep-restore | New Tty Find Grep Joincol Delcol echo RE''STORED-COL New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/headersweep-restored/cwd Tty+bash Save M /tmp/pardes-snap/headersweep-restored/cwd Tty+bash Save M | ode Filter Collapse Del ode Filter Collapse Del @@ -44,6 +44,6 @@ |7: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, |8: 0-0 d,#608269, 1-1 d,#0d1410, 2-59 #e5eee5,#0d1410, 60-60 #e5eee5,#608269, 61-119 #e5eee5,#0d1410, == snap ws-swept grid=120x21 cursor=4,11 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit Restore /tmp/pardes-snap/headersweep-restored ec +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit Restore /tmp/pardes-snap/headersweep-rest ec |9: echo RE''STORED-WS |10: RESTORED-WS diff --git a/test/snapshots/headersweep.golden b/test/snapshots/headersweep.golden index 92d23a1b..38004c08 100644 --- a/test/snapshots/headersweep.golden +++ b/test/snapshots/headersweep.golden @@ -21,7 +21,7 @@ |19: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, |20: 0-0 d,#608269, 1-59 d,#0d1410, 60-60 d,#608269, 61-119 d,#0d1410, == snap col-swept grid=120x21 cursor=4,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol echo SW''EPT-COL New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/headersweep/cwd Tty+bash Save Mode Filte /tmp/pardes-snap/headersweep/cwd Tty+bash Save Mode Filte | r Collapse Del r Collapse Del @@ -38,11 +38,11 @@ | ls | hay.txt == snap ws-swept grid=120x21 cursor=4,10 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit echo SW''EPT-WS +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit echo SW''EPT-WS |8: echo SW''EPT-WS |9: SWEPT-WS == snap ws-looked grid=120x21 cursor=7,19 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit echo SW''EPT-WS xxhay.txtxx +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit echo SW''EPT-WS xxhay.txtxx |17: /tmp/pardes-snap/headersweep/cwd/hay.txt Save Tty Collaps |18: e Del |19: 1 ZQNEEDLE diff --git a/test/snapshots/hscroll.golden b/test/snapshots/hscroll.golden index ddd7bab7..e73bf4c3 100644 --- a/test/snapshots/hscroll.golden +++ b/test/snapshots/hscroll.golden @@ -1,5 +1,5 @@ == snap opened grid=90x31 cursor=7,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/hscroll/cwd Tty+bash Save /tmp/pardes-snap/hscroll/cwd Tty+bash Save | Mode Filter Collapse Del Mode Filter Collapse Del diff --git a/test/snapshots/images.golden b/test/snapshots/images.golden index 940e293e..e888460d 100644 --- a/test/snapshots/images.golden +++ b/test/snapshots/images.golden @@ -1,5 +1,5 @@ == snap img-open grid=150x31 cursor=11,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/images/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/images/cwd Tty+bash Save Mode Filter Collapse Del | ls ls @@ -75,7 +75,7 @@ |15: │█ðŸ¬�â–„ |16: ðŸ¬�🬹 == snap tag-edit grid=400x31 cursor=87,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/images/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/images/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/jumps.golden b/test/snapshots/jumps.golden index 65435443..27884f6a 100644 --- a/test/snapshots/jumps.golden +++ b/test/snapshots/jumps.golden @@ -1,5 +1,5 @@ == snap start grid=150x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/jumps/cwd/big.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/layout-close.golden b/test/snapshots/layout-close.golden index d708d764..95806a16 100644 --- a/test/snapshots/layout-close.golden +++ b/test/snapshots/layout-close.golden @@ -1,5 +1,5 @@ == snap built grid=140x41 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/layout-close/cwd Tty+bash Save Mode Filter Collaps /tmp/pardes-snap/layout-close/cwd Tty+bash Save Mode Filter Collaps | e Del e Del diff --git a/test/snapshots/layout-open.golden b/test/snapshots/layout-open.golden index 91d41790..a3d9dfdd 100644 --- a/test/snapshots/layout-open.golden +++ b/test/snapshots/layout-open.golden @@ -1,5 +1,5 @@ == snap before grid=100x31 cursor=2,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/layout-open/cwd Tty+bash Save /tmp/pardes-snap/layout-open/cwd Tty+bash Save | Mode Filter Collapse Del Mode Filter Collapse Del diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index 6c154c6c..52528cde 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -1,5 +1,5 @@ == snap spc grid=100x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/leader/cwd/cmds.txt Save Tty Collapse Del | 1 Help SPC diff --git a/test/snapshots/load.golden b/test/snapshots/load.golden index d18fd235..38a6d59b 100644 --- a/test/snapshots/load.golden +++ b/test/snapshots/load.golden @@ -1,5 +1,5 @@ == snap loaded grid=100x31 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/load/cwd Tty+bash Save Mode Fi /tmp/pardes-snap/load/cwd Tty+bash Save Mode Fi | lter Collapse Del lter Collapse Del diff --git a/test/snapshots/logquiet.golden b/test/snapshots/logquiet.golden index 366fc0f7..45b643db 100644 --- a/test/snapshots/logquiet.golden +++ b/test/snapshots/logquiet.golden @@ -1,5 +1,5 @@ == snap quiet grid=100x31 cursor=62,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/logquiet/cwd Tty+bash Save Mode Filter Collapse Del | $ ls diff --git a/test/snapshots/look-center.golden b/test/snapshots/look-center.golden index e5db101e..c861bb8f 100644 --- a/test/snapshots/look-center.golden +++ b/test/snapshots/look-center.golden @@ -1,5 +1,5 @@ == snap center-open grid=150x31 cursor=15,12 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-center/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/look-center/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/look-dir.golden b/test/snapshots/look-dir.golden index 7f20fdc6..29e67d5f 100644 --- a/test/snapshots/look-dir.golden +++ b/test/snapshots/look-dir.golden @@ -1,5 +1,5 @@ == snap dir-open grid=100x31 cursor=4,11 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-dir/cwd Tty+bash Save Mod /tmp/pardes-snap/look-dir/cwd Tty+bash Save Mod | e Filter Collapse Del e Filter Collapse Del diff --git a/test/snapshots/look-file-1col.golden b/test/snapshots/look-file-1col.golden index 45f9f20f..81ba4ded 100644 --- a/test/snapshots/look-file-1col.golden +++ b/test/snapshots/look-file-1col.golden @@ -1,5 +1,5 @@ == snap file-open-1col grid=100x31 cursor=14,19 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-file-1col/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/look-file.golden b/test/snapshots/look-file.golden index 695fd2c1..4d4bbdfe 100644 --- a/test/snapshots/look-file.golden +++ b/test/snapshots/look-file.golden @@ -1,5 +1,5 @@ == snap file-open grid=150x31 cursor=14,12 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/look-file/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/look-file/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/lookloaded.golden b/test/snapshots/lookloaded.golden index 70b42102..a968a6dc 100644 --- a/test/snapshots/lookloaded.golden +++ b/test/snapshots/lookloaded.golden @@ -1,5 +1,5 @@ == snap file-open grid=100x31 cursor=14,13 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lookloaded/cwd Tty+bash Save M /tmp/pardes-snap/lookloaded/cwd Tty+bash Save M | ode Filter Collapse Del ode Filter Collapse Del diff --git a/test/snapshots/lookpanes.golden b/test/snapshots/lookpanes.golden index 98dfd8b9..e0f55f5f 100644 --- a/test/snapshots/lookpanes.golden +++ b/test/snapshots/lookpanes.golden @@ -1,5 +1,5 @@ == snap shells grid=130x51 cursor=122,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lookpanes/cwd/beta/bmark.txt Save Tty Collaps /tmp/pardes-snap/lookpanes/cwd Tty+bash Save Mode Filter Colla | e Del pse Del diff --git a/test/snapshots/lookrange.golden b/test/snapshots/lookrange.golden index 25306ce1..f57ee457 100644 --- a/test/snapshots/lookrange.golden +++ b/test/snapshots/lookrange.golden @@ -1,5 +1,5 @@ == snap opened grid=150x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lookrange/cwd/look.txt Save Tty Collapse Del | 1 r.txt:3-5 diff --git a/test/snapshots/lsp-client-edit.golden b/test/snapshots/lsp-client-edit.golden index 29ec05af..c36d15be 100644 --- a/test/snapshots/lsp-client-edit.golden +++ b/test/snapshots/lsp-client-edit.golden @@ -1,5 +1,5 @@ == snap formatted grid=100x25 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | * /tmp/pardes-snap/lsp-client-edit/cwd/main.rs Save Tty Collapse Del TreeContext | 1 // formatted by mock formatted 1 range(s) diff --git a/test/snapshots/lsp-client.golden b/test/snapshots/lsp-client.golden index 17eb0d40..23d86e11 100644 --- a/test/snapshots/lsp-client.golden +++ b/test/snapshots/lsp-client.golden @@ -1,5 +1,5 @@ == snap gd-jumped grid=100x25 cursor=16,12 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lsp-client/cwd/main.rs Save Tty Collapse Del TreeContext | 1 mod lib; --:--:-- lsp rust-analyzer: ready diff --git a/test/snapshots/lsp-rename.golden b/test/snapshots/lsp-rename.golden index 03fb2311..ba19d8f0 100644 --- a/test/snapshots/lsp-rename.golden +++ b/test/snapshots/lsp-rename.golden @@ -1,5 +1,5 @@ == snap renamed grid=110x25 cursor=17,10 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | * /tmp/pardes-snap/lsp-rename/cwd/rename.zig Save Tty Collapse Del TreeContext | 1 const std = @import("std"); renamed 2 range(s) diff --git a/test/snapshots/lsp.golden b/test/snapshots/lsp.golden index be0090fb..153ae5cc 100644 --- a/test/snapshots/lsp.golden +++ b/test/snapshots/lsp.golden @@ -1,5 +1,5 @@ == snap opened grid=120x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lsp/cwd/a.zig Save Tty Collapse Del TreeContext | 1 const std = @import("std"); diff --git a/test/snapshots/lspcomplete.golden b/test/snapshots/lspcomplete.golden index 0b29034f..29a81f93 100644 --- a/test/snapshots/lspcomplete.golden +++ b/test/snapshots/lspcomplete.golden @@ -1,5 +1,5 @@ == snap opened grid=120x41 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lspcomplete/cwd/a.zig Save Tty Collapse Del TreeContext | 1 const Shade = enum { @@ -31,13 +31,13 @@ == snap step grid=120x41 cursor=19,4 |2: * /tmp/pardes-snap/lspcomplete/cwd/a.zig Save Tty Collapse Del TreeContext == snap txtindent grid=120x41 cursor=15,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |^* /tmp/pardes-snap/lspcomplete/cwd/notes.txt Save Tty Collapse Del | 1 abc. def ghi | 2 == snap nosemi grid=100x19 cursor=29,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |^* /tmp/pardes-snap/lspcomplete/cwd/c.zig Save Tty Collapse Del TreeContext | 1 const Shade = enum { @@ -53,7 +53,7 @@ | 2 c.zig:3:5-12 cinnabar cinnabar, | 3 == snap nobrace grid=100x19 cursor=16,10 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |^* /tmp/pardes-snap/lspcomplete/cwd/d.zig Save Tty Collapse Del TreeContext | 1 const Shade = enum { diff --git a/test/snapshots/lspcompletemoved.golden b/test/snapshots/lspcompletemoved.golden index a033ed56..e759cbd8 100644 --- a/test/snapshots/lspcompletemoved.golden +++ b/test/snapshots/lspcompletemoved.golden @@ -1,5 +1,5 @@ == snap typedthrough grid=120x21 cursor=16,14 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |^* /tmp/pardes-snap/lspcompletemoved/cwd/a.zig Save Tty Collapse Del TreeContext | 1 const Shade = enum { diff --git a/test/snapshots/lspdebug.golden b/test/snapshots/lspdebug.golden index cf2eb097..650b41b2 100644 --- a/test/snapshots/lspdebug.golden +++ b/test/snapshots/lspdebug.golden @@ -1,5 +1,5 @@ == snap opened grid=120x45 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/lspdebug/cwd/z.zig Save Tty Collapse Del TreeContext | 1 const std = @import("std"); diff --git a/test/snapshots/lsprelpath.golden b/test/snapshots/lsprelpath.golden index 201f6dd4..904e076a 100644 --- a/test/snapshots/lsprelpath.golden +++ b/test/snapshots/lsprelpath.golden @@ -1,5 +1,5 @@ == snap absrow grid=100x35 cursor=16,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |^* /tmp/pardes-snap/lsprelpath/cwd/sub/parent.zig Save Tty Collapse Del TreeContext | 1 const shade = @import("../shade.zig"); @@ -58,7 +58,7 @@ |33: 0-0 d,#608269, 1-99 d,#0d1410, |34: 0-0 d,#608269, 1-99 d,#0d1410, == snap subrow grid=100x35 cursor=16,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |^* /tmp/pardes-snap/lsprelpath/cwd/sub/subdir.zig Save Tty Collapse Del TreeContext | 1 const tint = @import("inner/tint.zig"); diff --git a/test/snapshots/markup.golden b/test/snapshots/markup.golden index 8c712a58..6991cdf6 100644 --- a/test/snapshots/markup.golden +++ b/test/snapshots/markup.golden @@ -1,5 +1,5 @@ == snap typst grid=92x25 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/markup/cwd/paper.typ Save Tty Collapse Del TreeContext | 1 = Typst heading @@ -38,7 +38,7 @@ |23: 0-0 d,#608269, 1-91 d,#0d1410, |24: 0-0 d,#608269, 1-91 d,#0d1410, == snap markdown grid=92x25 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/markup/cwd/notes.md Save Tty Collapse Del TreeContext | 1 # Markdown heading with *italic* diff --git a/test/snapshots/mini.golden b/test/snapshots/mini.golden index cc8dd612..8d0205f7 100644 --- a/test/snapshots/mini.golden +++ b/test/snapshots/mini.golden @@ -1,5 +1,5 @@ == snap opened grid=90x23 cursor=7,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/mini/cwd/commands.txt Save Tty Collapse Del | 1 @`Mini demo.zig` Mini @@ -34,8 +34,8 @@ |21: 0-0 d,#608269, 1-89 d,#0d1410, |22: 0-0 d,#608269, 1-89 d,#0d1410, == 9p opened grid=90x23 cursor=7,6,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit -@0: 0-70 #b2c3b8,#1d2824,,tagline 71-89 d,#1d2824,,tagline +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +@0: 0-74 #b2c3b8,#1d2824,,tagline 75-89 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#314738,,tagline 3-34 #becfc4,#314738,,tagline 35-89 d,#314738,,tagline |2: /tmp/pardes-snap/mini/cwd/commands.txt Save Tty Collapse Del @@ -105,7 +105,7 @@ |7: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-8 #b9f480,#0d1410, 9-11 #c9a7ed,#0d1410, 12-89 #b9f480,#0d1410, |8: 0-0 d,#608269, 1-4 d,#0d1410, 5-6 #59675c,#0d1410, 7-17 #e5eee5,#0d1410, 18-19 #f8c082,#0d1410, 20-89 #e5eee5,#0d1410, == snap resized grid=105x27 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/mini/cwd/commands.txt Save Tty Collapse Del | 1 @`Mini demo.zig` @@ -117,8 +117,8 @@ | 3 ⠉⠉â �⠉⠉⠉⠈⠈⠉⠉⠉⠉⠉⠉ | 4 == 9p resized grid=105x27 cursor=7,7,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit -@0: 0-70 #b2c3b8,#1d2824,,tagline 71-104 d,#1d2824,,tagline +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +@0: 0-74 #b2c3b8,#1d2824,,tagline 75-104 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#314738,,tagline 3-34 #becfc4,#314738,,tagline 35-104 d,#314738,,tagline |2: /tmp/pardes-snap/mini/cwd/commands.txt Save Tty Collapse Del diff --git a/test/snapshots/modal.golden b/test/snapshots/modal.golden index 4ade84f2..6dc6376d 100644 --- a/test/snapshots/modal.golden +++ b/test/snapshots/modal.golden @@ -1,5 +1,5 @@ == snap top grid=100x31 cursor=2,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/modal/cwd Tty+bash Save Mode F /tmp/pardes-snap/modal/cwd Tty+bash Save Mode F | ilter Collapse Del ilter Collapse Del diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden index ff7b39a0..caa234d3 100644 --- a/test/snapshots/msg.golden +++ b/test/snapshots/msg.golden @@ -1,5 +1,5 @@ == snap opened grid=70x15 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/msg/cwd/a.txt Save Tty Collapse Del | 1 line 1 @@ -12,7 +12,7 @@ == snap saved grid=70x15 cursor=7,3 |3: 1 line 1 --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt == snap repainted grid=70x17 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/msg/cwd/a.txt Save Tty Collapse Del | 1 line 1 --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt diff --git a/test/snapshots/multicursor.golden b/test/snapshots/multicursor.golden index c3d5dbe2..0b3bbcb2 100644 --- a/test/snapshots/multicursor.golden +++ b/test/snapshots/multicursor.golden @@ -1,5 +1,5 @@ == snap three-cursors grid=150x31 cursor=7,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/multicursor/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/multicursor/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/nested.golden b/test/snapshots/nested.golden index 9758c491..07d6148d 100644 --- a/test/snapshots/nested.golden +++ b/test/snapshots/nested.golden @@ -1,5 +1,5 @@ == snap file-arg grid=100x31 cursor=7,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/nested/cwd Tty+bash Save Mode Filter Collapse Del | $ $(readlink /proc/$PPID/exe) nested.txt @@ -23,7 +23,7 @@ | /tmp/pardes-snap/nested/cwd/+New Save Tty Collapse Del | 1 == snap no-arg grid=100x31 cursor=4,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/nested/cwd Tty+bash Save Mode Filter Collapse Del | $ $(readlink /proc/$PPID/exe) @@ -47,7 +47,7 @@ | /tmp/pardes-snap/nested/cwd/+New Save Tty Collapse Del | 1 == snap dir-arg grid=100x31 cursor=4,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/nested/cwd Tty+bash Save Mode Filter Collapse Del | $ $(readlink /proc/$PPID/exe) nestdir diff --git a/test/snapshots/ninep.golden b/test/snapshots/ninep.golden index f3733ab4..c6b5f0af 100644 --- a/test/snapshots/ninep.golden +++ b/test/snapshots/ninep.golden @@ -1,5 +1,5 @@ == snap opened grid=90x15 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ninep/cwd/demo.zig Save Tty Collapse Del TreeContext | 1 const greeting = "café λ 界 eÌ�"; @@ -26,8 +26,8 @@ |13: 0-0 d,#608269, 1-89 d,#0d1410, |14: 0-0 d,#608269, 1-89 d,#0d1410, == 9p opened grid=90x15 cursor=7,3,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit -@0: 0-70 #b2c3b8,#1d2824,,tagline 71-89 d,#1d2824,,tagline +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +@0: 0-74 #b2c3b8,#1d2824,,tagline 75-89 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#314738,,tagline 3-34 #becfc4,#314738,,tagline 35-89 d,#314738,,tagline |2: /tmp/pardes-snap/ninep/cwd/demo.zig Save Tty Collapse Del TreeContext @@ -148,8 +148,8 @@ |18: 0-0 d,#608269, 1-104 d,#0d1410, |19: 0-0 d,#608269, 1-104 d,#0d1410, == 9p resized grid=105x20 cursor=7,4,block -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit -@0: 0-70 #b2c3b8,#1d2824,,tagline 71-104 d,#1d2824,,tagline +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +@0: 0-74 #b2c3b8,#1d2824,,tagline 75-104 d,#1d2824,,tagline |1: New Tty Find Grep Joincol Delcol @1: 0-1 #ffffff,#887455,,tagline 2-2 d,#314738,,tagline 3-34 #becfc4,#314738,,tagline 35-104 d,#314738,,tagline |2: * /tmp/pardes-snap/ninep/cwd/demo.zig Save Tty Collapse Del TreeContext @@ -191,7 +191,7 @@ |19: @19: 0-0 d,#608269,,body 1-1 d,#0d1410,,body 2-6 #59675c,#0d1410,,body 7-104 d,#0d1410,,body == snap resized grid=105x20 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | * /tmp/pardes-snap/ninep/cwd/demo.zig Save Tty Collapse Del TreeContext | 1 // café λ 界 Colors diff --git a/test/snapshots/pipe.golden b/test/snapshots/pipe.golden index b7a8da86..2fd54c27 100644 --- a/test/snapshots/pipe.golden +++ b/test/snapshots/pipe.golden @@ -1,5 +1,5 @@ == snap prompt grid=180x13 cursor=179,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/pipe/cwd/pipe.txt Save Tty Collapse Del | 1 alpha beta |tr a-z A-Z diff --git a/test/snapshots/psearch.golden b/test/snapshots/psearch.golden index 544086c5..e830a206 100644 --- a/test/snapshots/psearch.golden +++ b/test/snapshots/psearch.golden @@ -1,5 +1,5 @@ == snap output grid=140x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/psearch/cwd Tty+bash Save Mode Filter Collapse Del | printf 'x MA''RK a\nzz\nx MA''RK b\nzz\nx MA''RK c\n' diff --git a/test/snapshots/reflow.golden b/test/snapshots/reflow.golden index afd4b93f..17c42d0d 100644 --- a/test/snapshots/reflow.golden +++ b/test/snapshots/reflow.golden @@ -1,5 +1,5 @@ == snap widened grid=200x25 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/reflow/cwd Tty+bash Save Mode Filter Collapse Del | yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy diff --git a/test/snapshots/respawn.golden b/test/snapshots/respawn.golden index d6d21a81..1e6425d2 100644 --- a/test/snapshots/respawn.golden +++ b/test/snapshots/respawn.golden @@ -1,5 +1,5 @@ == snap respawn grid=140x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/respawn/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/respawn/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/restore.golden b/test/snapshots/restore.golden index af2b82c1..0bb53676 100644 --- a/test/snapshots/restore.golden +++ b/test/snapshots/restore.golden @@ -1,5 +1,5 @@ == snap dumped grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit Restore /tmp/pardes-snap/res +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit Restore /tmp/pardes-snap | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/restore/cwd Tty+bash Save Mode Filter Collapse Del | $ ls Dump diff --git a/test/snapshots/rsearch.golden b/test/snapshots/rsearch.golden index 89c4f7bd..eb98853a 100644 --- a/test/snapshots/rsearch.golden +++ b/test/snapshots/rsearch.golden @@ -1,5 +1,5 @@ == snap opened grid=210x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/rsearch/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/savepane.golden b/test/snapshots/savepane.golden index 8660a437..bea7146b 100644 --- a/test/snapshots/savepane.golden +++ b/test/snapshots/savepane.golden @@ -1,5 +1,5 @@ == snap scratch grid=100x31 cursor=20,18 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/savepane/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/scroll.golden b/test/snapshots/scroll.golden index 9250590a..44b6b264 100644 --- a/test/snapshots/scroll.golden +++ b/test/snapshots/scroll.golden @@ -1,5 +1,5 @@ == snap bottom grid=100x31 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/scroll/cwd Tty+bash Save Mode /tmp/pardes-snap/scroll/cwd Tty+bash Save Mode | Filter Collapse Del Filter Collapse Del diff --git a/test/snapshots/scrolloff.golden b/test/snapshots/scrolloff.golden index 17ca7e7b..299df49d 100644 --- a/test/snapshots/scrolloff.golden +++ b/test/snapshots/scrolloff.golden @@ -1,5 +1,5 @@ == snap top grid=210x16 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/scrolloff/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/selarg.golden b/test/snapshots/selarg.golden index f41c355b..741864ef 100644 --- a/test/snapshots/selarg.golden +++ b/test/snapshots/selarg.golden @@ -1,5 +1,5 @@ == snap kept grid=100x31 cursor=6,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/selarg/cwd Tty+bash Save Mode /tmp/pardes-snap/selarg/cwd Tty+bash Save Mode | Filter Collapse Del Filter Collapse Del diff --git a/test/snapshots/selregex.golden b/test/snapshots/selregex.golden index c99d48e1..e3f3b2d7 100644 --- a/test/snapshots/selregex.golden +++ b/test/snapshots/selregex.golden @@ -1,5 +1,5 @@ == snap prompt-armed grid=160x25 cursor=159,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/selregex/cwd/m.zig Save Tty Collapse Del TreeContext | 1 const one = 1; Select / diff --git a/test/snapshots/shellset.golden b/test/snapshots/shellset.golden index 0d13f017..9d566be7 100644 --- a/test/snapshots/shellset.golden +++ b/test/snapshots/shellset.golden @@ -1,5 +1,5 @@ == snap boot grid=90x21 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/shellset/cwd/cmd.txt Save Tty Collapse Del | 1 Shell zznosuchshell diff --git a/test/snapshots/shrinktag.golden b/test/snapshots/shrinktag.golden index 9aa29e11..d73c0072 100644 --- a/test/snapshots/shrinktag.golden +++ b/test/snapshots/shrinktag.golden @@ -1,5 +1,5 @@ == snap before grid=100x31 cursor=2,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/shrinktag/cwd Tty+bash Save Mo /tmp/pardes-snap/shrinktag/cwd Tty+bash Save Mo | de Filter Collapse Del de Filter Collapse Del diff --git a/test/snapshots/splitparent.golden b/test/snapshots/splitparent.golden index e626cea7..f83bbb66 100644 --- a/test/snapshots/splitparent.golden +++ b/test/snapshots/splitparent.golden @@ -1,5 +1,5 @@ == snap shrunk grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/splitparent/cwd Tty+bash Save /tmp/pardes-snap/splitparent/cwd Tty+bash Save | Mode Filter Collapse Del Mode Filter Collapse Del @@ -13,14 +13,14 @@ |11: Mode Filter Collapse Del |12: ls == snap tallest grid=100x6 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/splitparent/cwd Tty+bash Save /tmp/pardes-snap/splitparent/cwd Tty+bash Save | /tmp/pardes-snap/splitparent/cwd Tty+bash Save Mode Filter Collapse Del | /tmp/pardes-snap/splitparent/cwd Tty+bash Save ls | e in that column: each keeps its tag and 2 rows == snap regrown grid=100x31 cursor=4,13 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/splitparent/cwd Tty+bash Save /tmp/pardes-snap/splitparent/cwd Tty+bash Save | Mode Filter Collapse Del Mode Filter Collapse Del diff --git a/test/snapshots/stepgrain.golden b/test/snapshots/stepgrain.golden index bdd506e9..7c445492 100644 --- a/test/snapshots/stepgrain.golden +++ b/test/snapshots/stepgrain.golden @@ -1,5 +1,5 @@ == snap results grid=150x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/stepgrain/cwd/a.txt Save Tty Collapse Del | 1 hello ZQMARK one diff --git a/test/snapshots/syntax.golden b/test/snapshots/syntax.golden index 096dab27..2f7a6b74 100644 --- a/test/snapshots/syntax.golden +++ b/test/snapshots/syntax.golden @@ -1,5 +1,5 @@ == snap zig-open grid=150x31 cursor=7,7 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/syntax/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/syntax/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/tag.golden b/test/snapshots/tag.golden index 0f9af5dc..0d20859a 100644 --- a/test/snapshots/tag.golden +++ b/test/snapshots/tag.golden @@ -1,5 +1,5 @@ == snap tag-focus grid=150x31 cursor=36,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tag/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/tag/cwd Tty+bash Save Mode Filter Collapse Del | ls ls diff --git a/test/snapshots/tagalign.golden b/test/snapshots/tagalign.golden index 8a522ced..a557ff95 100644 --- a/test/snapshots/tagalign.golden +++ b/test/snapshots/tagalign.golden @@ -1,5 +1,5 @@ == snap aligned grid=100x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty Collapse Del | 1 alpha @@ -9,7 +9,7 @@ | ls | deep == snap fits grid=87x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty Co | llapse Del @@ -19,7 +19,7 @@ | ls | deep == snap overby1 grid=86x31 cursor=4,9 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty C | ollapse Del @@ -29,7 +29,7 @@ | ls | deep == snap clicked grid=100x31 cursor=11,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/document.txt Save Tty Collapse Del | 1 alpha @@ -39,7 +39,7 @@ | ls | deep == snap revealed grid=70x31 cursor=30,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign/cwd/deep/nested-project-directory/documen | t.txt Save Tty Collapse Del diff --git a/test/snapshots/tagalign2col.golden b/test/snapshots/tagalign2col.golden index a35edccb..129141b6 100644 --- a/test/snapshots/tagalign2col.golden +++ b/test/snapshots/tagalign2col.golden @@ -1,5 +1,5 @@ == snap onecol grid=160x31 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagalign2col/cwd/deep/proj/document.txt Save Tty Collapse De /tmp/pardes-snap/tagalign2col/cwd Tty+bash Save Mode Filter Collapse Del | l ls Left diff --git a/test/snapshots/tagbottom.golden b/test/snapshots/tagbottom.golden index d5f1f720..8469c741 100644 --- a/test/snapshots/tagbottom.golden +++ b/test/snapshots/tagbottom.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagbottom/cwd/top.txt Save Tty Collapse Del | 1 aaa diff --git a/test/snapshots/tagbottomimage.golden b/test/snapshots/tagbottomimage.golden index 89e96f6b..2bf9231e 100644 --- a/test/snapshots/tagbottomimage.golden +++ b/test/snapshots/tagbottomimage.golden @@ -1,5 +1,5 @@ == snap img-top grid=150x31 cursor=11,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagbottomimage/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/tagbottomshort.golden b/test/snapshots/tagbottomshort.golden index 3fd3b180..efa8b3f1 100644 --- a/test/snapshots/tagbottomshort.golden +++ b/test/snapshots/tagbottomshort.golden @@ -1,5 +1,5 @@ == snap roomy grid=80x11 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | 2 two @@ -11,21 +11,21 @@ | | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap two-body grid=80x5 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | 2 two | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap one-body grid=80x4 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap tag-only grid=80x2 cursor=79,1 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap regrown grid=80x11 cursor=79,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | 1 one /ZZ | 2 two @@ -37,7 +37,7 @@ | | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del == snap leader-one-body grid=80x4 cursor=7,2 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | 1 one SPC | /tmp/pardes-snap/tagbottomshort/cwd/s.txt Save Tty Collapse Del diff --git a/test/snapshots/tagcmd.golden b/test/snapshots/tagcmd.golden index 8f1dc8d2..2c1ca73f 100644 --- a/test/snapshots/tagcmd.golden +++ b/test/snapshots/tagcmd.golden @@ -1,5 +1,5 @@ == snap edited grid=100x31 cursor=13,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | * /tmp/pardes-snap/tagcmd/cwd/c.txt Save Tty Collapse Del | 1 ZZEDITline 1 diff --git a/test/snapshots/tagnav.golden b/test/snapshots/tagnav.golden index e06c578e..a86854a9 100644 --- a/test/snapshots/tagnav.golden +++ b/test/snapshots/tagnav.golden @@ -1,5 +1,5 @@ == snap start grid=100x31 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagnav/cwd/w.txt Save Tty Coll /tmp/pardes-snap/tagnav/cwd Tty+bash Save Mode | apse Del Filter Collapse Del @@ -34,13 +34,13 @@ |4: 1 alpha ls == snap workspace-tag grid=100x31 cursor=0,0 |4: 1 alpha Up ls -== snap topbar-dollar grid=100x31 cursor=70,0 +== snap topbar-dollar grid=100x31 cursor=74,0 |4: 1 alpha ls == snap topbar-dump-word grid=100x31 cursor=46,0 == snap topbar-exec grid=100x31 cursor=7,4 -|0: Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit Restore /tmp/pardes-snap/tag +|0: Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit Restore /tmp/pardes-snap |4: 1 alpha Dump ls -== snap topbar-restore-word grid=100x31 cursor=72,0 +== snap topbar-restore-word grid=100x31 cursor=76,0 |4: 1 alpha ls == snap topbar-restored grid=100x31 cursor=7,4 |4: 1 alpha $ ls diff --git a/test/snapshots/tagnav.snap b/test/snapshots/tagnav.snap index f145480e..2f5906bb 100644 --- a/test/snapshots/tagnav.snap +++ b/test/snapshots/tagnav.snap @@ -93,7 +93,7 @@ snap column-word key c-w k stable 400 5000 snap workspace-tag -# `$` is the last cell; four long-word steps back land on `Dump`, and the +# `$` is the last cell; five long-word steps back land on `Dump`, and the # execute key runs it and gives the keyboard back to the body FIRST -- `Exit` # lives up here too, so a builtin that frees the session must never return # into a focused header. Dump grows a `Restore ` word, which is also the @@ -101,7 +101,7 @@ snap workspace-tag key g l stable 400 5000 snap topbar-dollar -key B B B B +key B B B B B stable 400 5000 snap topbar-dump-word key tab diff --git a/test/snapshots/tagpath.golden b/test/snapshots/tagpath.golden index 6f082c7a..1216bdeb 100644 --- a/test/snapshots/tagpath.golden +++ b/test/snapshots/tagpath.golden @@ -1,5 +1,5 @@ == snap start grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tagpath/cwd/c.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/theme.golden b/test/snapshots/theme.golden index 443d639c..351f8905 100644 --- a/test/snapshots/theme.golden +++ b/test/snapshots/theme.golden @@ -1,5 +1,5 @@ -== snap orchard grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +== snap orchard grid=100x31 cursor=85,0 +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit NextColor | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/theme/cwd Tty+bash Save Mode F /tmp/pardes-snap/theme/cwd Tty+bash Save Mode F | ilter Collapse Del ilter Collapse Del @@ -55,7 +55,7 @@ == snap dusk grid=100x31 cursor=4,6 |4: ls NextColor ls == style dusk grid=100x31 -|0: 0-50 #c6b6c5,#2c2630, 51-59 #fff0eb,#654053, 60-60 #fff0eb,#2c2630, 61-99 #c6b6c5,#2c2630, +|0: 0-75 #c6b6c5,#2c2630, 76-84 #fff0eb,#654053, 85-99 #fff0eb,#2c2630, |1: 0-1 d,#757a5f, 2-2 d,#533d4d, 3-49 #d2c2d1,#533d4d, 50-51 #d2c2d1,#757a5f, 52-52 #d2c2d1,#2c2630, 53-99 #c6b6c5,#2c2630, |2: 0-1 d,#edb092, 2-2 d,#533d4d, 3-29 #d2c2d1,#533d4d, 30-38 #a1d5c4,#533d4d, 39-49 #d2c2d1,#533d4d, 50-51 #d2c2d1,#745469, 52-52 #d2c2d1,#2c2630, 53-79 #c6b6c5,#2c2630, 80-88 #96c9b8,#2c2630, 89-99 #c6b6c5,#2c2630, |3: 0-2 d,#533d4d, 3-49 #d2c2d1,#533d4d, 50-52 #d2c2d1,#2c2630, 53-99 #c6b6c5,#2c2630, @@ -88,7 +88,7 @@ |30: 0-0 d,#8e667c, 1-49 d,#39323b, 50-50 d,#8e667c, 51-99 d,#39323b, == snap ink grid=100x31 cursor=4,6 == style ink grid=100x31 -|0: 0-50 #d5e4f1,#15212c, 51-59 #ffffff,#1b547c, 60-60 #ffffff,#15212c, 61-99 #d5e4f1,#15212c, +|0: 0-75 #d5e4f1,#15212c, 76-84 #ffffff,#1b547c, 85-99 #ffffff,#15212c, |1: 0-1 d,#8f7d5b, 2-2 d,#2b4051, 3-49 #e1eef9,#2b4051, 50-51 #e1eef9,#8f7d5b, 52-52 #e1eef9,#15212c, 53-99 #d5e4f1,#15212c, |2: 0-1 d,#86d8ff, 2-2 d,#2b4051, 3-29 #e1eef9,#2b4051, 30-38 #ffeab8,#2b4051, 39-49 #e1eef9,#2b4051, 50-51 #e1eef9,#5f7990, 52-52 #e1eef9,#15212c, 53-79 #d5e4f1,#15212c, 80-88 #f5e0ac,#15212c, 89-99 #d5e4f1,#15212c, |3: 0-2 d,#2b4051, 3-49 #e1eef9,#2b4051, 50-52 #e1eef9,#15212c, 53-99 #d5e4f1,#15212c, @@ -121,7 +121,7 @@ |30: 0-0 d,#86a8c2, 1-49 d,#000000, 50-50 d,#86a8c2, 51-99 d,#000000, == snap paper grid=100x31 cursor=4,6 == style paper grid=100x31 -|0: 0-50 #52625a,#e8eae3, 51-59 #203e31,#c5e2d0, 60-60 #203e31,#e8eae3, 61-99 #52625a,#e8eae3, +|0: 0-75 #52625a,#e8eae3, 76-84 #203e31,#c5e2d0, 85-99 #203e31,#e8eae3, |1: 0-1 d,#bda27e, 2-2 d,#bdd8ca, 3-49 #4a5a52,#bdd8ca, 50-51 #4a5a52,#bda27e, 52-52 #4a5a52,#e8eae3, 53-99 #52625a,#e8eae3, |2: 0-1 d,#367157, 2-2 d,#bdd8ca, 3-29 #4a5a52,#bdd8ca, 30-38 #69447a,#bdd8ca, 39-49 #4a5a52,#bdd8ca, 50-51 #4a5a52,#8fa594, 52-52 #4a5a52,#e8eae3, 53-79 #52625a,#e8eae3, 80-88 #724c83,#e8eae3, 89-99 #52625a,#e8eae3, |3: 0-2 d,#bdd8ca, 3-49 #4a5a52,#bdd8ca, 50-52 #4a5a52,#e8eae3, 53-99 #52625a,#e8eae3, @@ -154,7 +154,7 @@ |30: 0-0 d,#869d8a, 1-49 d,#f5f3ed, 50-50 d,#869d8a, 51-99 d,#f5f3ed, == snap daybreak grid=100x31 cursor=4,6 == style daybreak grid=100x31 -|0: 0-50 #29465e,#edf2f7, 51-59 #10364f,#b9dffb, 60-60 #10364f,#edf2f7, 61-99 #29465e,#edf2f7, +|0: 0-75 #29465e,#edf2f7, 76-84 #10364f,#b9dffb, 85-99 #10364f,#edf2f7, |1: 0-1 d,#b79a7a, 2-2 d,#c7dcec, 3-49 #213e56,#c7dcec, 50-51 #213e56,#b79a7a, 52-52 #213e56,#edf2f7, 53-99 #29465e,#edf2f7, |2: 0-1 d,#006198, 2-2 d,#c7dcec, 3-29 #213e56,#c7dcec, 30-38 #52255f,#c7dcec, 39-49 #213e56,#c7dcec, 50-51 #213e56,#7b9eb7, 52-52 #213e56,#edf2f7, 53-79 #29465e,#edf2f7, 80-88 #5a2d67,#edf2f7, 89-99 #29465e,#edf2f7, |3: 0-2 d,#c7dcec, 3-49 #213e56,#c7dcec, 50-52 #213e56,#edf2f7, 53-99 #29465e,#edf2f7, @@ -187,7 +187,7 @@ |30: 0-0 d,#6685a0, 1-49 d,#ffffff, 50-50 d,#6685a0, 51-99 d,#ffffff, == snap atelier grid=100x31 cursor=4,6 == style atelier grid=100x31 -|0: 0-50 #3d6055,#e4f0ed, 51-59 #35492d,#edf2a5, 60-60 #35492d,#e4f0ed, 61-99 #3d6055,#e4f0ed, +|0: 0-75 #3d6055,#e4f0ed, 76-84 #35492d,#edf2a5, 85-99 #35492d,#e4f0ed, |1: 0-1 d,#bca481, 2-2 d,#bfdcce, 3-49 #35584d,#bfdcce, 50-51 #35584d,#bca481, 52-52 #35584d,#e4f0ed, 53-99 #3d6055,#e4f0ed, |2: 0-1 d,#36826b, 2-2 d,#bfdcce, 3-29 #35584d,#bfdcce, 30-38 #653f6b,#bfdcce, 39-49 #35584d,#bfdcce, 50-51 #35584d,#95baa2, 52-52 #35584d,#e4f0ed, 53-79 #3d6055,#e4f0ed, 80-88 #6e4774,#e4f0ed, 89-99 #3d6055,#e4f0ed, |3: 0-2 d,#bfdcce, 3-49 #35584d,#bfdcce, 50-52 #35584d,#e4f0ed, 53-99 #3d6055,#e4f0ed, @@ -225,7 +225,7 @@ == snap forge grid=100x31 cursor=4,6 |4: ls NextColor ls == style forge grid=100x31 -|0: 0-50 #c5c9d2,#22252b, 51-59 #e2eef4,#1c5172, 60-60 #e2eef4,#22252b, 61-99 #c5c9d2,#22252b, +|0: 0-75 #c5c9d2,#22252b, 76-84 #e2eef4,#1c5172, 85-99 #e2eef4,#22252b, |1: 0-1 d,#6a7b67, 2-2 d,#374253, 3-49 #d1d5de,#374253, 50-51 #d1d5de,#6a7b67, 52-52 #d1d5de,#22252b, 53-99 #c5c9d2,#22252b, |2: 0-1 d,#9cc3f7, 2-2 d,#374253, 3-29 #d1d5de,#374253, 30-38 #f8cba7,#374253, 39-49 #d1d5de,#374253, 50-51 #d1d5de,#55647b, 52-52 #d1d5de,#22252b, 53-79 #c5c9d2,#22252b, 80-88 #ecbf9b,#22252b, 89-99 #c5c9d2,#22252b, |3: 0-2 d,#374253, 3-49 #d1d5de,#374253, 50-52 #d1d5de,#22252b, 53-99 #c5c9d2,#22252b, @@ -258,7 +258,7 @@ |30: 0-0 d,#708095, 1-49 d,#0c0c0e, 50-50 d,#708095, 51-99 d,#0c0c0e, == snap lagoon grid=100x31 cursor=4,6 == style lagoon grid=100x31 -|0: 0-50 #bbd7cb,#29443f, 51-59 #e6f2f3,#325f6c, 60-60 #e6f2f3,#29443f, 61-99 #bbd7cb,#29443f, +|0: 0-75 #bbd7cb,#29443f, 76-84 #e6f2f3,#325f6c, 85-99 #e6f2f3,#29443f, |1: 0-1 d,#9a7662, 2-2 d,#3a6154, 3-49 #c7e3d7,#3a6154, 50-51 #c7e3d7,#9a7662, 52-52 #c7e3d7,#29443f, 53-99 #bbd7cb,#29443f, |2: 0-1 d,#81cfb7, 2-2 d,#3a6154, 3-29 #c7e3d7,#3a6154, 30-38 #f0cef8,#3a6154, 39-49 #c7e3d7,#3a6154, 50-51 #c7e3d7,#548372, 52-52 #c7e3d7,#29443f, 53-79 #bbd7cb,#29443f, 80-88 #e4c2ec,#29443f, 89-99 #bbd7cb,#29443f, |3: 0-2 d,#3a6154, 3-49 #c7e3d7,#3a6154, 50-52 #c7e3d7,#29443f, 53-99 #bbd7cb,#29443f, @@ -291,7 +291,7 @@ |30: 0-0 d,#6e9b8b, 1-49 d,#34464c, 50-50 d,#6e9b8b, 51-99 d,#34464c, == snap solarium grid=100x31 cursor=4,6 == style solarium grid=100x31 -|0: 0-50 #c7d4bd,#123f43, 51-59 #eee8d5,#1f5c64, 60-60 #eee8d5,#123f43, 61-99 #c7d4bd,#123f43, +|0: 0-75 #c7d4bd,#123f43, 76-84 #eee8d5,#1f5c64, 85-99 #eee8d5,#123f43, |1: 0-1 d,#347a9a, 2-2 d,#2f5c5c, 3-49 #d3e0c9,#2f5c5c, 50-51 #d3e0c9,#347a9a, 52-52 #d3e0c9,#123f43, 53-99 #c7d4bd,#123f43, |2: 0-1 d,#e1c266, 2-2 d,#2f5c5c, 3-29 #d3e0c9,#2f5c5c, 30-38 #f5cdec,#2f5c5c, 39-49 #d3e0c9,#2f5c5c, 50-51 #d3e0c9,#467f76, 52-52 #d3e0c9,#123f43, 53-79 #c7d4bd,#123f43, 80-88 #e9c1e0,#123f43, 89-99 #c7d4bd,#123f43, |3: 0-2 d,#2f5c5c, 3-49 #d3e0c9,#2f5c5c, 50-52 #d3e0c9,#123f43, 53-99 #c7d4bd,#123f43, @@ -324,7 +324,7 @@ |30: 0-0 d,#65978c, 1-49 d,#173e45, 50-50 d,#65978c, 51-99 d,#173e45, == snap spectrum grid=100x31 cursor=4,6 == style spectrum grid=100x31 -|0: 0-50 #ddd8bb,#3b3830, 51-59 #fcfcfa,#513f60, 60-60 #fcfcfa,#3b3830, 61-99 #ddd8bb,#3b3830, +|0: 0-75 #ddd8bb,#3b3830, 76-84 #fcfcfa,#513f60, 85-99 #fcfcfa,#3b3830, |1: 0-1 d,#706596, 2-2 d,#5a523a, 3-49 #e9e4c7,#5a523a, 50-51 #e9e4c7,#706596, 52-52 #e9e4c7,#3b3830, 53-99 #ddd8bb,#3b3830, |2: 0-1 d,#ffd866, 2-2 d,#5a523a, 3-29 #e9e4c7,#5a523a, 30-38 #d7e3ff,#5a523a, 39-49 #e9e4c7,#5a523a, 50-51 #e9e4c7,#92844f, 52-52 #e9e4c7,#3b3830, 53-79 #ddd8bb,#3b3830, 80-88 #c5d7ff,#3b3830, 89-99 #ddd8bb,#3b3830, |3: 0-2 d,#5a523a, 3-49 #e9e4c7,#5a523a, 50-52 #e9e4c7,#3b3830, 53-99 #ddd8bb,#3b3830, @@ -357,7 +357,7 @@ |30: 0-0 d,#948d6f, 1-49 d,#100e11, 50-50 d,#948d6f, 51-99 d,#100e11, == snap harvest grid=100x31 cursor=4,6 == style harvest grid=100x31 -|0: 0-50 #d5d8b8,#343b2e, 51-59 #f3f2cc,#4f5834, 60-60 #f3f2cc,#343b2e, 61-99 #d5d8b8,#343b2e, +|0: 0-75 #d5d8b8,#343b2e, 76-84 #f3f2cc,#4f5834, 85-99 #f3f2cc,#343b2e, |1: 0-1 d,#9b583f, 2-2 d,#4a583e, 3-49 #e1e4c4,#4a583e, 50-51 #e1e4c4,#9b583f, 52-52 #e1e4c4,#343b2e, 53-99 #d5d8b8,#343b2e, |2: 0-1 d,#d8bd83, 2-2 d,#4a583e, 3-29 #e1e4c4,#4a583e, 30-38 #c5e7f7,#4a583e, 39-49 #e1e4c4,#4a583e, 50-51 #e1e4c4,#7b7e4e, 52-52 #e1e4c4,#343b2e, 53-79 #d5d8b8,#343b2e, 80-88 #badbeb,#343b2e, 89-99 #d5d8b8,#343b2e, |3: 0-2 d,#4a583e, 3-49 #e1e4c4,#4a583e, 50-52 #e1e4c4,#343b2e, 53-99 #d5d8b8,#343b2e, @@ -390,7 +390,7 @@ |30: 0-0 d,#888e5e, 1-49 d,#100e0b, 50-50 d,#888e5e, 51-99 d,#100e0b, == snap clay grid=100x31 cursor=4,6 == style clay grid=100x31 -|0: 0-50 #d7d6b6,#343f36, 51-59 #fbf1c7,#505c38, 60-60 #fbf1c7,#343f36, 61-99 #d7d6b6,#343f36, +|0: 0-75 #d7d6b6,#343f36, 76-84 #fbf1c7,#505c38, 85-99 #fbf1c7,#343f36, |1: 0-1 d,#875e65, 2-2 d,#4d5c48, 3-49 #e3e2c2,#4d5c48, 50-51 #e3e2c2,#875e65, 52-52 #e3e2c2,#343f36, 53-99 #d7d6b6,#343f36, |2: 0-1 d,#8ac874, 2-2 d,#4d5c48, 3-29 #e3e2c2,#4d5c48, 30-38 #b5ecec,#4d5c48, 39-49 #e3e2c2,#4d5c48, 50-51 #e3e2c2,#687c4d, 52-52 #e3e2c2,#343f36, 53-79 #d7d6b6,#343f36, 80-88 #aae0e0,#343f36, 89-99 #d7d6b6,#343f36, |3: 0-2 d,#4d5c48, 3-49 #e3e2c2,#4d5c48, 50-52 #e3e2c2,#343f36, 53-99 #d7d6b6,#343f36, @@ -423,7 +423,7 @@ |30: 0-0 d,#8c9467, 1-49 d,#10100e, 50-50 d,#8c9467, 51-99 d,#10100e, == snap forge-black grid=100x31 cursor=4,6 == style forge-black grid=100x31 -|0: 0-50 #c5c9d2,#22252b, 51-59 #e2eef4,#1c5172, 60-60 #e2eef4,#22252b, 61-99 #c5c9d2,#22252b, +|0: 0-75 #c5c9d2,#22252b, 76-84 #e2eef4,#1c5172, 85-99 #e2eef4,#22252b, |1: 0-1 d,#6a7b67, 2-2 d,#374253, 3-49 #d1d5de,#374253, 50-51 #d1d5de,#6a7b67, 52-52 #d1d5de,#22252b, 53-99 #c5c9d2,#22252b, |2: 0-1 d,#9cc3f7, 2-2 d,#374253, 3-29 #d1d5de,#374253, 30-38 #f8cba7,#374253, 39-49 #d1d5de,#374253, 50-51 #d1d5de,#55647b, 52-52 #d1d5de,#22252b, 53-79 #c5c9d2,#22252b, 80-88 #ecbf9b,#22252b, 89-99 #c5c9d2,#22252b, |3: 0-2 d,#374253, 3-49 #d1d5de,#374253, 50-52 #d1d5de,#22252b, 53-99 #c5c9d2,#22252b, @@ -456,7 +456,7 @@ |30: 0-0 d,#708095, 1-49 d,#000000, 50-50 d,#708095, 51-99 d,#000000, == snap forge-soft grid=100x31 cursor=4,6 == style forge-soft grid=100x31 -|0: 0-50 #c5c9d2,#2a2d34, 51-59 #e2eef4,#1c5172, 60-60 #e2eef4,#2a2d34, 61-99 #c5c9d2,#2a2d34, +|0: 0-75 #c5c9d2,#2a2d34, 76-84 #e2eef4,#1c5172, 85-99 #e2eef4,#2a2d34, |1: 0-1 d,#6d7f6c, 2-2 d,#404a58, 3-49 #d1d5de,#404a58, 50-51 #d1d5de,#6d7f6c, 52-52 #d1d5de,#2a2d34, 53-99 #c5c9d2,#2a2d34, |2: 0-1 d,#9cc3f7, 2-2 d,#404a58, 3-29 #d1d5de,#404a58, 30-38 #f8cba7,#404a58, 39-49 #d1d5de,#404a58, 50-51 #d1d5de,#55647b, 52-52 #d1d5de,#2a2d34, 53-79 #c5c9d2,#2a2d34, 80-88 #ecbf9b,#2a2d34, 89-99 #c5c9d2,#2a2d34, |3: 0-2 d,#404a58, 3-49 #d1d5de,#404a58, 50-52 #d1d5de,#2a2d34, 53-99 #c5c9d2,#2a2d34, @@ -489,7 +489,7 @@ |30: 0-0 d,#708095, 1-49 d,#35383e, 50-50 d,#708095, 51-99 d,#35383e, == snap orchard-black grid=100x31 cursor=4,6 == style orchard-black grid=100x31 -|0: 0-50 #b2c3b8,#1d2824, 51-59 #f5f7ee,#3c614a, 60-60 #f5f7ee,#1d2824, 61-99 #b2c3b8,#1d2824, +|0: 0-75 #b2c3b8,#1d2824, 76-84 #f5f7ee,#3c614a, 85-99 #f5f7ee,#1d2824, |1: 0-1 d,#887455, 2-2 d,#314738, 3-49 #becfc4,#314738, 50-51 #becfc4,#887455, 52-52 #becfc4,#1d2824, 53-99 #b2c3b8,#1d2824, |2: 0-1 d,#add38a, 2-2 d,#314738, 3-29 #becfc4,#314738, 30-38 #dfbce5,#314738, 39-49 #becfc4,#314738, 50-51 #becfc4,#496656, 52-52 #becfc4,#1d2824, 53-79 #b2c3b8,#1d2824, 80-88 #d3b0d9,#1d2824, 89-99 #b2c3b8,#1d2824, |3: 0-2 d,#314738, 3-49 #becfc4,#314738, 50-52 #becfc4,#1d2824, 53-99 #b2c3b8,#1d2824, @@ -522,7 +522,7 @@ |30: 0-0 d,#608269, 1-49 d,#000000, 50-50 d,#608269, 51-99 d,#000000, == snap acme grid=100x31 cursor=4,6 == style acme grid=100x31 -|0: 0-50 #000000,#eaffff, 51-59 #000000,#9eeeee, 60-99 #000000,#eaffff, +|0: 0-75 #000000,#eaffff, 76-84 #000000,#9eeeee, 85-99 #000000,#eaffff, |1: 0-1 d,#8888cc, 2-2 d,#eaffff, 3-49 #000000,#eaffff, 50-51 #000000,#8888cc, 52-99 #000000,#eaffff, |2: 0-1 d,#8888cc, 2-2 d,#eaffff, 3-29 #000000,#eaffff, 30-38 #000099,#eaffff, 39-49 #000000,#eaffff, 50-51 #000000,#b9c3e5, 52-79 #000000,#eaffff, 80-88 #000099,#eaffff, 89-99 #000000,#eaffff, |3: 0-2 d,#eaffff, 3-99 #000000,#eaffff, @@ -555,7 +555,7 @@ |30: 0-99 d,#ffffea, == snap lapis grid=100x31 cursor=4,6 == style lapis grid=100x31 -|0: 0-50 #9aa6d9,#0f1a4a, 51-59 #0f1a4a,#e8c46a, 60-60 #0f1a4a,#0f1a4a, 61-99 #9aa6d9,#0f1a4a, +|0: 0-75 #9aa6d9,#0f1a4a, 76-84 #0f1a4a,#e8c46a, 85-99 #0f1a4a,#0f1a4a, |1: 0-1 d,#8a3a3a, 2-2 d,#25397d, 3-49 #eee6d2,#25397d, 50-51 #eee6d2,#8a3a3a, 52-52 #eee6d2,#0f1a4a, 53-99 #9aa6d9,#0f1a4a, |2: 0-1 d,#e8c46a, 2-2 d,#25397d, 3-29 #eee6d2,#25397d, 30-38 #f2d280,#25397d, 39-49 #eee6d2,#25397d, 50-51 #eee6d2,#6a78b1, 52-52 #eee6d2,#0f1a4a, 53-79 #9aa6d9,#0f1a4a, 80-88 #e8c46a,#0f1a4a, 89-99 #9aa6d9,#0f1a4a, |3: 0-2 d,#25397d, 3-49 #eee6d2,#25397d, 50-52 #eee6d2,#0f1a4a, 53-99 #9aa6d9,#0f1a4a, @@ -588,7 +588,7 @@ |30: 0-0 d,#e8c46a, 1-49 d,#0a1030, 50-50 d,#e8c46a, 51-99 d,#0a1030, == snap dark-plus grid=100x31 cursor=4,6 == style dark-plus grid=100x31 -|0: 0-50 #a7a7a7,#3c3c3c, 51-59 #d4d4d4,#264f78, 60-60 #d4d4d4,#3c3c3c, 61-99 #a7a7a7,#3c3c3c, +|0: 0-75 #a7a7a7,#3c3c3c, 76-84 #d4d4d4,#264f78, 85-99 #d4d4d4,#3c3c3c, |1: 0-1 d,#458276, 2-2 d,#1e1e1e, 3-49 #ffffff,#1e1e1e, 50-51 #ffffff,#458276, 52-52 #ffffff,#3c3c3c, 53-99 #a7a7a7,#3c3c3c, |2: 0-1 d,#007fd4, 2-2 d,#1e1e1e, 3-29 #ffffff,#1e1e1e, 30-38 #cbe5fc,#1e1e1e, 39-49 #ffffff,#1e1e1e, 50-51 #ffffff,#1c608e, 52-52 #ffffff,#3c3c3c, 53-79 #a7a7a7,#3c3c3c, 80-88 #68aee9,#3c3c3c, 89-99 #a7a7a7,#3c3c3c, |3: 0-2 d,#1e1e1e, 3-49 #ffffff,#1e1e1e, 50-52 #ffffff,#3c3c3c, 53-99 #a7a7a7,#3c3c3c, @@ -621,7 +621,7 @@ |30: 0-0 d,#424242, 1-49 d,#1e1e1e, 50-50 d,#424242, 51-99 d,#1e1e1e, == snap solarized-dark grid=100x31 cursor=4,6 == style solarized-dark grid=100x31 -|0: 0-50 #01090b,#657b83, 51-59 #002b36,#586e75, 60-60 #002b36,#657b83, 61-99 #01090b,#657b83, +|0: 0-75 #01090b,#657b83, 76-84 #002b36,#586e75, 85-99 #002b36,#657b83, |1: 0-1 d,#758a41, 2-2 d,#93a1a1, 3-49 #073642,#93a1a1, 50-51 #073642,#758a41, 52-52 #073642,#657b83, 53-99 #01090b,#657b83, |2: 0-1 d,#2483c5, 2-2 d,#93a1a1, 3-29 #073642,#93a1a1, 30-38 #2d3502,#93a1a1, 39-49 #073642,#93a1a1, 50-51 #073642,#185986, 52-52 #073642,#657b83, 53-79 #01090b,#657b83, 80-88 #121600,#657b83, 89-99 #01090b,#657b83, |3: 0-2 d,#93a1a1, 3-49 #073642,#93a1a1, 50-52 #073642,#657b83, 53-99 #01090b,#657b83, diff --git a/test/snapshots/theme.snap b/test/snapshots/theme.snap index b770d7f3..4cb360d3 100644 --- a/test/snapshots/theme.snap +++ b/test/snapshots/theme.snap @@ -5,6 +5,14 @@ file t.txt x start 31 100 -n 3 wait 8000 t.txt stable 700 20000 +# NextColor is no default word of the workspace tag: typed onto its end +press left 99 1 +release left 99 1 +key space +text NextColor +key esc +settle 100 +stable 700 10000 snap orchard snapstyle orchard press middle @NextColor 1 diff --git a/test/snapshots/themesel.golden b/test/snapshots/themesel.golden index d9c4f4ba..a82d88f5 100644 --- a/test/snapshots/themesel.golden +++ b/test/snapshots/themesel.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/themesel/cwd/t.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/snapshots/tinywin.golden b/test/snapshots/tinywin.golden index c847a2f1..f4d20a9a 100644 --- a/test/snapshots/tinywin.golden +++ b/test/snapshots/tinywin.golden @@ -1,5 +1,5 @@ == snap stacked grid=100x31 cursor=14,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/tinywin/cwd Tty+bash Save Mode Filter Collapse Del | $ :^[n^[n^[n @@ -23,12 +23,12 @@ | /tmp/pardes-snap/tinywin/cwd/+New Save Tty Collapse Del | 1 == snap shrunk grid=60x4 cursor=59,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Co | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/tinywin/cwd Tty+bash Save Mode Filter Co | /tmp/pardes-snap/tinywin/cwd/+New Save Tty Collapse Del == snap columns grid=100x31 cursor=23,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/tinywin/cwd Tty+bash Save Mode Filter Collapse Del | $ :^[n^[n^[n cn cn cn diff --git a/test/snapshots/topbarexec.golden b/test/snapshots/topbarexec.golden index 500f9f2a..3ede27e8 100644 --- a/test/snapshots/topbarexec.golden +++ b/test/snapshots/topbarexec.golden @@ -1,5 +1,5 @@ == snap selected grid=90x21 cursor=14,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/topbarexec/cwd Tty+bash S /tmp/pardes-snap/topbarexec/cwd Tty+bash S | ave Mode Filter Collapse Del ave Mode Filter Collapse Del diff --git a/test/snapshots/tty.golden b/test/snapshots/tty.golden index b876ace6..981a5c7f 100644 --- a/test/snapshots/tty.golden +++ b/test/snapshots/tty.golden @@ -1,5 +1,5 @@ == snap tty-on grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/tty/cwd Tty+bash Save Mode Fil /tmp/pardes-snap/tty/cwd Tty+bash Save Mode Fil | ter Collapse Del ter Collapse Del diff --git a/test/snapshots/ttyclick.golden b/test/snapshots/ttyclick.golden index a69d951f..5076e882 100644 --- a/test/snapshots/ttyclick.golden +++ b/test/snapshots/ttyclick.golden @@ -1,5 +1,5 @@ == snap tty-bodyclick grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttyclick/cwd Tty+bash Save Mod /tmp/pardes-snap/ttyclick/cwd Tty+bash Save Mod | e Filter Collapse Del e Filter Collapse Del diff --git a/test/snapshots/ttyedit.golden b/test/snapshots/ttyedit.golden index 4411962e..ab1b1b5b 100644 --- a/test/snapshots/ttyedit.golden +++ b/test/snapshots/ttyedit.golden @@ -1,5 +1,5 @@ == snap before grid=100x31 cursor=7,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttyedit/cwd Tty+bash Save Mode /tmp/pardes-snap/ttyedit/cwd Tty+bash Save Mode | Filter Collapse Del Filter Collapse Del diff --git a/test/snapshots/ttyfollow.golden b/test/snapshots/ttyfollow.golden index 1527ce86..3fb41e89 100644 --- a/test/snapshots/ttyfollow.golden +++ b/test/snapshots/ttyfollow.golden @@ -1,5 +1,5 @@ == snap held-pre grid=100x31 cursor=4,16 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttyfollow/cwd Tty+bash Save Mo /tmp/pardes-snap/ttyfollow/cwd Tty+bash Save Mo | de Filter Collapse Del de Filter Collapse Del diff --git a/test/snapshots/ttyhelp.golden b/test/snapshots/ttyhelp.golden index c252ff28..7d21bc00 100644 --- a/test/snapshots/ttyhelp.golden +++ b/test/snapshots/ttyhelp.golden @@ -1,5 +1,5 @@ == snap boot grid=100x31 cursor=4,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttyhelp/cwd Tty+bash Save Mode Filter Collapse Del | $ diff --git a/test/snapshots/ttylook.golden b/test/snapshots/ttylook.golden index a8ed1b95..b839a174 100644 --- a/test/snapshots/ttylook.golden +++ b/test/snapshots/ttylook.golden @@ -1,5 +1,5 @@ == snap tok1 grid=120x31 cursor=2,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttylook/cwd Tty+bash Save Mode Filter Co /tmp/pardes-snap/ttylook/cwd Tty+bash Save Mode Filter Co | llapse Del llapse Del diff --git a/test/snapshots/ttyonly.golden b/test/snapshots/ttyonly.golden index 24f54b29..208aa485 100644 --- a/test/snapshots/ttyonly.golden +++ b/test/snapshots/ttyonly.golden @@ -1,5 +1,5 @@ == snap ttyonly grid=100x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttyonly/cwd Tty+bash Save Mode Filter Collapse Del | $ echo TTY''ONLY diff --git a/test/snapshots/ttypaste.golden b/test/snapshots/ttypaste.golden index 40e0ae4c..ec98834e 100644 --- a/test/snapshots/ttypaste.golden +++ b/test/snapshots/ttypaste.golden @@ -1,5 +1,5 @@ == snap bracketed-paste-reached-the-shell grid=100x31 cursor=18,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/ttypaste/cwd Tty+bash Save Mod /tmp/pardes-snap/ttypaste/cwd Tty+bash Save Mod | e Filter Collapse Del e Filter Collapse Del diff --git a/test/snapshots/ttyprompt.golden b/test/snapshots/ttyprompt.golden index 0033c78f..eb99f417 100644 --- a/test/snapshots/ttyprompt.golden +++ b/test/snapshots/ttyprompt.golden @@ -1,5 +1,5 @@ == snap greeted grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttyprompt/cwd Tty+bash Save Mo /tmp/pardes-snap/ttyprompt/cwd Tty+bash Save Mo | de Filter Collapse Del de Filter Collapse Del diff --git a/test/snapshots/ttytaken.golden b/test/snapshots/ttytaken.golden index d0f2eee9..73a75088 100644 --- a/test/snapshots/ttytaken.golden +++ b/test/snapshots/ttytaken.golden @@ -1,5 +1,5 @@ == snap opened grid=210x31 cursor=4,5 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/ttytaken/cwd Tty+bash Save Mode Filter Collapse Del | ls diff --git a/test/snapshots/tutor.golden b/test/snapshots/tutor.golden index 9793ca34..1be72b87 100644 --- a/test/snapshots/tutor.golden +++ b/test/snapshots/tutor.golden @@ -1,5 +1,5 @@ == snap tutor grid=150x31 cursor=7,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/tutor/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/tutor/cwd Tty+bash Save Mode Filter Collapse Del | ls Tutor ls diff --git a/test/snapshots/wheeldrift.golden b/test/snapshots/wheeldrift.golden index 256c2999..b5c4d231 100644 --- a/test/snapshots/wheeldrift.golden +++ b/test/snapshots/wheeldrift.golden @@ -1,5 +1,5 @@ == snap home grid=70x17 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exi +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/wheeldrift/cwd/drift.txt Save Tty Collapse Del | 1 line 1_0123456789_abcdefghij_ZEND Wrap diff --git a/test/snapshots/winch.golden b/test/snapshots/winch.golden index a1e8afc4..c6972f79 100644 --- a/test/snapshots/winch.golden +++ b/test/snapshots/winch.golden @@ -1,5 +1,5 @@ == snap storm grid=100x31 cursor=4,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/winch/cwd Tty+bash Save Mode F /tmp/pardes-snap/winch/cwd Tty+bash Save Mode F | ilter Collapse Del ilter Collapse Del @@ -20,7 +20,7 @@ | ilter Collapse Del | ls == snap resized grid=106x35 cursor=4,8 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol |$ /tmp/pardes-snap/winch/cwd Tty+bash Save Mode Filt /tmp/pardes-snap/winch/cwd Tty+bash Save Mode Filt | er Collapse Del er Collapse Del diff --git a/test/snapshots/windownav.golden b/test/snapshots/windownav.golden index 13fc7ae7..91e80e6d 100644 --- a/test/snapshots/windownav.golden +++ b/test/snapshots/windownav.golden @@ -1,5 +1,5 @@ == snap start grid=100x31 cursor=7,4 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/windownav/cwd/w.txt Save Tty C /tmp/pardes-snap/windownav/cwd Tty+bash Save Mo | ollapse Del de Filter Collapse Del diff --git a/test/snapshots/windowops.golden b/test/snapshots/windowops.golden index d729f179..6a48785e 100644 --- a/test/snapshots/windowops.golden +++ b/test/snapshots/windowops.golden @@ -1,5 +1,5 @@ == snap hover-v grid=100x31 cursor=4,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol ╎ New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/windowops/cwd Tty+bash Save M╎ /tmp/pardes-snap/windowops/cwd Tty+bash Save Mo | de Filter Collapse Del ╎ de Filter Collapse Del @@ -153,7 +153,7 @@ |10: ╰────────────────────────────────────╯ |20: ls == style debug-on grid=100x31 -|0: 0-60 #b2c3b8,#1d2824, 61-65 #f5f7ee,#3c614a, 66-66 #f5f7ee,#1d2824, 67-99 #b2c3b8,#1d2824, +|0: 0-64 #b2c3b8,#1d2824, 65-69 #f5f7ee,#3c614a, 70-70 #f5f7ee,#1d2824, 71-99 #b2c3b8,#1d2824, |1: 0-1 d,#887455, 2-2 d,#1d2824, 3-39 #b2c3b8,#1d2824, 40-41 #b2c3b8,#887455, 42-42 #b2c3b8,#314738, 43-61 #becfc4,#314738, 62-99 d,d, |2: 0-1 d,#496656, 2-2 d,#1d2824, 3-33 #b2c3b8,#1d2824, 34-39 #d3b0d9,#1d2824, 40-41 #d3b0d9,#add38a, 42-42 #d3b0d9,#314738, 43-61 #becfc4,#314738, 62-62 d,d, 63-79 #b2c3b8,d, 80-98 #b2c3b8,#152019, 99-99 d,d, |3: 0-2 d,#1d2824, 3-5 #d3b0d9,#1d2824, 6-39 #b2c3b8,#1d2824, 40-42 #b2c3b8,#314738, 43-61 #becfc4,#314738, 62-62 d,d, 63-76 #b2c3b8,d, 77-98 #b2c3b8,#152019, 99-99 d,d, diff --git a/test/snapshots/wrap.golden b/test/snapshots/wrap.golden index cc834fc5..b620b2a9 100644 --- a/test/snapshots/wrap.golden +++ b/test/snapshots/wrap.golden @@ -35,7 +35,7 @@ |10: 3 third line |11: 4 == snap on-wide grid=128x15 cursor=7,3 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | /tmp/pardes-snap/wrap/cwd/long.txt Save Tty Collapse Del | 1 0---------1---------2---------3---------4---------5---------6---------7---------8---------9---------A---------B---------↩ diff --git a/test/snapshots/yankpaste.golden b/test/snapshots/yankpaste.golden index 22cc787f..e81587f8 100644 --- a/test/snapshots/yankpaste.golden +++ b/test/snapshots/yankpaste.golden @@ -1,5 +1,5 @@ == snap linewise-below grid=100x31 cursor=13,6 -|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit +|Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit | New Tty Find Grep Joincol Delcol | * /tmp/pardes-snap/yankpaste/cwd/f.txt Save Tty Collapse Del | 1 line 1 diff --git a/test/window_opacity.py b/test/window_opacity.py index a576b1bd..0253e15c 100644 --- a/test/window_opacity.py +++ b/test/window_opacity.py @@ -66,15 +66,15 @@ def run(args): help_text = output('Help') require('WindowOpacity' in help_text and 'FgOpacity' not in help_text, 'help did not replace FgOpacity with WindowOpacity') - settings = output('Config') + settings = output('DumpConfig') require('WindowOpacity: 100%\n' in settings and 'FgOpacity' not in settings, - 'initial Config opacity not applied: ' + settings) + 'initial DumpConfig opacity not applied: ' + settings) require('Wayland opacity: background-only transparent surface' in log.read_text(errors='replace'), 'background-only surface path not selected') report['renderer_path'] = 'background-only transparent surface' def wait_applied(percent): - require(wait_for(lambda: f'WindowOpacity: {percent}%\n' in output('Config')), + require(wait_for(lambda: f'WindowOpacity: {percent}%\n' in output('DumpConfig')), 'opacity did not apply: ' + str(percent)) geometry = None @@ -138,10 +138,10 @@ def run(args): wait_applied(70) require(samples() == baseline, 'opacity altered editor or terminal core RGB/text') capture(70) - settings = output('Config') + settings = output('DumpConfig') require('WindowOpacity: 70%\n' in settings, '70% opacity not applied: ' + settings) command(client, source, 'WindowOpacity 101') - require('WindowOpacity: 70%\n' in output('Config'), 'invalid opacity changed state') + require('WindowOpacity: 70%\n' in output('DumpConfig'), 'invalid opacity changed state') command(client, source, 'WindowOpacity 0') wait_applied(0) require(samples() == baseline, 'zero opacity altered editor or terminal core RGB/text') @@ -207,7 +207,7 @@ def run(args): log.read_text(errors='replace')) require(all(int(value) == 0xffffffff for value in multipliers), 'whole-window alpha modifier would fade foreground text') - require('WindowOpacity: 100%\n' in output('Config'), '100% opacity not restored') + require('WindowOpacity: 100%\n' in output('DumpConfig'), '100% opacity not restored') require(source_path.read_bytes() == original == client.read(f'/pane/{source}/body'), 'source contents changed') client.write(f'/pane/{terminal}/pty/data', b'exit\r') -- cgit v1.3 From f058514afb2f0e62a46158dc8c361c99ecd5149c Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 30 Sep 2026 23:04:26 -0300 Subject: The tutor follows the guide's order, points at its sections, and no longer teaches $ as line end or the terminal tag's old words; a test checks the words, paths, chords and tags it names Co-Authored-By: Claude Opus 5.5 --- src/config.zig | 124 +++++++- src/tutor.txt | 641 ++++++++++++++++++++--------------------- test/snapshots/builtins.golden | 82 +++--- test/snapshots/leader.golden | 44 +-- test/snapshots/tutor.golden | 4 +- 5 files changed, 498 insertions(+), 397 deletions(-) (limited to 'src/tutor.txt') diff --git a/src/config.zig b/src/config.zig index d3da47c1..53def6a1 100644 --- a/src/config.zig +++ b/src/config.zig @@ -661,7 +661,7 @@ pub const Runtime = struct { inactive_dim: u8 = 0, /// The grip's button and the scrollbar under it, one width, as a percent /// of the theme's `rail_px` (acme's 12px Scrollwid at a 17px tagline): - /// a pixel shell's (docs/themes.md). + /// a pixel shell's (docs/typ/themes.typ). grip_width: u16 = 150, /// How the fx track's animations move (animation.Motion): off for /// reduced motion. @@ -2148,3 +2148,125 @@ test "docs/typ names only words, keys and default tags that exist" { }; } } + +/// The tutor's own spellings, which the docs/typ test cannot read: a +/// builtin in backticks (`Save`, `Kill make`), a tag on a line of its own +/// after "| ", a leader path after SPC (`SPC f s`), a chord as Ctrl-, Alt- +/// or Shift- and one key. +const doc_tutor = struct { + /// Read before the bindings in this file: a raw terminal's paste + /// (Pardes.handleKey). + const elsewhere = [_]Chord{ .{ .cp = 'V', .ctrl = true }, .{ .cp = 'V', .ctrl = true, .shift = true } }; + + /// The first word in each pair of backticks that looks like a builtin: + /// a capital, then letters and digits with a lower-case one among them. + fn words(gpa: std.mem.Allocator, text: []const u8, out: *std.ArrayList([]const u8)) !void { + var it = std.mem.splitScalar(u8, text, '`'); + _ = it.next(); // before the first backtick + while (it.next()) |inside| { + _ = it.next() orelse break; // what follows the closing one + const first = inside[0 .. std.mem.indexOfAny(u8, inside, " +") orelse inside.len]; + if (first.len < 2 or !std.ascii.isUpper(first[0])) continue; + var lower = false; + for (first) |c| { + if (!std.ascii.isAlphanumeric(c)) break; + lower = lower or std.ascii.isLower(c); + } else if (lower) try out.append(gpa, first); + } + } + + /// The keys pressed after each SPC, up to the first that is no single + /// key: a path, or the start of one. + fn paths(gpa: std.mem.Allocator, text: []const u8, out: *std.ArrayList([]const u8)) !void { + var toks = std.mem.tokenizeAny(u8, text, " \n"); + while (toks.next()) |t| { + if (!std.mem.eql(u8, t, "SPC")) continue; + var keys: std.ArrayList(u8) = .empty; + while (toks.peek()) |k| { + // `o,` and `j)` end a path written in a sentence + const ends = k.len == 2 and std.mem.indexOfScalar(u8, ",.;:)", k[1]) != null; + if ((k.len != 1 and !ends) or k[0] == '/') break; + try keys.append(gpa, k[0]); + _ = toks.next(); + if (ends) break; + } + if (keys.items.len > 0) try out.append(gpa, keys.items); + } + } + + fn path(keys: []const u8) bool { + for (std.enums.values(Builtin)) |b| if (leader_path.get(b)) |p| + if (std.mem.startsWith(u8, p, keys)) return true; + return false; + } + + /// Every Ctrl-, Alt- or Shift- chord: its modifiers, then one key. + fn chords(gpa: std.mem.Allocator, text: []const u8, out: *std.ArrayList(Chord)) !void { + const named = [_]struct { []const u8, u21 }{ .{ "Esc", Key.escape }, .{ "Enter", Key.enter }, .{ "Tab", Key.tab } }; + var i: usize = 0; + while (i < text.len) : (i += 1) { + if (i > 0 and std.ascii.isAlphanumeric(text[i - 1])) continue; + var c: Chord = .{ .cp = 0 }; + var at = i; + while (true) { + const rest = text[at..]; + if (std.mem.startsWith(u8, rest, "Ctrl-")) c.ctrl = true else if (std.mem.startsWith(u8, rest, "Alt-")) c.alt = true else if (std.mem.startsWith(u8, rest, "Shift-")) c.shift = true else break; + at += std.mem.indexOfScalar(u8, rest, '-').? + 1; + } + if (at == i or at >= text.len) continue; + c.cp = text[at]; + for (named) |n| if (std.mem.startsWith(u8, text[at..], n[0])) { + c.cp = n[1]; + }; + try out.append(gpa, c); + i = at; + } + } +}; + +test "the tutor names only words, keys, paths and default tags that exist" { + var arena: std.heap.ArenaAllocator = .init(std.testing.allocator); + defer arena.deinit(); + const gpa = arena.allocator(); + const tutor = @embedFile("tutor.txt"); + + var found: std.ArrayList([]const u8) = .empty; + try doc_tutor.words(gpa, tutor, &found); + try std.testing.expect(found.items.len >= 20); + for (found.items) |w| if (!doc_typ.word(w)) { + std.debug.print("tutor.txt: `{s}` is no builtin\n", .{w}); + return error.DocDrift; + }; + + var tags: usize = 0; + var lines = std.mem.splitScalar(u8, tutor, '\n'); + while (lines.next()) |line| if (std.mem.startsWith(u8, line, "| ")) { + tags += 1; + if (!doc_typ.tag(line[2..])) { + std.debug.print("tutor.txt: \"{s}\" is no default tag\n", .{line}); + return error.DocDrift; + } + }; + try std.testing.expect(tags >= 5); + + found.clearRetainingCapacity(); + try doc_tutor.paths(gpa, tutor, &found); + try std.testing.expect(found.items.len >= 10); + for (found.items) |p| if (!doc_tutor.path(p)) { + std.debug.print("tutor.txt: SPC {s} leads nowhere\n", .{p}); + return error.DocDrift; + }; + + var chords: std.ArrayList(Chord) = .empty; + try doc_tutor.chords(gpa, tutor, &chords); + try std.testing.expect(chords.items.len >= 10); + for (chords.items) |c| { + const elsewhere = for (doc_tutor.elsewhere) |e| { + if (doc_typ.same(e, c)) break true; + } else false; + if (!elsewhere and !doc_typ.bound(c)) { + std.debug.print("tutor.txt: a chord on {u} (ctrl {} alt {} shift {}) is bound nowhere\n", .{ c.cp, c.ctrl, c.alt, c.shift }); + return error.DocDrift; + } + } +} diff --git a/src/tutor.txt b/src/tutor.txt index f8aa7aef..37938574 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -4,264 +4,292 @@ The model is acme's: EVERYTHING is text, editable and executable the same way. Modal editing (helix-style) lives on top of that. - Press j until you reach the introduction. + Press j until you reach part 1. + + The lessons follow the guide (docs/typ/guide.typ, the "Guide" + chapter of the pardes book), and each ends by naming its section. + + Words written in backticks, like `Save`, are builtins: type one in + any tag and middle-click it. Lines starting with "| " are tags as + pardes draws them, words only. + + PRACTICE BLOCKS (part 9): the "# keys:" line lists keystrokes + (space-separated; esc/enter/bs are special, the rest type each char). + The lines under "# before" are what you practise on; "# after" is + what you should end up with. Nothing runs them. What pins the real + behaviour is `zig build hxdiff`, which replays test/hxcases against + goldens recorded from a real helix, and `zig build hxparity`, which + runs each case in a file pane and in a shell and demands they agree. ================================================================= -= INTRODUCTION = += PART 1 — MODES = ================================================================= - A pane is just text on screen. There is no separate "buffer" type — - what you see is what you edit. Some panes happen to be live terminals; - most are text you move a cursor over. Modal editing is layered on top. + A pane is text on screen, a tag over a body. Some panes are live + terminals; most are text you move a cursor over. Each pane has its + own mode and keeps it while you are elsewhere. The BOX at the left + of a pane's tag shows it: - Three modes (the BOX at the pane's top-left corner shows which): - NORMAL block cursor, keys move and edit. The box is BLANK. + NORMAL keys move and select. The box is BLANK. ^ INSERT keys type text at the cursor. - $ TTY keys go straight to the shell. (terminals only) + $ RAW keys go straight to the program (terminals only). - A bare `pardes` opens one shell already in TTY. Give it a file or a - directory and you start in NORMAL. + Where each pane starts: a file or a PDF in NORMAL; a terminal from + `Tty` in RAW, one from Alt-n in NORMAL; a command pane in RAW while + its command runs. A bare `pardes` starts a shell in RAW with an + empty text pane under it; `pardes FILE` starts on the file. - SIX PARTS, ordered by what is most different from editors you know: - 1 — THE MOUSE. Acme's three buttons; nothing like vim. - 2 — PANES. Moving between them. Esc, Shift-Esc, Ctrl-w. - 3 — THE TTY. Raw input, prompt-aware Esc, and the mode tag. - 4 — DETACHED. The core outliving the terminal showing it. - 5 — THE KEYS. Helix-style modal, and where it differs. - 6 — THE REST. PDFs, images, the language backend, scripting. + Esc and Shift-Esc, by mode: - PRACTICE BLOCKS (part 5): the "# keys:" line lists keystrokes - (space-separated; esc/enter/bs are special, the rest type each char). - The lines under "# before" are what you practice on; "# after" is what - you should end up with. They are here to be TYPED and nothing runs - them. What pins the real behaviour is `zig build hxdiff`, which replays - test/hxcases against goldens recorded from a real helix, and - `zig build hxparity`, which runs each case twice — once in a file pane, - once in a shell — and demands the two agree. + NORMAL Esc back to the previous pane (`Last`, SPC j j) + Shift-Esc the same; in a terminal it switches to RAW + INSERT Esc back to NORMAL + Shift-Esc the same; in a terminal it switches to RAW + RAW Esc goes to the program, except at an idle, + EMPTY shell prompt: back to the previous pane + Shift-Esc always back to the previous pane + a PDF Esc clears the selection and search highlights + Shift-Esc back to the previous pane + + Leaving a RAW terminal leaves it RAW. Ctrl-b switches a terminal + between RAW and NORMAL; `Mode` in its tag steps RAW, NORMAL, + INSERT. "The previous pane" is the last other pane on the jump + list, else the next pane down its column. - Hold j to reach part 1. + Shift-Esc needs a terminal that reports modifiers on Escape (the + kitty keyboard protocol); elsewhere it arrives as a plain Escape. + + -> Guide: Modes ================================================================= -= PART 1 — THE MOUSE (acme chording) = += PART 2 — THE MOUSE = ================================================================= Three buttons, three verbs: - LEFT select, and focus the pane. Also pins the cursor. - MIDDLE EXECUTE the word or selection (a builtin, or a shell line). - RIGHT LOOK: open the file, directory or URL under the pointer. - - CHORDS — hold one button and click another without letting go: + B1 LEFT select; a plain click puts the cursor there and + gives the pane the keyboard. In a tag: type there. + B2 MIDDLE EXECUTE the word or selection: a builtin, or a shell + line. + B3 RIGHT LOOK: open the file, address, directory or URL under + the pointer, or else find the word's next place. + + A B2 or B3 click with no drag takes the word around it: letters, + digits and . - + / : @ _ ~, a trailing : dropped. So a right click + anywhere on src/bar.c:12:5: in a compiler error opens that file at + line 12, column 5. Drag to say exactly what you mean. + + CHORDS: hold one button and click another without letting go: 1-2 (hold left, click middle) CUT the left selection 1-3 (hold left, click right) PASTE over it - both, in one hold SNARF (copy) + 1-2 then 1-3, in one hold COPY 2-1 (hold middle, click left) execute the middle word WITH the left selection as its argument - Every tag with text leads with Save; a terminal also has Togglettymode - and Filter. Tty opens a terminal; New belongs to each column tag. - Images show "Tty Del Collapse"; PDFs also have PdfSections and PdfTint. - Every pane has Collapse: hide its body, then execute again to expand it. - The top bar is: - - Newcol Joincol Find Grep Help Changelog Tutor Dump Themes - Config Debug Exit - - Reach it from the keyboard with `k` off the topmost tagline; `j` comes - back down. - - KEYBOARD EQUIVALENTS, because the buttons are not the only way in: + KEYBOARD EQUIVALENTS, in NORMAL mode: Enter = LOOK (right button) Tab = EXECUTE (middle button) - Both act on the selection when there is one. Neither is a way into TTY. + Both act on the selection when there is one, else the word under + the cursor. + + -> Guide: The mouse ================================================================= -= PART 2 — PANES: MOVING BETWEEN THEM = += PART 3 — TAGS = ================================================================= - Panes live in columns. Everything here works in any mode, because - getting OUT of a pane must work from inside a pane that owns its keys. + Three kinds of tag, every word live. The workspace tag on top: - FOCUS A NEIGHBOUR - Ctrl-w h/j/k/l focus the pane left / down / up / right - SPC w h/j/k/l the same, in body normal mode only - Use Ctrl-w in a terminal: there SPC belongs to the shell. +| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit - GO BACK - Esc hop to the pane you were in BEFORE this one. Held down - it alternates between two. This is the `Last` builtin, - also SPC j j. - Ctrl-o walk the jump history BACK (the `Back` builtin) - Ctrl-i walk it FORWARD (`Forward`; SPC j l shows - the stack as a buffer) - Ctrl-i and Tab are the same byte on an old terminal. Where they are, - Tab keeps meaning execute and Ctrl-i does nothing — the right way - round, since Tab-executes is the older and more used of the two. - - WHEN Esc MEANS SOMETHING ELSE - Three panes have their own claim on Escape, so there is a second - spelling that always leaves: - - Shift-Esc leave this pane, whatever Escape means inside it - - in INSERT Esc returns to normal. Press it again to hop. - in a PDF Esc cancels the selection and the search highlights - and stays in the document. Shift-Esc hops out. - in raw TTY Esc goes to the program — vim gets its Escape. - Shift-Esc hops out. But see part 3: at a shell - PROMPT, plain Esc hops too. - - Shift-Esc needs a terminal that reports modifiers on Escape (the kitty - keyboard protocol). Where the host does not, it arrives as a plain - Escape and means whatever Escape means in that pane. - - MAKE AND MOVE PANES - Alt-n new terminal below the active one - Alt-c move the active pane into a fresh column — any pane, not - just a terminal. A no-op if it is alone in its column, - or if the sixth column already exists. - New in a column tag: a new scratch pane - Newcol in the top bar: a pane in a new column - Tty new terminal in the calling pane's directory - Togglettymode in a terminal tag: switch editor/raw mode (Ctrl-B) - Joincol delete this column, move its panes to the one right - Del in a pane's own tag: close it. From the keyboard, between - two panes, it asks which one gets the space: k or j - DelAbove close it, giving the space to the pane above (Del k) - DelBelow close it, giving the space to the pane below (Del j) - - RESIZE, AS ACME MOVES A WINDOW - the grip (the box left of a pane's tag) drag it: drop it in another - column to move the pane there, or up or down its own - column to move its top, the pane above taking or giving - the rows -- down to its tag alone - the rule in the GUI, the line between two panes drags their seam - a column's right edge drags the column's width - A pane's last row is text like any other, never a handle. - - A new file opens in a new COLUMN only if both panes would still get - 100 columns of width. Otherwise it stacks in the one you are in. + Each column's tag: + +| New Tty Find Grep Joincol Delcol + + Each pane's tag, after its path: a file's, a terminal's, a PDF's, + an image's: + +| Save Tty Collapse Del +| Tty Save Mode Filter Collapse Del +| Tty PdfSections PdfTint Collapse Del +| Tty Collapse Del + + Commands from the workspace or a column tag run in the session's + directory; commands from a pane's tag run in the pane's directory. + + A tag is text, with undo: type a word into it and middle-click it, + or delete the defaults. `:` in NORMAL mode moves the keyboard to the + pane's tag and back. Clicking the path at the start of a pane's tag + drafts a new name: Enter confirms, `Save` writes there. `Collapse` + folds a pane to its tag; again unfolds it. The grip, the box left of + the tag, marks unsaved text; drag it up or down to resize the pane, + or onto another column to move it there. + + -> Guide: Tags ================================================================= -= PART 3 — THE TTY (a terminal is just a pane) = += PART 4 — PANES AND COLUMNS = ================================================================= - There is no "open a terminal in a split" separate from "edit a file in - a split". A TERMINAL IS A PANE. The same modal keys that edit a file - navigate the terminal's screen. + FOCUS A NEIGHBOUR (not in INSERT or RAW mode) + Ctrl-w h/j/k/l the pane left / down / up / right; up from a + column's top pane reaches its tag + SPC w h/j/k/l the same + + GO BACK + Esc the previous pane (`Last`, also SPC j j) + Ctrl-o walk the jump history BACK (`Back`) + Ctrl-i walk it FORWARD (`Forward`) + SPC j l the jump list as a pane (`Jumplist`) + Ctrl-i and Tab are the same byte on an old terminal; there Tab + keeps meaning execute and Ctrl-i does nothing. + + MAKE, MOVE AND CLOSE + Alt-n a new terminal (in NORMAL mode) + Alt-c move the pane into a new column (not when it is + alone in its column, nor past 16 columns) + `New` a scratch pane, +New, in this pane's directory + `Newcol` an empty column right of this one + `Tty` a terminal in this pane's directory + `Del` close the pane; from the keyboard (SPC d), between + two panes, it asks which one gets the rows: k or j + `Delcol` close the column and its panes + `Joincol` fold this column into the one on its right + + THE ACTIVE COLUMN is where new panes go: the column you last typed + or left-clicked in, or the one that got the last new pane. A look + moves the keyboard but not the active column, so after a look jumps + to a file open in another column, the next new pane still lands in + the old one. Type or click to move it. + + Closing a column's last pane leaves the column empty; closing the + session's last pane quits pardes. + + -> Guide: The active column and the keyboard + - On a terminal pane: - NORMAL ( ) the PROMPTS are gone — a clean acme page — but the - command you typed at each one stays, pulled to the left - edge, because that is the part worth reading. Navigate - with the same h/j/k/l/w/b/e as a file. - INSERT (^) the same page; keys type an insertion overlay. - TTY ($) the REAL shell. Prompts back, keys straight to the pty. +================================================================= += PART 5 — LOOKING = +================================================================= - ENTERING TTY - Ctrl-b toggle raw TTY/editor mode on a terminal pane - Shift-Esc also enters raw TTY from editor mode - Togglettymode in the pane tag switches modes in either direction + Type an address anywhere, then right-click it or press Enter: - `pardes --tty-toggle=g` chooses Ctrl-g for toggling instead. - Entering TTY moves the shell's real cursor to the place you selected - on its prompt input line, using its OSC 133 prompt marks. + notes.txt:12 line 12 + notes.txt:12:5 line 12, byte column 5 + notes.txt:/re/ the next match; notes.txt:0/re/ the first + :40 this pane, line 40 + @p3:12 pane 3 (by serial), line 12 + src/ a directory: ls in an idle terminal there - RAW INPUT - Ctrl-b switches to editor mode. Other keys go to the child, - including Ctrl-o, Ctrl-w, Alt shortcuts, and - modified Escape. The two paste chords are the exception: Ctrl-V - types the yank register at the program and Ctrl-Shift-V types the - desktop clipboard. Plain Esc at a detected shell prompt hops - to the previous pane. While a program owns the terminal, Esc goes - to that program too. Use the Togglettymode tag to leave raw input - in place. Desktop paste events still feed the child. + A relative path is looked for in this pane's directory first, then + in the directory of each pane on the jump list, most recent first. - On Linux, Tty9p (SPC n 9 from editor mode) opens a terminal with - this session mounted through kernel v9fs. It asks sudo in that pane, - then starts your normal shell. $PARDES_MOUNT names its mounted tree. + n and N step through everything a look would open, across panes, + as a ring; Enter opens what you land on. - `Filter` in a terminal's tag toggles a pane-local, theme-keyed palette. + -> Guide: Looking ================================================================= -= PART 4 — DETACHED SESSIONS (the core outlives the terminal) = += PART 6 — COMMANDS AND TERMINALS = ================================================================= - A pardes session is a core — the text, the undo history, the layout, - the pane shells — and a frontend that draws it. Normally they are one - process. They do not have to be. + Middle-click a line that is no builtin (make, git log) and it runs. + In a terminal idle at an empty prompt, a line from its own text is + typed into its shell; anywhere else it runs in a COMMAND PANE, a + terminal of its own whose tag says running, then exit N: - STARTING ONE - pardes --detach a session named by this process's pid - pardes --detach=work ...named `work` - pardes --attach become a frontend of the one session there is - pardes --attach=work ...of the session called `work` - pardes-gui --attach=work an SDL window is a frontend too +| Kill Save Collapse Del + + The next command for the same directory reuses a finished command + pane; one still running is never reused. `Kill` stops what pardes + started (`Kill make`: those starting with make). `Exit` quits pardes. + + A TERMINAL IS A PANE. In NORMAL mode its prompts are hidden and the + same keys that edit a file move over its text; in RAW mode the real + shell has the keys. pardes --tty-toggle=g picks another letter + than b for the toggle. + + `Tty+bash` another terminal, on that shell + `Save` asks for a path, then writes the scrollback there + `Filter` maps the program's colours through the theme + Ctrl-V in RAW: types what you yanked (with nothing yanked, + the program gets the key); Ctrl-Shift-V types the + desktop clipboard + + A program that tracks the mouse (htop, vim with mouse=a) gets B1 + and the wheel; B2 and B3 stay pardes's. Hold Shift to swap them. - And from inside a running editor, as ordinary acme words — type one in - a tag and execute it, or press its chord: + -> Guide: Command panes, Terminals - Attach hand this window to the session there is (SPC s a) - Attach work ...to `work` - Detach leave the session, and leave it running (SPC s D) - WHAT MAKES IT DIFFERENT FROM tmux - The pane shells belong to the SESSION, not to the frontend. Attach, - detach, kill the terminal, attach from another one, and the build that - was running in pane 3 is still running and has been scrolling into the - core the whole time. Nothing is replayed to you; it never stopped. +================================================================= += PART 7 — UNSAVED PANES, DIFFS, AND pardes FILE = +================================================================= + + `Del` on a pane with unsaved text refuses once and lists it in + +Unsaved; the same `Del` again, with nothing edited since, discards + it. `Exit`, `Restore` and `Delcol` refuse once the same way. + + Run git diff as a command, or open a .patch: it shows as a coloured + diff. Right-click a diff --git, --- or +++ line to open the file, a + @@ line for the hunk's first new line, a hunk line's first column + for that line in the new file. - `Attach` switches IN PLACE. The window, the terminal and the process - stay; what changes is where the state lives. Only on a successful - handshake does the frontend give up its own core — so a failed attach - costs you nothing. + In a pane's shell, pardes FILE opens FILE in this session, and + EDITOR='pardes --wait' makes git commit open its message in a pane + and carry on when you close it. - `Detach` is the smaller half: only the frontend that ran it leaves. - The session, its shells and every other attached frontend are - untouched, so leaving is a SUCCESS — the terminal prints where to come - back to and exits 0. In a session with nothing to detach from it says - so on the message row and does nothing. + -> Guide: Unsaved panes, Reviewing diffs, pardes FILE and --wait - MORE THAN ONE FRONTEND - N frontends attached to one session all see the SAME screen, at the - smallest common grid — `screen -x`, not N sessions. Two windows of - different sizes converge on the smaller and the larger letterboxes. - WHAT A DAEMON CAN ALSO DO - A detached session serves acme's control filesystem like any other: +================================================================= += PART 8 — SESSIONS AND CONFIG = +================================================================= - pardes --detach=work 9P on the session's default unix socket + A session is a core (text, undo, layout, the pane shells) and a + frontend that draws it. They do not have to be one process: + + pardes --detach=work a session with no screen of its own + pardes --attach=work show it here + pardes-gui --attach=work an SDL window is a frontend too - Every native session is scriptable over 9P — see part 6. + From inside: `Attach` work (SPC s a) switches this window to it, and + `Detach` (SPC s D) leaves it running, shells and all. Frontends + attached together share ONE screen at the smallest common size. + The session ends when its last pane closes. - The socket lives in $XDG_RUNTIME_DIR (else ~/.local/state/pardes), - created 0700, never /tmp: it carries keystrokes into a live editor. + `Config` (SPC f c) opens the startup file, ~/.config/pardes/init: a + builtin a line, run at start (Theme atelier, Shell zsh). `Dump` and + `Restore` save and reload the workspace. + + -> Guide: Sessions, Config ================================================================= -= PART 5 — THE KEYS (helix-style modal) = += PART 9 — THE KEYS (helix-style modal) = ================================================================= - Same core as helix: a block cursor you move with h/j/k/l, motions that - SELECT what they cross, and an edit that acts on the selection. There - is no verb+noun — the motion already selected, so `wd` is what `dw` - was in vim. + Same core as helix: a block cursor you move with h/j/k/l, motions + that SELECT what they cross, and an edit that acts on the + selection. There is no verb+noun: the motion already selected, so + wd is what dw was in vim. ----------------------------------------------------------------- -= 5.1 MOTION AND COUNTS = += 9.1 MOTION AND COUNTS = ----------------------------------------------------------------- k h left, l right, j down, k up (also arrows) h l w/b/e word forward/back/end (W/B/E long) - j 0 line start, $ end, ^ first non-blank + j 0 line start, gl line end, ^ first non-blank gg first line, ge START of the last line f/F/t/T find a character forward/back - Bare G does NOTHING. `ge` is the start of the last line. + Bare G does NOTHING; a count first (5G) goes to that line. $ is not + line end: it keeps the selections a shell command succeeds on. # keys: l l l # before @@ -269,12 +297,12 @@ abcdef # after abcdef - A number typed FIRST is a count, and only some keys take one: the - motions, f/F/t/T and the `Alt-.` that repeats them, gg/gj/gk/g|, `x`, - `o`/`O`, `>`/`<`, `p`/`P`, Ctrl-a/Ctrl-x, ]p/[p and ]space/[space, and - the cursor-list keys C, Alt-C and )/(. Everywhere else it is swallowed: - `3d` deletes once, `3i` types once. `0` is always line-start and never - the start of a count. Ctrl-d/u/f/b ignore counts: a page is a page. + A number typed FIRST is a count, and only some keys take one, + among them the motions, f/F/t/T and the Alt-. that repeats them, + gg/gj/gk, x, o/O, > and <, p/P, R, Ctrl-a/Ctrl-x, the cursor-list + keys C and ( ), q and the . repeat. Elsewhere it is swallowed: 3d + deletes once, 3i types once. 0 is always line start and never starts a + count. Ctrl-d/u/f ignore counts: a page is a page. # keys: 3 l i Z esc # before @@ -283,11 +311,11 @@ abcdef abcZdef ----------------------------------------------------------------- -= 5.2 ENTERING INSERT = += 9.2 ENTERING INSERT = ----------------------------------------------------------------- - `i` at the cursor. `a` after it. `I` first non-blank. `A` end of - line. `o` open below. `O` open above. Esc returns to normal. + i at the cursor. a after it. I first non-blank. A end of line. + o open below. O open above. Esc returns to NORMAL. # keys: i X esc # before @@ -303,33 +331,36 @@ line1 line2 ----------------------------------------------------------------- -= 5.3 MOTIONS SELECT = += 9.3 MOTIONS SELECT = ----------------------------------------------------------------- - w/b/e and f/F/t/T leave a SELECTION behind them. So `i` after a motion - types at the selection's START, not where the cursor stopped. `;` - collapses a selection to a single cursor first. + w/b/e and f/F/t/T leave a SELECTION behind them, so i after a + motion types at the selection's START. ; collapses the selection + to the cursor first; w left the cursor on the space. + +# keys: w i Z esc +# before +one two +# after +Zone two # keys: w ; i Z esc # before one two # after -one Ztwo +oneZ two ----------------------------------------------------------------- -= 5.4 SELECT AND EDIT = += 9.4 SELECT AND EDIT = ----------------------------------------------------------------- - x select the LINE (again: extend by one more) - v character-wise select, then move + x select the LINE (again: one more) + v extend by characters, then move d delete the selection c change it y yank it p / P paste after / before u undo U redo > < indent / outdent Ctrl-a / Ctrl-x increment / decrement - Selection is LINE-first here — `x` — with `v` for characters. That is - the main divergence from helix. - # keys: x c typed esc # before replace me @@ -337,165 +368,113 @@ replace me typed ----------------------------------------------------------------- -= 5.5 THE REST, IN ONE PLACE = += 9.5 THE REST, IN ONE PLACE = ----------------------------------------------------------------- - s / S regex, one cursor per match, previewing as you type. - C , ( ) Alt-s Alt-- Alt-_ _ work the resulting LIST. - m i / m a textobjects: w W p, the bracket pairs, the three quotes - m s/r/d surround add / replace / delete; mm jump to the match - ] [ step by paragraph, blank line, diagnostic - | filter every selection through /bin/sh -c (savable file - panes only) - : the tag as a command line - / case-insensitive SUBSTRING search, one hit per line — not - a regex. The regex lives on s and S. - n / N select the next/previous LOOK-able text, across panes, as - a ring. Enter opens what you land on. + s / S regex, one cursor per match, previewing as you type; + C , ( ) Alt-s Alt-- Alt-_ _ work the resulting LIST + m i / m a textobjects: w W p, the bracket pairs, the quotes + m s/r/d surround add / replace / delete; m m the match + ] p, [ p step by paragraph; ] d, [ d by diagnostic + ] space a blank line below; [ space above + | filter every selection through the shell + / case-insensitive SUBSTRING search, one hit a line; the + regex lives on s and S + n / N the next/previous look-able text, as above + Ctrl-c comment or uncomment the lines VIEWPORT - zt zz zb scroll so the cursor is at top / center / bottom - zj zk scroll one line, cursor pushed along - Ctrl-d/u half page down / up - Ctrl-f full page down. Ctrl-b pages up on a FILE pane; on a - terminal it is the tty toggle (part 3). + z t, z z, z b scroll the cursor to the top / centre / bottom + z j, z k scroll a line, the cursor pushed along + Ctrl-d/u half a page down / up + Ctrl-f a page down. Ctrl-b pages up in a file; in a + terminal it is the RAW toggle. + + LANGUAGE SERVERS run as child processes, one per language on PATH + (zls, rust-analyzer, clangd, gopls, typescript-language-server, + pyright): g d definition, g r references, g D g y g i, SPC l k + hover, SPC l r rename, SPC l i what is running, ] d diagnostics, + = format. ----------------------------------------------------------------- -= 5.6 SPC — THE LEADER = += 9.6 SPC — THE LEADER = ----------------------------------------------------------------- - Nearly every builtin has a NAME you can execute anywhere text lives and - a KEY PATH you can press. SPC in body normal mode starts the path; what - you have typed shows on the pane's message row until it fires. Esc + Nearly every builtin has a NAME you can execute wherever text lives + and a KEY PATH you can press. SPC in NORMAL mode starts the path; + what you have typed shows on the message row until it fires. Esc abandons it, and so does any key that leads nowhere. SPC ? list every path - SPC d Del Exit (quit) remains available in the topbar. - SPC f s Save SPC f f Find SPC f n New - SPC y Y p P R the system clipboard - SPC w h/j/k/l focus a neighbouring pane - SPC j j the pane before this one SPC j o/i back / forward - SPC s a Attach SPC s D Detach - SPC t * the toggles SPC l * the language + SPC d `Del` (`Exit` has no path: use the top tag) + SPC f s `Save` SPC f f `Find` SPC f n `New` + SPC y yank to the clipboard SPC p paste from it + SPC w h focus left (and j, k, l) + SPC j j `Last` SPC j o / SPC j i back / forward + SPC s a `Attach` SPC s D `Detach` + SPC t ... the toggles SPC l ... the language SPC h t this tutor + -> Guide: Keys + ================================================================= -= PART 6 — THE REST = += PART 10 — SCRIPTING = ================================================================= - NOT TEXT - .pdf the real document through MuPDF. j/k scroll it, `/` searches - it, Esc cancels selection and highlights, Shift-Esc leaves. - PdfFit / PdfTint / PdfSections sit in its own tag. - images pixels where the shell has them, petscii glyphs where it - does not (SPC t p / l / a). + Every session serves its panes as files over 9P: a program that + opens files IS an extension, with no plugin API. Pane shells get + $PARDES_9P (the socket) and $PARDES_PANE (their pane's serial). - LANGUAGE — ZLS, compiled in, .zig only. Nothing runs in the background - and nothing is cached: gd gD gy gi gr, the ten SPC l words, ]d/[d and - ]D/[D, `=` for a format diff, and Tab after a dot in insert. + 9ns --mntgen mount every session (9ns is cloud9's) + m=$NINE_MOUNT/pardes/ + cat $m/index a line per pane + echo notes.txt:12 > $m/look a right click + echo Save > $m/pane/3/ctl a builtin on pane 3 - THE CONTROL FILESYSTEM — the extension mechanism, and there is no - plugin API, no interpreter and no rebuild. A program that opens files - IS an extension. + While a program holds a pane's event file open, middle and right + clicks in that pane come to it instead of acting, and writing a + click back makes pardes perform it: arbitrary command execution by + design. The socket sits in your private runtime directory. - pardes the 9P socket opens by default - - A directory per pane holding `name`, `body`, `tag`, `addr`, `dot`, - `data`, `sel`, `dirty`, `event`, `pty/` and the rest, plus `index`, - `status`, `look`, `exec` and `log` at the root. Every pane shell - receives `$PARDES_9P` (the socket) and `$PARDES_PANE` (its serial): - - /pane//body - /index - /pane/new open it to make a pane; rmdir closes one - /look /exec `FILE:12` and `Save`, as the mouse does - - A terminal pane also has `pty/`: - - /pane/3/pty/ctl winsize, sig - /pane/3/pty/data terminal input/output - - Over 9P the same tree answers plan9port, from anywhere: - - 9p -a $XDG_RUNTIME_DIR/pardes-9p-work.sock ls / - 9p -a $XDG_RUNTIME_DIR/pardes-9p-work.sock read index - - ...and pardes is a 9P CLIENT too, so one session can read another's: - - pardes --mount=peer=work - /n/peer/pane/1/body Look opens the other session's body - - TWO THINGS WORTH KNOWING. While a program holds a pane's `event` file - open, MIDDLE AND RIGHT CLICKS IN THAT PANE BELONG TO IT: pardes reports - them and performs nothing, so that pane's tag can carry the program's - own words. The keyboard is never suppressed, and the clicks come back - when it exits. - - And writing an event record back — `origin type q0 q1` — makes pardes - perform the Look or Exec it names. That is arbitrary command execution - by design. The socket sits in the user's private runtime directory. - - docs/fs.md describes the filesystem and mount paths. + -> The Scripting chapter (docs/typ/scripting.typ) ================================================================= = SUMMARY = ================================================================= - MOUSE L select/focus M execute R look(open) - 1-2 cut 1-3 paste both in one hold = snarf - 2-1 = execute the middle word with the left selection + MODES blank NORMAL, ^ INSERT, $ RAW; each pane keeps its own + Esc: back to the previous pane (RAW: only at an empty + prompt; INSERT: back to NORMAL) + Shift-Esc: out of RAW always; in a terminal's NORMAL, + into RAW; Ctrl-b toggles RAW and NORMAL + + MOUSE L select/focus M execute R look + 1-2 cut 1-3 paste 1-2 then 1-3 copy + 2-1 execute the middle word with the left selection keyboard: Enter = look, Tab = execute - PANES Ctrl-w h/j/k/l focus a neighbour (SPC w h/j/k/l in a body) - Esc the pane you were in before this one - Shift-Esc leave, whatever Escape means in here + PANES Ctrl-w h/j/k/l focus a neighbour (NORMAL mode) Ctrl-o / Ctrl-i jump history back / forward - Alt-n new terminal below Alt-c pane into a new column - - TTY a terminal IS a pane - Ctrl-b toggles raw input; Shift-Esc enters from editor mode - Togglettymode in the tag switches modes in either direction - Esc goes to the program — except at a shell PROMPT, where - it hops to the previous pane - Ctrl-b switches to editor mode - Ctrl-V types the register, Ctrl-Shift-V the clipboard - All other keys belong to the child - - DETACHED pardes --detach[=name] the core, no terminal - pardes --attach[=name] a frontend for it - Attach / Detach the same, as words (SPC s a / s D) - the pane shells belong to the SESSION and never stop - N frontends share ONE screen at the smallest common grid - the default 9P socket works in a daemon too + Alt-n new terminal Alt-c pane into a new column KEYS h j k l w b e 0 gl ^ gg ge f F t T v x d c y p i a I A o O u undo U redo - motions SELECT, so `i` types at the selection's start and - `;` collapses first - a leading NUMBER is a count on motions, x, o/O, > <, p P, - Ctrl-a/x and ]space — not on the other edits - bare G does nothing; `ge` is the START of the last line + motions SELECT: i types at the selection's start, and + ; collapses first + bare G does nothing; ge is the START of the last line s / S regex cursors; m i/a textobjects; m s/r/d surround - ] [ paragraph, blank line, diagnostic; | pipe a selection / is a case-insensitive SUBSTRING search, not a regex SPC is the leader (SPC ? lists every path) - SCRIPTING 9P is served by default on $PARDES_9P - /pane//{name,body,tag,ctl,addr,data,sel,event,pty/} - a script holding `event` owns that pane's middle and right - clicks; writing a record back runs it - - vs HELIX selection is LINE-first (x), v for characters; `/` is a - substring search, not a regex. - vs VIM no verb+noun — the motion already selected, so `wd` is - what `dw` was; Esc hops focus; bare G is a no-op. - vs BOTH a terminal is just a pane, and the core can outlive the - terminal that is showing it. - - Spawn this tutor again: middle-click "Tutor" in the top bar, or SPC h t. + vs HELIX selection is LINE-first (x), v for characters; / is a + substring search; n/N walk look-able text. + vs VIM no verb+noun: the motion already selected, so wd is + what dw was; Esc goes back a pane; bare G does nothing. + vs BOTH a terminal is just a pane, and the session can outlive + the terminal that is showing it. - Quit: this is a file pane — `:q` is not wired. Close it with Del in its - tag, "Exit" in the top bar to quit everything, or Ctrl-c the app. - "Kill" does not quit: it stops the commands pardes started, as acme's does. + Open this tutor again: middle-click `Tutor` in the top tag, or + SPC h t. It is a file pane: close it with `Del` in its tag. `Exit` + in the top tag quits everything; `Kill` only stops commands. diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 0f13ed7c..27b43a3a 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -34,48 +34,48 @@ |19: 4 |20: 5 The model is acme's: EVERYTHING is text, editable and executable |21: 6 the same way. Modal editing (helix-style) lives on top of that. -|22: 7 Press j until you reach the introduction. +|22: 7 Press j until you reach part 1. |23: 8 -|24: 9 -|25: 10 ================================================================= -|26: 11 = INTRODUCTION = -|27: 12 ================================================================= -|28: 13 -|29: 14 A pane is just text on screen. There is no separate "buffer" type — -|30: 15 what you see is what you edit. Some panes happen to be live terminals; -|31: 16 most are text you move a cursor over. Modal editing is layered on top. -|32: 17 -|33: 18 Three modes (the BOX at the pane's top-left corner shows which): -|34: 19 NORMAL block cursor, keys move and edit. The box is BLANK. -|35: 20 ^ INSERT keys type text at the cursor. -|36: 21 $ TTY keys go straight to the shell. (terminals only) -|37: 22 -|38: 23 A bare `pardes` opens one shell already in TTY. Give it a file or a -|39: 24 directory and you start in NORMAL. -|40: 25 -|41: 26 SIX PARTS, ordered by what is most different from editors you know: -|42: 27 1 — THE MOUSE. Acme's three buttons; nothing like vim. -|43: 28 2 — PANES. Moving between them. Esc, Shift-Esc, Ctrl-w. -|44: 29 3 — THE TTY. Raw input, prompt-aware Esc, and the mode tag. -|45: 30 4 — DETACHED. The core outliving the terminal showing it. -|46: 31 5 — THE KEYS. Helix-style modal, and where it differs. -|47: 32 6 — THE REST. PDFs, images, the language backend, scripting. +|24: 9 The lessons follow the guide (docs/typ/guide.typ, the "Guide" +|25: 10 chapter of the pardes book), and each ends by naming its section. +|26: 11 +|27: 12 Words written in backticks, like `Save`, are builtins: type one in +|28: 13 any tag and middle-click it. Lines starting with "| " are tags as +|29: 14 pardes draws them, words only. +|30: 15 +|31: 16 PRACTICE BLOCKS (part 9): the "# keys:" line lists keystrokes +|32: 17 (space-separated; esc/enter/bs are special, the rest type each char). +|33: 18 The lines under "# before" are what you practise on; "# after" is +|34: 19 what you should end up with. Nothing runs them. What pins the real +|35: 20 behaviour is `zig build hxdiff`, which replays test/hxcases against +|36: 21 goldens recorded from a real helix, and `zig build hxparity`, which +|37: 22 runs each case in a file pane and in a shell and demands they agree. +|38: 23 +|39: 24 +|40: 25 ================================================================= +|41: 26 = PART 1 — MODES = +|42: 27 ================================================================= +|43: 28 +|44: 29 A pane is text on screen, a tag over a body. Some panes are live +|45: 30 terminals; most are text you move a cursor over. Each pane has its +|46: 31 own mode and keeps it while you are elsewhere. The BOX at the left +|47: 32 of a pane's tag shows it: |48: 33 -|49: 34 PRACTICE BLOCKS (part 5): the "# keys:" line lists keystrokes -|50: 35 (space-separated; esc/enter/bs are special, the rest type each char). -|51: 36 The lines under "# before" are what you practice on; "# after" is what -|52: 37 you should end up with. They are here to be TYPED and nothing runs -|53: 38 them. What pins the real behaviour is `zig build hxdiff`, which replays -|54: 39 test/hxcases against goldens recorded from a real helix, and -|55: 40 `zig build hxparity`, which runs each case twice — once in a file pane, -|56: 41 once in a shell — and demands the two agree. +|49: 34 NORMAL keys move and select. The box is BLANK. +|50: 35 ^ INSERT keys type text at the cursor. +|51: 36 $ RAW keys go straight to the program (terminals only). +|52: 37 +|53: 38 Where each pane starts: a file or a PDF in NORMAL; a terminal from +|54: 39 `Tty` in RAW, one from Alt-n in NORMAL; a command pane in RAW while +|55: 40 its command runs. A bare `pardes` starts a shell in RAW with an +|56: 41 empty text pane under it; `pardes FILE` starts on the file. |57: 42 -|58: 43 Hold j to reach part 1. +|58: 43 Esc and Shift-Esc, by mode: |59: 44 -|60: 45 -|61: 46 ================================================================= -|62: 47 = PART 1 — THE MOUSE (acme chording) = -|63: 48 ================================================================= -|64: 49 -|65: 50 Three buttons, three verbs: -|66: 51 LEFT select, and focus the pane. Also pins the cursor. +|60: 45 NORMAL Esc back to the previous pane (`Last`, SPC j j) +|61: 46 Shift-Esc the same; in a terminal it switches to RAW +|62: 47 INSERT Esc back to NORMAL +|63: 48 Shift-Esc the same; in a terminal it switches to RAW +|64: 49 RAW Esc goes to the program, except at an idle, +|65: 50 EMPTY shell prompt: back to the previous pane +|66: 51 Shift-Esc always back to the previous pane diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden index bde9f7bf..59f6930c 100644 --- a/test/snapshots/leader.golden +++ b/test/snapshots/leader.golden @@ -25,29 +25,29 @@ |15: 4 |16: 5 The model is acme's: EVERYTHING is text, editable and executable |17: 6 the same way. Modal editing (helix-style) lives on top of that. -|18: 7 Press j until you reach the introduction. +|18: 7 Press j until you reach part 1. |19: 8 -|20: 9 -|21: 10 ================================================================= -|22: 11 = INTRODUCTION = -|23: 12 ================================================================= -|24: 13 -|25: 14 A pane is just text on screen. There is no separate "buffer" type — -|26: 15 what you see is what you edit. Some panes happen to be live terminals; -|27: 16 most are text you move a cursor over. Modal editing is layered on top. -|28: 17 -|29: 18 Three modes (the BOX at the pane's top-left corner shows which): -|30: 19 NORMAL block cursor, keys move and edit. The box is BLANK. -|31: 20 ^ INSERT keys type text at the cursor. -|32: 21 $ TTY keys go straight to the shell. (terminals only) -|33: 22 -|34: 23 A bare `pardes` opens one shell already in TTY. Give it a file or a -|35: 24 directory and you start in NORMAL. -|36: 25 -|37: 26 SIX PARTS, ordered by what is most different from editors you know: -|38: 27 1 — THE MOUSE. Acme's three buttons; nothing like vim. -|39: 28 2 — PANES. Moving between them. Esc, Shift-Esc, Ctrl-w. -|40: 29 3 — THE TTY. Raw input, prompt-aware Esc, and the mode tag. +|20: 9 The lessons follow the guide (docs/typ/guide.typ, the "Guide" +|21: 10 chapter of the pardes book), and each ends by naming its section. +|22: 11 +|23: 12 Words written in backticks, like `Save`, are builtins: type one in +|24: 13 any tag and middle-click it. Lines starting with "| " are tags as +|25: 14 pardes draws them, words only. +|26: 15 +|27: 16 PRACTICE BLOCKS (part 9): the "# keys:" line lists keystrokes +|28: 17 (space-separated; esc/enter/bs are special, the rest type each char). +|29: 18 The lines under "# before" are what you practise on; "# after" is +|30: 19 what you should end up with. Nothing runs them. What pins the real +|31: 20 behaviour is `zig build hxdiff`, which replays test/hxcases against +|32: 21 goldens recorded from a real helix, and `zig build hxparity`, which +|33: 22 runs each case in a file pane and in a shell and demands they agree. +|34: 23 +|35: 24 +|36: 25 ================================================================= +|37: 26 = PART 1 — MODES = +|38: 27 ================================================================= +|39: 28 +|40: 29 A pane is text on screen, a tag over a body. Some panes are live == snap deleted grid=100x41 cursor=7,3 |5: |6: diff --git a/test/snapshots/tutor.golden b/test/snapshots/tutor.golden index 2976f99a..c78fe3d8 100644 --- a/test/snapshots/tutor.golden +++ b/test/snapshots/tutor.golden @@ -13,8 +13,8 @@ | table | 6 the same way. Modal editing (helix-style) lives on top of t↩ | hat. -| 7 Press j until you reach the introduction. +| 7 Press j until you reach part 1. | 8 -| 9 +| 9 The lessons follow the guide (docs/typ/guide.typ, the "Guide" | /tmp/pardes-snap/tutor/cwd Tty+bash Save Mode Filter Collapse Del | ls -- cgit v1.3 From 802de4f12f125abc261c58bdb5385f6be3ad469a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 09:43:37 -0300 Subject: Shift-Esc always backs out: in every mode and pane it goes to the previous pane, as Esc does from normal, and a raw program never sees it; Ctrl-b alone toggles raw Shift-Esc switched a terminal in normal or insert mode into raw, so the one key meant to get out of anything got a script or a person into a program instead. It is now handled before any mode: an open prompt is closed, insert mode left, a pending count dropped, and Last runs, the pane keeping its mode (a raw terminal stays raw). Ctrl-b is the only switch between raw and normal. The keymap's two chords become one, back_out; the cheatsheet row, the guide's mode table and the tutor say so, and the tty and builtins goldens are re-recorded. Co-Authored-By: Claude Opus 5.5 --- docs/typ/cheatsheet.typ | 2 +- docs/typ/guide.typ | 6 ++--- src/config.zig | 6 +++-- src/gui/gui.zig | 5 +--- src/normal.zig | 5 ---- src/pardes.zig | 53 +++++++++++++++++++++++++++++++++++------- src/tutor.txt | 8 +++---- test/snapshots/builtins.golden | 4 ++-- test/snapshots/tty.golden | 17 +++++++------- test/snapshots/tty.snap | 25 ++++++++------------ 10 files changed, 78 insertions(+), 53 deletions(-) (limited to 'src/tutor.txt') diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index cec31428..0487611a 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -78,7 +78,7 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla #pairs( [#key("Ctrl-w") #keys("h", "j", "k", "l")], [then a direction: focus a neighbour (not in insert or raw `$`)], [#key("Esc")], [back to the previous pane (raw: only at a prompt with nothing typed; insert: to normal)], - [#key("Shift-Esc")], [As Esc, but always back to the previous pane from raw `$` or a PDF, and into raw from a terminal's normal or insert mode.], + [#key("Shift-Esc")], [back to the previous pane from any mode or pane, as Esc from normal; a raw program never sees it], [#keys("Ctrl-o", "Ctrl-i")], [jump history back, forward], [#key("Alt-n")], [new terminal below], [#key("Alt-c")], [move the pane to a new column], diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 8bab9e56..6d140da7 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -27,13 +27,13 @@ copy from. #word("Mode") in the tag steps raw, normal, insert. Esc and Shift-Esc depend on the mode: #pairs( - [normal], [#key("Esc"): back to the previous pane (#word("Last")). #key("Shift-Esc"): the same, except in a terminal, where it switches to raw.], - [insert], [#key("Esc"): back to normal. #key("Shift-Esc"): the same, except in a terminal, where it switches to raw.], + [normal], [#key("Esc"): back to the previous pane (#word("Last")). #key("Shift-Esc"): the same.], + [insert], [#key("Esc"): back to normal. #key("Shift-Esc"): out of insert and back to the previous pane.], [raw `$`], [#key("Esc"): to the program, except at a shell prompt with nothing typed on it, where it goes back to the previous pane. #key("Shift-Esc"): always back to the previous pane. Either way the terminal stays `$`.], [a PDF], [#key("Esc"): clears the selection and the search highlights. #key("Shift-Esc"): back to the previous pane.], ) -In short, #key("Shift-Esc") is as Esc, but always back to the previous pane from raw `$` or a PDF, and into raw from a terminal's normal or insert mode. "A shell prompt with nothing +In short, #key("Shift-Esc") is the Esc nothing swallows: in every mode and pane it goes back to the previous pane, as Esc does from normal, and a raw program never sees it. #key("Ctrl-b") alone switches a terminal between raw and normal. "A shell prompt with nothing typed on it" is one pardes knows from the prompt marks it injects into bash and fish (and, for other shells, from no program holding the terminal). "The previous pane" is the last other pane on the jump list; with none, the diff --git a/src/config.zig b/src/config.zig index cc46adfc..7559d481 100644 --- a/src/config.zig +++ b/src/config.zig @@ -249,10 +249,12 @@ pub const jump_keys = [_]struct { chord: Chord, cmd: Builtin }{ .{ .chord = .{ .cp = 'i', .ctrl = true }, .cmd = .Forward }, }; -pub const leave_pane: []const Chord = &.{.{ .cp = Key.escape, .shift = true }}; +/// Shift-Esc: the Esc nothing swallows. In every mode and pane it does what +/// Esc does from normal mode, back to the previous pane (Last); a raw +/// terminal's program never sees it. Ctrl-b alone toggles raw. +pub const back_out: []const Chord = &.{.{ .cp = Key.escape, .shift = true }}; pub const tty_toggle_default: u21 = 'b'; -pub const tty_toggle_alt: []const Chord = &.{.{ .cp = Key.escape, .shift = true }}; // OSC 133 prompt cells are hidden in normal mode; input columns stay intact. pub const tty_blank: enum { prompt, prompt_and_input } = .prompt; diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 739e5a69..e8dc99b9 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -3790,10 +3790,7 @@ fn dispatch(g: *Gui, in: *Input, sev: *const c.SDL_Event) void { .cap_n => .{ .cp = 'N', .text = "N" }, .enter => .{ .cp = pardes.Key.enter }, .tab => .{ .cp = pardes.Key.tab }, - .tty_toggle => if (in.core) |core| - .{ .cp = core.opts.tty_toggle, .ctrl = true } - else - .{ .cp = config.tty_toggle_alt[0].cp, .shift = true }, + .tty_toggle => .{ .cp = if (in.core) |core| core.opts.tty_toggle else config.tty_toggle_default, .ctrl = true }, }, }), .rumble => if (g.gamepad) |pad| { diff --git a/src/normal.zig b/src/normal.zig index 17ebaac6..93487e88 100644 --- a/src/normal.zig +++ b/src/normal.zig @@ -815,11 +815,6 @@ fn executeNormalAction(p: *Pardes, t: *Text, semantic: modal.Normal.Action) void pub fn handlePdfNormal(p: *Pardes, pane: *Pane, key: Key) void { if (comptime !pdf_enabled) return; if (pane.pdf == null) return; - if (hit(key, config.leave_pane)) { - pane.body.normal.clear(); - pane.body.select = false; - return exec.runBuiltin(p, .Last, p.active, "", null); - } if (pane.body.normal.prefix == .none and isPrefix(key, 'f')) { pane.body.normal.clear(); return exec.runBuiltin(p, .PdfSections, p.active, "", null); diff --git a/src/pardes.zig b/src/pardes.zig index dbb37084..0690b7eb 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -6122,6 +6122,24 @@ pub const Pardes = struct { } const pane = p.panes[p.active] orelse return; p.noteTyped(); + // Shift-Esc backs out of whatever the pane is in -- a prompt, insert + // mode, a pending count, a raw program -- to the previous pane, as + // Esc does from normal mode. Nothing under it sees the key. + if (hit(key, config.back_out)) { + p.leader_on = false; + p.ctrl_w_pending = false; + if (pane.prompt != .none) { + pane.closePrompt(); + pane.focus = .body; + } + for ([_]*Text{ &pane.body, &pane.tag }) |t| { + if (t.mode == .insert) edit.exitInsert(p, t); + t.normal.clear(); + t.select = false; + } + tagline.exitHeader(p); + return exec.runBuiltin(p, .Last, p.active, "", null); + } // Alt-Down and Alt-Up in a pane's tag expand and collapse it, in // either mode: acme's Tagdown and Tagup (plan9port text.c:776). if (pane.focus == .tag and key.alt and !key.ctrl and (key.cp == Key.down or key.cp == Key.up) and tagline.focusedHeader(p) == null) { @@ -6135,10 +6153,8 @@ pub const Pardes = struct { p.ctrl_w_pending = false; if (key.ctrl and !key.alt and key.cp == p.opts.tty_toggle) return p.toggleTty(p.active); - // Shift-Escape is the unconditional way out, even mid-application; - // bare Escape only leaves at a shell prompt. - if (hit(key, config.tty_toggle_alt)) - return exec.runBuiltin(p, .Last, p.active, "", null); + // Bare Escape leaves only at a shell prompt (Shift-Esc, above, + // always). if (key.cp == Key.escape and !key.ctrl and !key.alt and !key.shift and exec.takesCommandLine(p, p.active)) return exec.runBuiltin(p, .Last, p.active, "", null); panes.terminal.followOutput(pane); // typing snaps back to live output @@ -6196,8 +6212,7 @@ pub const Pardes = struct { } return; } - const tty_alt = hit(key, config.tty_toggle_alt); - const tty_toggle = (key.ctrl and key.cp == p.opts.tty_toggle) or tty_alt; + const tty_toggle = key.ctrl and key.cp == p.opts.tty_toggle; if (pane.isTerminal() and tty_toggle) { return p.toggleTty(p.active); } @@ -7601,7 +7616,7 @@ test "Esc back into a tty leaves its view at the prompt" { p.update(.{ .mouse = .{ .button = .left, .kind = .release, .col = r.x + config.GUTTER + 1, .row = r.y + BOX_H } }); try std.testing.expectEqual(shell, p.active); - p.update(.{ .key = .{ .cp = Key.escape, .shift = true } }); + p.update(.{ .key = .{ .cp = 'b', .ctrl = true } }); try std.testing.expectEqual(Text.Mode.tty, sp.body.mode); // tty mode follows output to the bottom, so a screenful and a half of it @@ -8012,7 +8027,7 @@ test "tty output follows only from the bottom" { p.update(.{ .key = .{ .cp = 'n', .alt = true } }); // a shell under the doc const shell = p.active; const sp = p.panes[shell].?; - p.update(.{ .key = .{ .cp = Key.escape, .shift = true } }); + p.update(.{ .key = .{ .cp = 'b', .ctrl = true } }); try std.testing.expectEqual(Text.Mode.tty, sp.body.mode); for (0..60) |i| { @@ -8122,6 +8137,28 @@ test "raw tty Escape only leaves at a shell prompt" { try std.testing.expectEqual(Text.Mode.tty, pane.body.mode); } +test "Shift-Esc backs out to the previous pane in every mode, never into raw" { + if (platform == .web) return; + const p = try Pardes.init(std.testing.allocator, .{ .cols = 80, .rows = 24, .file = "mise.toml" }); + defer p.deinit(); + p.update(.{ .key = .{ .cp = 'n', .alt = true } }); // a shell under the doc + const shell = p.active; + const sp = p.panes[shell].?; + // A terminal in normal mode: out, still normal, never raw. + if (sp.body.mode == .tty) p.update(.{ .key = .{ .cp = 'b', .ctrl = true } }); + try std.testing.expectEqual(Text.Mode.normal, sp.body.mode); + p.update(.{ .key = .{ .cp = Key.escape, .shift = true } }); + try std.testing.expectEqual(@as(usize, 0), p.active); + try std.testing.expectEqual(Text.Mode.normal, sp.body.mode); + // A text pane in insert mode: out of insert, and out of the pane. + const doc = p.panes[0].?; + p.update(.{ .key = .{ .cp = 'i', .text = "i" } }); + try std.testing.expectEqual(Text.Mode.insert, doc.body.mode); + p.update(.{ .key = .{ .cp = Key.escape, .shift = true } }); + try std.testing.expectEqual(Text.Mode.normal, doc.body.mode); + try std.testing.expect(p.active != 0); +} + test "raw tty Ctrl-B switches to editor mode without sending child input" { if (platform == .web) return; const p = try Pardes.init(std.testing.allocator, .{ .file = "mise.toml" }); diff --git a/src/tutor.txt b/src/tutor.txt index 37938574..bd79d5a4 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -43,9 +43,9 @@ Esc and Shift-Esc, by mode: NORMAL Esc back to the previous pane (`Last`, SPC j j) - Shift-Esc the same; in a terminal it switches to RAW + Shift-Esc the same INSERT Esc back to NORMAL - Shift-Esc the same; in a terminal it switches to RAW + Shift-Esc out of INSERT and back to the previous pane RAW Esc goes to the program, except at an idle, EMPTY shell prompt: back to the previous pane Shift-Esc always back to the previous pane @@ -447,8 +447,8 @@ typed MODES blank NORMAL, ^ INSERT, $ RAW; each pane keeps its own Esc: back to the previous pane (RAW: only at an empty prompt; INSERT: back to NORMAL) - Shift-Esc: out of RAW always; in a terminal's NORMAL, - into RAW; Ctrl-b toggles RAW and NORMAL + Shift-Esc: back to the previous pane from any mode, + RAW included; Ctrl-b toggles RAW and NORMAL MOUSE L select/focus M execute R look 1-2 cut 1-3 paste 1-2 then 1-3 copy diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 27b43a3a..68fab516 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -73,9 +73,9 @@ |58: 43 Esc and Shift-Esc, by mode: |59: 44 |60: 45 NORMAL Esc back to the previous pane (`Last`, SPC j j) -|61: 46 Shift-Esc the same; in a terminal it switches to RAW +|61: 46 Shift-Esc the same |62: 47 INSERT Esc back to NORMAL -|63: 48 Shift-Esc the same; in a terminal it switches to RAW +|63: 48 Shift-Esc out of INSERT and back to the previous pane |64: 49 RAW Esc goes to the program, except at an idle, |65: 50 EMPTY shell prompt: back to the previous pane |66: 51 Shift-Esc always back to the previous pane diff --git a/test/snapshots/tty.golden b/test/snapshots/tty.golden index 981a5c7f..b1ee7afd 100644 --- a/test/snapshots/tty.golden +++ b/test/snapshots/tty.golden @@ -29,15 +29,14 @@ |4: ls ls |6: echo SNAP''OK |8: -== snap shift-esc-on grid=100x31 cursor=4,8 -|2: $ /tmp/pardes-snap/tty/cwd Tty+bash Save Mode Fil /tmp/pardes-snap/tty/cwd Tty+bash Save Mode Fil -|4: $ ls ls -|6: $ echo SNAP''OK -|8: $ -== snap shift-esc-nodoc grid=100x31 cursor=4,21 -|4: $ ls Last ls -== snap ctrl-b-off grid=100x31 cursor=4,21 -|4: $ ls ls +== snap shift-esc-normal grid=100x31 cursor=4,21 +|4: ls Last ls +== snap ctrl-b-on grid=100x31 cursor=4,21 +|4: ls ls |17: $ /tmp/pardes-snap/tty/cwd Tty+bash Save Mode Fil |19: $ ls |21: $ +== snap ctrl-b-off grid=100x31 cursor=4,21 +|17: /tmp/pardes-snap/tty/cwd Tty+bash Save Mode Fil +|19: ls +|21: diff --git a/test/snapshots/tty.snap b/test/snapshots/tty.snap index 6ce0d5ba..48fffbd1 100644 --- a/test/snapshots/tty.snap +++ b/test/snapshots/tty.snap @@ -1,11 +1,8 @@ -# tty mode round-trip: Ctrl-b in, run a command, Ctrl-b out. Shift-Esc (CSI -# 27;2u — needs a host that reports modifiers on Escape) also gets you IN; a -# PLAIN Esc does not, it still goes to the shell. -# -# Getting OUT is Ctrl-b alone. Shift-Esc in tty is what Escape is in normal -# mode instead — Last, the pane you were in before this one — leaving this pane -# in tty so coming back lands in the program you left. The hop itself is -# covered by a unit test in pardes.zig. +# tty mode round-trip: Ctrl-b in, run a command, Ctrl-b out. Ctrl-b is the one +# switch between raw and normal. Shift-Esc (CSI 27;2u — needs a host that +# reports modifiers on Escape) never switches: in every mode it is what Escape +# is in normal mode — Last, the pane you were in before this one — and a raw +# terminal stays raw. The hop itself is covered by a unit test in pardes.zig. file m.txt marker start 31 100 -n 3 wait 8000 m.txt @@ -21,16 +18,14 @@ snap tty-echo key c-b stable 600 8000 snap tty-off -# Shift-Esc: in, the same as Ctrl-b... +# Shift-Esc from normal: never into raw; it backs out to the previous pane. send \e[27;2u stable 600 8000 -snap shift-esc-on -# ...but not out. With no doc pane to hop to it changes nothing: still tty, -# prompts still shown, same pane focused. -send \e[27;2u +snap shift-esc-normal +# Ctrl-b is the switch: into raw, and out again. +key c-b stable 600 8000 -snap shift-esc-nodoc -# Ctrl-b still leaves tty in place, which is now the only thing that does. +snap ctrl-b-on key c-b stable 600 8000 snap ctrl-b-off -- cgit v1.3 From 351c3976805aa12a56c593894738001491548106 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 10:45:29 -0300 Subject: The docs trimmed to their path: a guide with Words you'll see and one Where commands run and panes go table, scripting's first tag word Fmt and eight traps, setup as the one home of the pager and the servers, a scannable cheatsheet, an honest README, the edge cases moved to the reference, and the pager's colours Co-Authored-By: Claude Opus 5.5 --- .agents/skills/pardes-9p/SKILL.md | 2 +- README.md | 36 +- docs/typ/building.typ | 10 +- docs/typ/cheatsheet-a4.pdf | 2241 ++++++++++++++++--------------------- docs/typ/cheatsheet.typ | 45 +- docs/typ/guide.typ | 390 +++---- docs/typ/reference.typ | 156 ++- docs/typ/scripting.typ | 226 ++-- docs/typ/setup.typ | 143 +-- docs/typ/themes.typ | 2 +- src/fs-help.txt | 4 +- src/tutor.txt | 4 +- 12 files changed, 1399 insertions(+), 1860 deletions(-) (limited to 'src/tutor.txt') diff --git a/.agents/skills/pardes-9p/SKILL.md b/.agents/skills/pardes-9p/SKILL.md index 4a1ddeb3..3060ad4a 100644 --- a/.agents/skills/pardes-9p/SKILL.md +++ b/.agents/skills/pardes-9p/SKILL.md @@ -34,7 +34,7 @@ mount, plan9port's `9p -a "unix!$PARDES_9P"` works, and `test/ninep.py` in the s `grep '^err' $m/log | tail -1` says why. Not the log's last line: after a refused Del, Exit or Restore that may be `+Unsaved`'s `new`. - Work through a pane of your own (`n=$(cat $m/pane/new)`) and its own - `look` and `exec`: the root's act at the active pane, which another + `look` and `exec`: the root's act at the pane with the keyboard, which another client, an idle shell or an event helper may own. - `head` on `index`, `layout`, `log` or `recent` through 9ns says `Illegal seek`: use `sed -n 1p`. In `index`, `term` is a shell, `cmd` a command's diff --git a/README.md b/README.md index 22ba334a..2c23de61 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,19 @@ # pardes -A text environment in the acme tradition: columns of panes, each a tag line -over a body that is a file, a live terminal, a PDF or an image. The mouse -carries meaning (left selects, middle executes, right looks), the keyboard -is helix's, and every session serves its panes as a 9P filesystem, so any -program that opens files can drive it. +A text environment in the acme tradition: columns of panes, each a tag over +a file, a terminal, a PDF or an image. Left selects, middle executes, right +looks; the keys are helix's; every session is a 9P filesystem any program +can drive. -Install the terminal build with Zig 0.16: `zig build -Dplatform=tty ---prefix ~/.local` puts `pardes` in `~/.local/bin` (a bare `zig build` builds -the SDL window too and installs both there). Run `pardes`, or `pardes FILE`. +Install with Zig 0.16: `zig build -Dplatform=tty --prefix ~/.local`, then +run `pardes` or `pardes FILE`. -Read next: the [guide](docs/typ/guide.typ) (10 minutes), -[setup](docs/typ/setup.typ) for the shell, editor and mount around it, the -[cheatsheet](docs/typ/cheatsheet.typ) (3 minutes), then -[scripting](docs/typ/scripting.typ) (5 minutes); the -[reference](docs/typ/reference.typ) and [themes](docs/typ/themes.typ) when -you need them. They build into one PDF with `typst compile --root . ---ignore-system-fonts docs/typ/book.typ`, and `zig build cheatsheet --Dplatform=tty --prefix DIR` renders the cheatsheet to -`DIR/share/doc/pardes/cheatsheet.pdf` (the committed copy is -[docs/typ/cheatsheet-a4.pdf](docs/typ/cheatsheet-a4.pdf)). Inside pardes, -`Tutor` walks through the same ground. +Read the [guide](docs/typ/guide.typ) (about 10 minutes), then try `Tutor` +inside pardes (about 15). Keep the [cheatsheet](docs/typ/cheatsheet.typ) +beside you. Read [scripting](docs/typ/scripting.typ) (about 10) when you +want to drive it from programs, and [setup](docs/typ/setup.typ) when you +fit it into your shell and tools. The [reference](docs/typ/reference.typ) +has every detail. `typst compile --root . --ignore-system-fonts +docs/typ/book.typ` builds them into one PDF. -Contributors: [building](docs/typ/building.typ) has the platforms, build -options, tests, release gates and how the core, the shells and the 9P -server fit together. +Contributors: [building](docs/typ/building.typ). diff --git a/docs/typ/building.typ b/docs/typ/building.typ index 6a2758ad..d957ff94 100644 --- a/docs/typ/building.typ +++ b/docs/typ/building.typ @@ -56,7 +56,7 @@ there; its namespace is in `src/esp32p4_gpio.zig`. [`-Dtest-filter`], [run only tests whose name contains it; a filter that matches nothing fails], [`-Dtest-rebuild`], [bool: fresh Zig test compilation], [`-Dhelix-harness`], [reference executable for live differential tests; `HX_HARNESS`, else `hx-harness` on `PATH`], - [`-Desp32p4-cols`, `-Desp32p4-rows`], [the board's grid, 56 by 14], + [`-Desp32p4-cols`, `-Desp32p4-rows`], [the ESP32-P4's grid, 56 by 14], ) = Tests @@ -145,7 +145,7 @@ effects such as spawning processes. - The root module is chosen by platform: `main.zig` (tty, gui), `web.zig`, `macos.zig`, `esp32p4.zig`. The web and macOS shells are libraries whose host owns `main()`. -- `memory.limits` is the one home for capacities that differ on the board +- `memory.limits` is the one home for capacities that differ on the ESP32-P4 (panes 16, columns 6, selections 64, the tag's 512 bytes). Each core allocator is a thread-safe stack-fallback allocator, under a DebugAllocator in Debug builds. @@ -172,7 +172,7 @@ selection-pipe workers post completions through a bounded mailbox; a `host_io.Lsp.Job` owns copies of the source, path and arguments, never reading the live core, and a request id, the pane's serial and (for an edit) the file's revision reject a stale reply. A process that never calls -`turn.start` (the tests, the board, the browser) has no second thread. +`turn.start` (the tests, the ESP32-P4, the browser) has no second thread. == Detached sessions @@ -211,9 +211,9 @@ use `.cloud9 = .{ .path = "../cloud9" }` while editing both. cloud9's own calls. The control tree in `src/ninep/` is its backend: `tree.zig` (nodes, dispatch), `pane.zig`, `ctl.zig`, `cols.zig`, `addr.zig`, `pty.zig`, `events.zig` (event and log), `screen.zig`, `sources.zig`. - `src/9p.zig` names the editor's and the board's engine settings: msize + `src/9p.zig` names the editor's and the ESP32-P4's engine settings: msize 65536, 256 fids, 128 held reads a connection, names up to 255 bytes; the - board has 32 fids. + ESP32-P4 has 32 fids. - A read, write, open, clunk, remove or truncating wstat can park; a walk, attach, stat, create or rename cannot. Every Rread is clamped to the count and the msize; Tflush answers the original request first. diff --git a/docs/typ/cheatsheet-a4.pdf b/docs/typ/cheatsheet-a4.pdf index ce50f595..5ec2a333 100644 --- a/docs/typ/cheatsheet-a4.pdf +++ b/docs/typ/cheatsheet-a4.pdf @@ -2,70 +2,70 @@ %€€€€ 1 0 obj -<> +<> endobj 2 0 obj -<> +<> endobj 3 0 obj -<> +<> endobj 4 0 obj -<> +<> endobj 5 0 obj -<> +<> endobj 6 0 obj -<> +<> endobj 7 0 obj -<> +<> endobj 8 0 obj -<> +<> endobj 9 0 obj -<> +<> endobj 10 0 obj -<> +<> endobj 11 0 obj -<> +<> endobj 12 0 obj -<> +<> endobj 13 0 obj -<> +<> endobj 14 0 obj -<> +<> endobj 15 0 obj -<> +<> endobj 16 0 obj <> endobj 17 0 obj -<>/K[419 0 R]/ParentTree<>/ParentTreeNextKey 1>> +<>/K[351 0 R]/ParentTree<>/ParentTreeNextKey 1>> endobj 18 0 obj -[19 0 R 19 0 R 20 0 R 22 0 R 22 0 R 25 0 R 26 0 R 26 0 R 29 0 R 30 0 R 30 0 R 30 0 R 30 0 R 32 0 R 33 0 R 33 0 R 35 0 R 36 0 R 36 0 R 36 0 R 36 0 R 39 0 R 40 0 R 41 0 R 43 0 R 44 0 R 46 0 R 46 0 R 47 0 R 47 0 R 49 0 R 50 0 R 50 0 R 50 0 R 50 0 R 50 0 R 52 0 R 53 0 R 53 0 R 53 0 R 57 0 R 56 0 R 57 0 R 57 0 R 57 0 R 57 0 R 57 0 R 57 0 R 57 0 R 57 0 R 57 0 R 58 0 R 59 0 R 59 0 R 59 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 60 0 R 61 0 R 62 0 R 62 0 R 64 0 R 65 0 R 65 0 R 67 0 R 69 0 R 69 0 R 68 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 69 0 R 71 0 R 72 0 R 72 0 R 72 0 R 74 0 R 75 0 R 75 0 R 75 0 R 77 0 R 78 0 R 78 0 R 78 0 R 78 0 R 78 0 R 78 0 R 78 0 R 78 0 R 78 0 R 80 0 R 83 0 R 83 0 R 83 0 R 81 0 R 83 0 R 82 0 R 83 0 R 83 0 R 86 0 R 87 0 R 87 0 R 87 0 R 87 0 R 88 0 R 89 0 R 91 0 R 92 0 R 94 0 R 96 0 R 96 0 R 95 0 R 96 0 R 98 0 R 101 0 R 101 0 R 99 0 R 101 0 R 100 0 R 101 0 R 103 0 R 107 0 R 104 0 R 107 0 R 105 0 R 107 0 R 106 0 R 106 0 R 109 0 R 110 0 R 110 0 R 112 0 R 114 0 R 113 0 R 114 0 R 114 0 R 122 0 R 117 0 R 122 0 R 118 0 R 122 0 R 119 0 R 122 0 R 120 0 R 122 0 R 121 0 R 122 0 R 122 0 R 122 0 R 123 0 R 127 0 R 124 0 R 127 0 R 127 0 R 125 0 R 127 0 R 126 0 R 127 0 R 127 0 R 128 0 R 128 0 R 128 0 R 128 0 R 128 0 R 128 0 R 128 0 R 128 0 R 129 0 R 131 0 R 131 0 R 131 0 R 131 0 R 131 0 R 131 0 R 132 0 R 134 0 R 134 0 R 134 0 R 134 0 R 134 0 R 134 0 R 134 0 R 135 0 R 135 0 R 137 0 R 137 0 R 137 0 R 138 0 R 140 0 R 141 0 R 143 0 R 143 0 R 143 0 R 144 0 R 146 0 R 146 0 R 146 0 R 147 0 R 149 0 R 149 0 R 150 0 R 152 0 R 152 0 R 152 0 R 152 0 R 152 0 R 152 0 R 153 0 R 153 0 R 153 0 R 155 0 R 155 0 R 156 0 R 156 0 R 158 0 R 158 0 R 159 0 R 159 0 R 161 0 R 161 0 R 161 0 R 162 0 R 164 0 R 164 0 R 164 0 R 164 0 R 164 0 R 164 0 R 165 0 R 165 0 R 167 0 R 168 0 R 168 0 R 170 0 R 170 0 R 170 0 R 170 0 R 170 0 R 170 0 R 171 0 R 171 0 R 173 0 R 173 0 R 173 0 R 173 0 R 173 0 R 173 0 R 174 0 R 176 0 R 176 0 R 177 0 R 177 0 R 177 0 R 177 0 R 179 0 R 180 0 R 183 0 R 184 0 R 185 0 R 185 0 R 185 0 R 185 0 R 185 0 R 185 0 R 185 0 R 185 0 R 187 0 R 187 0 R 187 0 R 186 0 R 187 0 R 189 0 R 190 0 R 190 0 R 190 0 R 190 0 R 192 0 R 192 0 R 192 0 R 194 0 R 194 0 R 194 0 R 193 0 R 194 0 R 194 0 R 194 0 R 196 0 R 196 0 R 196 0 R 196 0 R 196 0 R 196 0 R 197 0 R 197 0 R 199 0 R 199 0 R 199 0 R 200 0 R 202 0 R 202 0 R 202 0 R 203 0 R 203 0 R 206 0 R 206 0 R 206 0 R 207 0 R 207 0 R 207 0 R 208 0 R 210 0 R 210 0 R 210 0 R 210 0 R 210 0 R 211 0 R 213 0 R 213 0 R 213 0 R 213 0 R 213 0 R 214 0 R 216 0 R 216 0 R 216 0 R 216 0 R 216 0 R 217 0 R 219 0 R 219 0 R 219 0 R 219 0 R 219 0 R 220 0 R 222 0 R 222 0 R 222 0 R 222 0 R 222 0 R 223 0 R 225 0 R 225 0 R 225 0 R 225 0 R 225 0 R 226 0 R 228 0 R 228 0 R 228 0 R 229 0 R 231 0 R 231 0 R 231 0 R 231 0 R 231 0 R 232 0 R 234 0 R 234 0 R 234 0 R 234 0 R 234 0 R 235 0 R 237 0 R 237 0 R 237 0 R 237 0 R 237 0 R 238 0 R 240 0 R 240 0 R 240 0 R 240 0 R 240 0 R 241 0 R 243 0 R 243 0 R 243 0 R 243 0 R 243 0 R 244 0 R 248 0 R 248 0 R 248 0 R 249 0 R 251 0 R 251 0 R 251 0 R 252 0 R 254 0 R 254 0 R 254 0 R 254 0 R 254 0 R 255 0 R 257 0 R 257 0 R 257 0 R 257 0 R 257 0 R 258 0 R 260 0 R 260 0 R 260 0 R 260 0 R 260 0 R 261 0 R 263 0 R 263 0 R 263 0 R 263 0 R 263 0 R 264 0 R 266 0 R 266 0 R 266 0 R 266 0 R 266 0 R 267 0 R 269 0 R 269 0 R 269 0 R 269 0 R 269 0 R 270 0 R 272 0 R 272 0 R 272 0 R 272 0 R 272 0 R 273 0 R 275 0 R 275 0 R 275 0 R 275 0 R 275 0 R 276 0 R 278 0 R 278 0 R 278 0 R 278 0 R 278 0 R 279 0 R 281 0 R 281 0 R 281 0 R 281 0 R 281 0 R 282 0 R 284 0 R 284 0 R 284 0 R 284 0 R 284 0 R 285 0 R 290 0 R 291 0 R 293 0 R 293 0 R 293 0 R 293 0 R 293 0 R 293 0 R 292 0 R 293 0 R 293 0 R 295 0 R 296 0 R 296 0 R 296 0 R 296 0 R 296 0 R 296 0 R 296 0 R 296 0 R 296 0 R 298 0 R 299 0 R 299 0 R 299 0 R 299 0 R 299 0 R 299 0 R 299 0 R 299 0 R 301 0 R 306 0 R 302 0 R 306 0 R 303 0 R 306 0 R 306 0 R 306 0 R 306 0 R 304 0 R 306 0 R 305 0 R 306 0 R 307 0 R 307 0 R 307 0 R 309 0 R 311 0 R 311 0 R 310 0 R 311 0 R 311 0 R 311 0 R 311 0 R 313 0 R 314 0 R 316 0 R 315 0 R 316 0 R 316 0 R 319 0 R 328 0 R 320 0 R 328 0 R 321 0 R 328 0 R 328 0 R 328 0 R 322 0 R 328 0 R 323 0 R 328 0 R 324 0 R 328 0 R 328 0 R 325 0 R 328 0 R 328 0 R 326 0 R 328 0 R 327 0 R 328 0 R 328 0 R 329 0 R 330 0 R 334 0 R 334 0 R 331 0 R 334 0 R 334 0 R 334 0 R 332 0 R 334 0 R 334 0 R 334 0 R 333 0 R 334 0 R 334 0 R 336 0 R 337 0 R 337 0 R 337 0 R 339 0 R 340 0 R 340 0 R 340 0 R 340 0 R 340 0 R 343 0 R 344 0 R 345 0 R 348 0 R 348 0 R 346 0 R 348 0 R 348 0 R 348 0 R 347 0 R 348 0 R 348 0 R 348 0 R 348 0 R 348 0 R 351 0 R 352 0 R 355 0 R 355 0 R 355 0 R 355 0 R 355 0 R 355 0 R 355 0 R 355 0 R 353 0 R 353 0 R 355 0 R 354 0 R 355 0 R 355 0 R 358 0 R 359 0 R 360 0 R 362 0 R 364 0 R 364 0 R 364 0 R 363 0 R 364 0 R 366 0 R 368 0 R 367 0 R 368 0 R 370 0 R 372 0 R 372 0 R 372 0 R 372 0 R 372 0 R 371 0 R 372 0 R 372 0 R 372 0 R 375 0 R 381 0 R 381 0 R 381 0 R 381 0 R 376 0 R 381 0 R 381 0 R 381 0 R 381 0 R 377 0 R 381 0 R 381 0 R 378 0 R 381 0 R 381 0 R 381 0 R 381 0 R 379 0 R 381 0 R 381 0 R 381 0 R 380 0 R 381 0 R 381 0 R 381 0 R 382 0 R 385 0 R 385 0 R 383 0 R 385 0 R 384 0 R 385 0 R 385 0 R 386 0 R 386 0 R 386 0 R 387 0 R 388 0 R 388 0 R 390 0 R 391 0 R 391 0 R 393 0 R 395 0 R 394 0 R 395 0 R 395 0 R 397 0 R 398 0 R 400 0 R 402 0 R 401 0 R 402 0 R 402 0 R 404 0 R 407 0 R 405 0 R 407 0 R 406 0 R 409 0 R 411 0 R 410 0 R 411 0 R 414 0 R 414 0 R 414 0 R 414 0 R 414 0 R 414 0 R 414 0 R 415 0 R 418 0 R 416 0 R 418 0 R 418 0 R 417 0 R 418 0 R 418 0 R] +[19 0 R 19 0 R 20 0 R 22 0 R 22 0 R 25 0 R 26 0 R 26 0 R 29 0 R 30 0 R 30 0 R 30 0 R 30 0 R 32 0 R 33 0 R 33 0 R 35 0 R 36 0 R 36 0 R 36 0 R 36 0 R 39 0 R 40 0 R 41 0 R 43 0 R 44 0 R 46 0 R 46 0 R 47 0 R 47 0 R 49 0 R 50 0 R 50 0 R 50 0 R 50 0 R 50 0 R 52 0 R 53 0 R 53 0 R 53 0 R 56 0 R 56 0 R 56 0 R 56 0 R 56 0 R 56 0 R 57 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 58 0 R 59 0 R 61 0 R 61 0 R 61 0 R 60 0 R 61 0 R 63 0 R 64 0 R 64 0 R 64 0 R 64 0 R 64 0 R 64 0 R 64 0 R 64 0 R 64 0 R 64 0 R 67 0 R 68 0 R 68 0 R 68 0 R 68 0 R 69 0 R 70 0 R 72 0 R 73 0 R 75 0 R 77 0 R 77 0 R 76 0 R 77 0 R 79 0 R 82 0 R 82 0 R 80 0 R 82 0 R 81 0 R 82 0 R 84 0 R 88 0 R 85 0 R 88 0 R 86 0 R 88 0 R 87 0 R 87 0 R 90 0 R 91 0 R 91 0 R 93 0 R 95 0 R 94 0 R 95 0 R 95 0 R 103 0 R 98 0 R 103 0 R 99 0 R 103 0 R 100 0 R 103 0 R 101 0 R 103 0 R 102 0 R 103 0 R 103 0 R 103 0 R 104 0 R 108 0 R 105 0 R 108 0 R 108 0 R 106 0 R 108 0 R 107 0 R 108 0 R 108 0 R 109 0 R 109 0 R 109 0 R 109 0 R 109 0 R 109 0 R 109 0 R 109 0 R 110 0 R 112 0 R 112 0 R 112 0 R 112 0 R 112 0 R 112 0 R 113 0 R 115 0 R 115 0 R 115 0 R 115 0 R 115 0 R 115 0 R 115 0 R 116 0 R 116 0 R 118 0 R 118 0 R 118 0 R 119 0 R 121 0 R 122 0 R 124 0 R 124 0 R 124 0 R 125 0 R 127 0 R 127 0 R 127 0 R 128 0 R 130 0 R 130 0 R 131 0 R 133 0 R 133 0 R 133 0 R 133 0 R 133 0 R 133 0 R 134 0 R 134 0 R 134 0 R 136 0 R 136 0 R 137 0 R 137 0 R 139 0 R 139 0 R 140 0 R 140 0 R 142 0 R 142 0 R 142 0 R 143 0 R 145 0 R 145 0 R 145 0 R 145 0 R 145 0 R 145 0 R 146 0 R 146 0 R 148 0 R 149 0 R 149 0 R 151 0 R 151 0 R 151 0 R 151 0 R 151 0 R 151 0 R 152 0 R 152 0 R 154 0 R 154 0 R 154 0 R 154 0 R 154 0 R 154 0 R 155 0 R 157 0 R 157 0 R 158 0 R 158 0 R 158 0 R 158 0 R 160 0 R 161 0 R 164 0 R 165 0 R 166 0 R 166 0 R 166 0 R 166 0 R 166 0 R 166 0 R 166 0 R 166 0 R 168 0 R 168 0 R 168 0 R 167 0 R 168 0 R 170 0 R 171 0 R 171 0 R 171 0 R 171 0 R 173 0 R 173 0 R 173 0 R 174 0 R 174 0 R 174 0 R 174 0 R 176 0 R 176 0 R 176 0 R 176 0 R 176 0 R 176 0 R 177 0 R 177 0 R 179 0 R 179 0 R 179 0 R 180 0 R 182 0 R 182 0 R 182 0 R 183 0 R 183 0 R 186 0 R 186 0 R 186 0 R 187 0 R 187 0 R 187 0 R 188 0 R 190 0 R 190 0 R 190 0 R 190 0 R 190 0 R 191 0 R 193 0 R 193 0 R 193 0 R 193 0 R 193 0 R 194 0 R 196 0 R 196 0 R 196 0 R 196 0 R 196 0 R 197 0 R 199 0 R 199 0 R 199 0 R 199 0 R 199 0 R 200 0 R 202 0 R 202 0 R 202 0 R 202 0 R 202 0 R 203 0 R 205 0 R 205 0 R 205 0 R 205 0 R 205 0 R 206 0 R 208 0 R 208 0 R 208 0 R 209 0 R 211 0 R 211 0 R 211 0 R 211 0 R 211 0 R 212 0 R 214 0 R 214 0 R 214 0 R 214 0 R 214 0 R 215 0 R 217 0 R 217 0 R 217 0 R 217 0 R 217 0 R 218 0 R 220 0 R 220 0 R 220 0 R 220 0 R 220 0 R 221 0 R 223 0 R 223 0 R 223 0 R 223 0 R 223 0 R 224 0 R 228 0 R 228 0 R 228 0 R 229 0 R 231 0 R 231 0 R 231 0 R 232 0 R 234 0 R 234 0 R 234 0 R 234 0 R 234 0 R 235 0 R 237 0 R 237 0 R 237 0 R 237 0 R 237 0 R 238 0 R 240 0 R 240 0 R 240 0 R 240 0 R 240 0 R 241 0 R 243 0 R 243 0 R 243 0 R 243 0 R 243 0 R 244 0 R 246 0 R 246 0 R 246 0 R 246 0 R 246 0 R 247 0 R 249 0 R 249 0 R 249 0 R 249 0 R 249 0 R 250 0 R 252 0 R 252 0 R 252 0 R 252 0 R 252 0 R 253 0 R 255 0 R 255 0 R 255 0 R 255 0 R 255 0 R 256 0 R 258 0 R 258 0 R 258 0 R 258 0 R 258 0 R 259 0 R 261 0 R 261 0 R 261 0 R 261 0 R 261 0 R 262 0 R 264 0 R 264 0 R 264 0 R 264 0 R 264 0 R 265 0 R 270 0 R 271 0 R 273 0 R 273 0 R 273 0 R 273 0 R 272 0 R 273 0 R 273 0 R 273 0 R 273 0 R 273 0 R 273 0 R 273 0 R 273 0 R 275 0 R 277 0 R 276 0 R 276 0 R 277 0 R 278 0 R 278 0 R 278 0 R 280 0 R 284 0 R 284 0 R 281 0 R 284 0 R 284 0 R 284 0 R 282 0 R 282 0 R 284 0 R 283 0 R 284 0 R 287 0 R 288 0 R 292 0 R 292 0 R 289 0 R 292 0 R 292 0 R 290 0 R 292 0 R 291 0 R 292 0 R 292 0 R 292 0 R 293 0 R 294 0 R 298 0 R 298 0 R 295 0 R 298 0 R 298 0 R 298 0 R 296 0 R 298 0 R 297 0 R 298 0 R 298 0 R 298 0 R 298 0 R 298 0 R 298 0 R 298 0 R 298 0 R 301 0 R 302 0 R 305 0 R 303 0 R 305 0 R 305 0 R 305 0 R 304 0 R 305 0 R 305 0 R 305 0 R 305 0 R 305 0 R 306 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 307 0 R 309 0 R 309 0 R 308 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 309 0 R 310 0 R 313 0 R 313 0 R 313 0 R 313 0 R 311 0 R 313 0 R 313 0 R 313 0 R 313 0 R 313 0 R 312 0 R 313 0 R 313 0 R 314 0 R 318 0 R 315 0 R 318 0 R 316 0 R 318 0 R 318 0 R 317 0 R 318 0 R 318 0 R 319 0 R 319 0 R 319 0 R 320 0 R 321 0 R 321 0 R 323 0 R 324 0 R 324 0 R 326 0 R 328 0 R 327 0 R 328 0 R 328 0 R 330 0 R 331 0 R 333 0 R 335 0 R 334 0 R 335 0 R 335 0 R 337 0 R 340 0 R 338 0 R 340 0 R 339 0 R 342 0 R 344 0 R 343 0 R 344 0 R 347 0 R 347 0 R 347 0 R 347 0 R 347 0 R 347 0 R 347 0 R 348 0 R 350 0 R 349 0 R 349 0 R 350 0 R 350 0 R] endobj 19 0 obj -<>]/K[0 1]/Pg 457 0 R>> +<>]/K[0 1]/Pg 389 0 R>> endobj 20 0 obj -<> +<> endobj 21 0 obj <><>]/K[]>> endobj 22 0 obj -<><>]/K[3 4]/Pg 457 0 R>> +<><>]/K[3 4]/Pg 389 0 R>> endobj 23 0 obj <> @@ -74,10 +74,10 @@ endobj <>]/K[]>> endobj 25 0 obj -<> +<> endobj 26 0 obj -<>]/K[25 0 R 6 7]/Pg 457 0 R>> +<>]/K[25 0 R 6 7]/Pg 389 0 R>> endobj 27 0 obj <> @@ -86,1299 +86,1095 @@ endobj <><>]/K[]>> endobj 29 0 obj -<> +<> endobj 30 0 obj -<><>]/K[29 0 R 9 10 11 12]/Pg 457 0 R>> +<><>]/K[29 0 R 9 10 11 12]/Pg 389 0 R>> endobj 31 0 obj <> endobj 32 0 obj -<>]/K[13]/Pg 457 0 R>> +<>]/K[13]/Pg 389 0 R>> endobj 33 0 obj -<>]/K[14 15]/Pg 457 0 R>> +<>]/K[14 15]/Pg 389 0 R>> endobj 34 0 obj <> endobj 35 0 obj -<><>]/K[16]/Pg 457 0 R>> +<><>]/K[16]/Pg 389 0 R>> endobj 36 0 obj -<><>]/K[17 18 19 20]/Pg 457 0 R>> +<><>]/K[17 18 19 20]/Pg 389 0 R>> endobj 37 0 obj <> endobj 38 0 obj -<> +<> endobj 39 0 obj -<> +<> endobj 40 0 obj -<><>]/K[22]/Pg 457 0 R>> +<><>]/K[22]/Pg 389 0 R>> endobj 41 0 obj -<><>]/K[23]/Pg 457 0 R>> +<><>]/K[23]/Pg 389 0 R>> endobj 42 0 obj <> endobj 43 0 obj -<>]/K[24]/Pg 457 0 R>> +<>]/K[24]/Pg 389 0 R>> endobj 44 0 obj -<>]/K[25]/Pg 457 0 R>> +<>]/K[25]/Pg 389 0 R>> endobj 45 0 obj <> endobj 46 0 obj -<><>]/K[26 27]/Pg 457 0 R>> +<><>]/K[26 27]/Pg 389 0 R>> endobj 47 0 obj -<><>]/K[28 29]/Pg 457 0 R>> +<><>]/K[28 29]/Pg 389 0 R>> endobj 48 0 obj <> endobj 49 0 obj -<>]/K[30]/Pg 457 0 R>> +<>]/K[30]/Pg 389 0 R>> endobj 50 0 obj -<>]/K[31 32 33 34 35]/Pg 457 0 R>> +<>]/K[31 32 33 34 35]/Pg 389 0 R>> endobj 51 0 obj <> endobj 52 0 obj -<><>]/K[36]/Pg 457 0 R>> +<><>]/K[36]/Pg 389 0 R>> endobj 53 0 obj -<><>]/K[37 38 39]/Pg 457 0 R>> +<><>]/K[37 38 39]/Pg 389 0 R>> endobj 54 0 obj <> endobj 55 0 obj -<> +<> endobj 56 0 obj -<> +<> endobj 57 0 obj -<> +<> endobj 58 0 obj -<> +<>]/K[47 48 49 50 51 52 53 54 55 56 57 58 59]/Pg 389 0 R>> endobj 59 0 obj -<> +<> endobj 60 0 obj -<>]/K[55 56 57 58 59 60 61 62 63 64 65 66 67]/Pg 457 0 R>> +<> endobj 61 0 obj -<> +<> endobj 62 0 obj -<> +<> endobj 63 0 obj -<> +<> endobj 64 0 obj -<> +<> endobj 65 0 obj -<> +<> endobj 66 0 obj -<> +<>]/K[62 0 R 65 0 R]>> endobj 67 0 obj -<> +<> endobj 68 0 obj -<> +<> endobj 69 0 obj -<> +<><>]/K[82]/Pg 389 0 R>> endobj 70 0 obj -<> +<><>]/K[83]/Pg 389 0 R>> endobj 71 0 obj -<> +<> endobj 72 0 obj -<> +<>]/K[84]/Pg 389 0 R>> endobj 73 0 obj -<> +<>]/K[85]/Pg 389 0 R>> endobj 74 0 obj -<> +<> endobj 75 0 obj -<> +<><>]/K[86]/Pg 389 0 R>> endobj 76 0 obj -<> +<> endobj 77 0 obj -<> +<><>]/K[87 88 76 0 R 90]/Pg 389 0 R>> endobj 78 0 obj -<> +<> endobj 79 0 obj -<> +<>]/K[91]/Pg 389 0 R>> endobj 80 0 obj -<> +<> endobj 81 0 obj -<> +<> endobj 82 0 obj -<> +<>]/K[92 93 80 0 R 95 81 0 R 97]/Pg 389 0 R>> endobj 83 0 obj -<> +<> endobj 84 0 obj -<> +<><>]/K[98]/Pg 389 0 R>> endobj 85 0 obj -<>]/K[63 0 R 66 0 R 70 0 R 73 0 R 76 0 R 79 0 R 84 0 R]>> +<> endobj 86 0 obj -<> +<> endobj 87 0 obj -<> +<> endobj 88 0 obj -<><>]/K[124]/Pg 457 0 R>> +<><>]/K[99 85 0 R 101 86 0 R 103 87 0 R]/Pg 389 0 R>> endobj 89 0 obj -<><>]/K[125]/Pg 457 0 R>> +<> endobj 90 0 obj -<> +<>]/K[106]/Pg 389 0 R>> endobj 91 0 obj -<>]/K[126]/Pg 457 0 R>> +<>]/K[107 108]/Pg 389 0 R>> endobj 92 0 obj -<>]/K[127]/Pg 457 0 R>> +<> endobj 93 0 obj -<> +<><>]/K[109]/Pg 389 0 R>> endobj 94 0 obj -<><>]/K[128]/Pg 457 0 R>> +<> endobj 95 0 obj -<> +<><>]/K[110 94 0 R 112 113]/Pg 389 0 R>> endobj 96 0 obj -<><>]/K[129 130 95 0 R 132]/Pg 457 0 R>> +<> endobj 97 0 obj -<> +<> endobj 98 0 obj -<>]/K[133]/Pg 457 0 R>> +<> endobj 99 0 obj -<> +<> endobj 100 0 obj -<> +<> endobj 101 0 obj -<>]/K[134 135 99 0 R 137 100 0 R 139]/Pg 457 0 R>> +<> endobj 102 0 obj -<> +<> endobj 103 0 obj -<><>]/K[140]/Pg 457 0 R>> +<> endobj 104 0 obj -<> +<> endobj 105 0 obj -<> +<> endobj 106 0 obj -<> +<> endobj 107 0 obj -<><>]/K[141 104 0 R 143 105 0 R 145 106 0 R]/Pg 457 0 R>> +<> endobj 108 0 obj -<> +<> endobj 109 0 obj -<>]/K[148]/Pg 457 0 R>> +<><>]/K[137 138 139 140 141 142 143 144]/Pg 389 0 R>> endobj 110 0 obj -<>]/K[149 150]/Pg 457 0 R>> +<><>]/K[145]/Pg 389 0 R>> endobj 111 0 obj -<> +<> endobj 112 0 obj -<><>]/K[151]/Pg 457 0 R>> +<>]/K[146 147 148 149 150 151]/Pg 389 0 R>> endobj 113 0 obj -<> +<>]/K[152]/Pg 389 0 R>> endobj 114 0 obj -<><>]/K[152 113 0 R 154 155]/Pg 457 0 R>> +<> endobj 115 0 obj -<> +<><>]/K[153 154 155 156 157 158 159]/Pg 389 0 R>> endobj 116 0 obj -<> +<><>]/K[160 161]/Pg 389 0 R>> endobj 117 0 obj -<> +<> endobj 118 0 obj -<> +<>]/K[162 163 164]/Pg 389 0 R>> endobj 119 0 obj -<> +<>]/K[165]/Pg 389 0 R>> endobj 120 0 obj -<> +<> endobj 121 0 obj -<> +<><>]/K[166]/Pg 389 0 R>> endobj 122 0 obj -<> +<><>]/K[167]/Pg 389 0 R>> endobj 123 0 obj -<> +<> endobj 124 0 obj -<> +<>]/K[168 169 170]/Pg 389 0 R>> endobj 125 0 obj -<> +<>]/K[171]/Pg 389 0 R>> endobj 126 0 obj -<> +<> endobj 127 0 obj -<> +<><>]/K[172 173 174]/Pg 389 0 R>> endobj 128 0 obj -<><>]/K[179 180 181 182 183 184 185 186]/Pg 457 0 R>> +<><>]/K[175]/Pg 389 0 R>> endobj 129 0 obj -<><>]/K[187]/Pg 457 0 R>> +<> endobj 130 0 obj -<> +<>]/K[176 177]/Pg 389 0 R>> endobj 131 0 obj -<>]/K[188 189 190 191 192 193]/Pg 457 0 R>> +<>]/K[178]/Pg 389 0 R>> endobj 132 0 obj -<>]/K[194]/Pg 457 0 R>> +<> endobj 133 0 obj -<> +<><>]/K[179 180 181 182 183 184]/Pg 389 0 R>> endobj 134 0 obj -<><>]/K[195 196 197 198 199 200 201]/Pg 457 0 R>> +<><>]/K[185 186 187]/Pg 389 0 R>> endobj 135 0 obj -<><>]/K[202 203]/Pg 457 0 R>> +<> endobj 136 0 obj -<> +<>]/K[188 189]/Pg 389 0 R>> endobj 137 0 obj -<>]/K[204 205 206]/Pg 457 0 R>> +<>]/K[190 191]/Pg 389 0 R>> endobj 138 0 obj -<>]/K[207]/Pg 457 0 R>> +<> endobj 139 0 obj -<> +<><>]/K[192 193]/Pg 389 0 R>> endobj 140 0 obj -<><>]/K[208]/Pg 457 0 R>> +<><>]/K[194 195]/Pg 389 0 R>> endobj 141 0 obj -<><>]/K[209]/Pg 457 0 R>> +<> endobj 142 0 obj -<> +<>]/K[196 197 198]/Pg 389 0 R>> endobj 143 0 obj -<>]/K[210 211 212]/Pg 457 0 R>> +<>]/K[199]/Pg 389 0 R>> endobj 144 0 obj -<>]/K[213]/Pg 457 0 R>> +<> endobj 145 0 obj -<> +<><>]/K[200 201 202 203 204 205]/Pg 389 0 R>> endobj 146 0 obj -<><>]/K[214 215 216]/Pg 457 0 R>> +<><>]/K[206 207]/Pg 389 0 R>> endobj 147 0 obj -<><>]/K[217]/Pg 457 0 R>> +<> endobj 148 0 obj -<> +<>]/K[208]/Pg 389 0 R>> endobj 149 0 obj -<>]/K[218 219]/Pg 457 0 R>> +<>]/K[209 210]/Pg 389 0 R>> endobj 150 0 obj -<>]/K[220]/Pg 457 0 R>> +<> endobj 151 0 obj -<> +<><>]/K[211 212 213 214 215 216]/Pg 389 0 R>> endobj 152 0 obj -<><>]/K[221 222 223 224 225 226]/Pg 457 0 R>> +<><>]/K[217 218]/Pg 389 0 R>> endobj 153 0 obj -<><>]/K[227 228 229]/Pg 457 0 R>> +<> endobj 154 0 obj -<> +<>]/K[219 220 221 222 223 224]/Pg 389 0 R>> endobj 155 0 obj -<>]/K[230 231]/Pg 457 0 R>> +<>]/K[225]/Pg 389 0 R>> endobj 156 0 obj -<>]/K[232 233]/Pg 457 0 R>> +<> endobj 157 0 obj -<> +<><>]/K[226 227]/Pg 389 0 R>> endobj 158 0 obj -<><>]/K[234 235]/Pg 457 0 R>> +<><>]/K[228 229 230 231]/Pg 389 0 R>> endobj 159 0 obj -<><>]/K[236 237]/Pg 457 0 R>> +<> endobj 160 0 obj -<> +<>]/K[232]/Pg 389 0 R>> endobj 161 0 obj -<>]/K[238 239 240]/Pg 457 0 R>> +<>]/K[233]/Pg 389 0 R>> endobj 162 0 obj -<>]/K[241]/Pg 457 0 R>> +<> endobj 163 0 obj -<> +<> endobj 164 0 obj -<><>]/K[242 243 244 245 246 247]/Pg 457 0 R>> +<> endobj 165 0 obj -<><>]/K[248 249]/Pg 457 0 R>> +<> endobj 166 0 obj -<> +<><>]/K[236 237 238 239 240 241 242 243]/Pg 389 0 R>> endobj 167 0 obj -<>]/K[250]/Pg 457 0 R>> +<> endobj 168 0 obj -<>]/K[251 252]/Pg 457 0 R>> +<><>]/K[244 245 246 167 0 R 248]/Pg 389 0 R>> endobj 169 0 obj -<> +<> endobj 170 0 obj -<><>]/K[253 254 255 256 257 258]/Pg 457 0 R>> +<>]/K[249]/Pg 389 0 R>> endobj 171 0 obj -<><>]/K[259 260]/Pg 457 0 R>> +<>]/K[250 251 252 253]/Pg 389 0 R>> endobj 172 0 obj -<> +<> endobj 173 0 obj -<>]/K[261 262 263 264 265 266]/Pg 457 0 R>> +<><>]/K[254 255 256]/Pg 389 0 R>> endobj 174 0 obj -<>]/K[267]/Pg 457 0 R>> +<><>]/K[257 258 259 260]/Pg 389 0 R>> endobj 175 0 obj -<> +<> endobj 176 0 obj -<><>]/K[268 269]/Pg 457 0 R>> +<>]/K[261 262 263 264 265 266]/Pg 389 0 R>> endobj 177 0 obj -<><>]/K[270 271 272 273]/Pg 457 0 R>> +<>]/K[267 268]/Pg 389 0 R>> endobj 178 0 obj -<> +<> endobj 179 0 obj -<>]/K[274]/Pg 457 0 R>> +<><>]/K[269 270 271]/Pg 389 0 R>> endobj 180 0 obj -<>]/K[275]/Pg 457 0 R>> +<><>]/K[272]/Pg 389 0 R>> endobj 181 0 obj -<> +<> endobj 182 0 obj -<> +<>]/K[273 274 275]/Pg 389 0 R>> endobj 183 0 obj -<> +<>]/K[276 277]/Pg 389 0 R>> endobj 184 0 obj -<> +<> endobj 185 0 obj -<><>]/K[278 279 280 281 282 283 284 285]/Pg 457 0 R>> +<> endobj 186 0 obj -<> +<> endobj 187 0 obj -<><>]/K[286 287 288 186 0 R 290]/Pg 457 0 R>> +<><>]/K[281 282 283]/Pg 389 0 R>> endobj 188 0 obj -<> +<><>]/K[284]/Pg 389 0 R>> endobj 189 0 obj -<>]/K[291]/Pg 457 0 R>> +<> endobj 190 0 obj -<>]/K[292 293 294 295]/Pg 457 0 R>> +<>]/K[285 286 287 288 289]/Pg 389 0 R>> endobj 191 0 obj -<> +<>]/K[290]/Pg 389 0 R>> endobj 192 0 obj -<><>]/K[296 297 298]/Pg 457 0 R>> +<> endobj 193 0 obj -<> +<><>]/K[291 292 293 294 295]/Pg 389 0 R>> endobj 194 0 obj -<><>]/K[299 300 301 193 0 R 303 304 305]/Pg 457 0 R>> +<><>]/K[296]/Pg 389 0 R>> endobj 195 0 obj -<> +<> endobj 196 0 obj -<>]/K[306 307 308 309 310 311]/Pg 457 0 R>> +<>]/K[297 298 299 300 301]/Pg 389 0 R>> endobj 197 0 obj -<>]/K[312 313]/Pg 457 0 R>> +<>]/K[302]/Pg 389 0 R>> endobj 198 0 obj -<> +<> endobj 199 0 obj -<><>]/K[314 315 316]/Pg 457 0 R>> +<><>]/K[303 304 305 306 307]/Pg 389 0 R>> endobj 200 0 obj -<><>]/K[317]/Pg 457 0 R>> +<><>]/K[308]/Pg 389 0 R>> endobj 201 0 obj -<> +<> endobj 202 0 obj -<>]/K[318 319 320]/Pg 457 0 R>> +<>]/K[309 310 311 312 313]/Pg 389 0 R>> endobj 203 0 obj -<>]/K[321 322]/Pg 457 0 R>> +<>]/K[314]/Pg 389 0 R>> endobj 204 0 obj -<> +<> endobj 205 0 obj -<> +<><>]/K[315 316 317 318 319]/Pg 389 0 R>> endobj 206 0 obj -<> +<><>]/K[320]/Pg 389 0 R>> endobj 207 0 obj -<><>]/K[326 327 328]/Pg 457 0 R>> +<> endobj 208 0 obj -<><>]/K[329]/Pg 457 0 R>> +<>]/K[321 322 323]/Pg 389 0 R>> endobj 209 0 obj -<> +<>]/K[324]/Pg 389 0 R>> endobj 210 0 obj -<>]/K[330 331 332 333 334]/Pg 457 0 R>> +<> endobj 211 0 obj -<>]/K[335]/Pg 457 0 R>> +<><>]/K[325 326 327 328 329]/Pg 389 0 R>> endobj 212 0 obj -<> +<><>]/K[330]/Pg 389 0 R>> endobj 213 0 obj -<><>]/K[336 337 338 339 340]/Pg 457 0 R>> +<> endobj 214 0 obj -<><>]/K[341]/Pg 457 0 R>> +<>]/K[331 332 333 334 335]/Pg 389 0 R>> endobj 215 0 obj -<> +<>]/K[336]/Pg 389 0 R>> endobj 216 0 obj -<>]/K[342 343 344 345 346]/Pg 457 0 R>> +<> endobj 217 0 obj -<>]/K[347]/Pg 457 0 R>> +<><>]/K[337 338 339 340 341]/Pg 389 0 R>> endobj 218 0 obj -<> +<><>]/K[342]/Pg 389 0 R>> endobj 219 0 obj -<><>]/K[348 349 350 351 352]/Pg 457 0 R>> +<> endobj 220 0 obj -<><>]/K[353]/Pg 457 0 R>> +<>]/K[343 344 345 346 347]/Pg 389 0 R>> endobj 221 0 obj -<> +<>]/K[348]/Pg 389 0 R>> endobj 222 0 obj -<>]/K[354 355 356 357 358]/Pg 457 0 R>> +<> endobj 223 0 obj -<>]/K[359]/Pg 457 0 R>> +<><>]/K[349 350 351 352 353]/Pg 389 0 R>> endobj 224 0 obj -<> +<><>]/K[354]/Pg 389 0 R>> endobj 225 0 obj -<><>]/K[360 361 362 363 364]/Pg 457 0 R>> +<> endobj 226 0 obj -<><>]/K[365]/Pg 457 0 R>> +<> endobj 227 0 obj -<> +<> endobj 228 0 obj -<>]/K[366 367 368]/Pg 457 0 R>> +<><>]/K[355 356 357]/Pg 389 0 R>> endobj 229 0 obj -<>]/K[369]/Pg 457 0 R>> +<><>]/K[358]/Pg 389 0 R>> endobj 230 0 obj -<> +<> endobj 231 0 obj -<><>]/K[370 371 372 373 374]/Pg 457 0 R>> +<>]/K[359 360 361]/Pg 389 0 R>> endobj 232 0 obj -<><>]/K[375]/Pg 457 0 R>> +<>]/K[362]/Pg 389 0 R>> endobj 233 0 obj -<> +<> endobj 234 0 obj -<>]/K[376 377 378 379 380]/Pg 457 0 R>> +<><>]/K[363 364 365 366 367]/Pg 389 0 R>> endobj 235 0 obj -<>]/K[381]/Pg 457 0 R>> +<><>]/K[368]/Pg 389 0 R>> endobj 236 0 obj -<> +<> endobj 237 0 obj -<><>]/K[382 383 384 385 386]/Pg 457 0 R>> +<>]/K[369 370 371 372 373]/Pg 389 0 R>> endobj 238 0 obj -<><>]/K[387]/Pg 457 0 R>> +<>]/K[374]/Pg 389 0 R>> endobj 239 0 obj -<> +<> endobj 240 0 obj -<>]/K[388 389 390 391 392]/Pg 457 0 R>> +<><>]/K[375 376 377 378 379]/Pg 389 0 R>> endobj 241 0 obj -<>]/K[393]/Pg 457 0 R>> +<><>]/K[380]/Pg 389 0 R>> endobj 242 0 obj -<> +<> endobj 243 0 obj -<><>]/K[394 395 396 397 398]/Pg 457 0 R>> +<>]/K[381 382 383 384 385]/Pg 389 0 R>> endobj 244 0 obj -<><>]/K[399]/Pg 457 0 R>> +<>]/K[386]/Pg 389 0 R>> endobj 245 0 obj -<> +<> endobj 246 0 obj -<> +<><>]/K[387 388 389 390 391]/Pg 389 0 R>> endobj 247 0 obj -<> +<><>]/K[392]/Pg 389 0 R>> endobj 248 0 obj -<><>]/K[400 401 402]/Pg 457 0 R>> +<> endobj 249 0 obj -<><>]/K[403]/Pg 457 0 R>> +<>]/K[393 394 395 396 397]/Pg 389 0 R>> endobj 250 0 obj -<> +<>]/K[398]/Pg 389 0 R>> endobj 251 0 obj -<>]/K[404 405 406]/Pg 457 0 R>> +<> endobj 252 0 obj -<>]/K[407]/Pg 457 0 R>> +<><>]/K[399 400 401 402 403]/Pg 389 0 R>> endobj 253 0 obj -<> +<><>]/K[404]/Pg 389 0 R>> endobj 254 0 obj -<><>]/K[408 409 410 411 412]/Pg 457 0 R>> +<> endobj 255 0 obj -<><>]/K[413]/Pg 457 0 R>> +<>]/K[405 406 407 408 409]/Pg 389 0 R>> endobj 256 0 obj -<> +<>]/K[410]/Pg 389 0 R>> endobj 257 0 obj -<>]/K[414 415 416 417 418]/Pg 457 0 R>> +<> endobj 258 0 obj -<>]/K[419]/Pg 457 0 R>> +<><>]/K[411 412 413 414 415]/Pg 389 0 R>> endobj 259 0 obj -<> +<><>]/K[416]/Pg 389 0 R>> endobj 260 0 obj -<><>]/K[420 421 422 423 424]/Pg 457 0 R>> +<> endobj 261 0 obj -<><>]/K[425]/Pg 457 0 R>> +<>]/K[417 418 419 420 421]/Pg 389 0 R>> endobj 262 0 obj -<> +<>]/K[422]/Pg 389 0 R>> endobj 263 0 obj -<>]/K[426 427 428 429 430]/Pg 457 0 R>> +<> endobj 264 0 obj -<>]/K[431]/Pg 457 0 R>> +<><>]/K[423 424 425 426 427]/Pg 389 0 R>> endobj 265 0 obj -<> +<><>]/K[428]/Pg 389 0 R>> endobj 266 0 obj -<><>]/K[432 433 434 435 436]/Pg 457 0 R>> +<> endobj 267 0 obj -<><>]/K[437]/Pg 457 0 R>> +<> endobj 268 0 obj -<> +<> endobj 269 0 obj -<>]/K[438 439 440 441 442]/Pg 457 0 R>> +<> endobj 270 0 obj -<>]/K[443]/Pg 457 0 R>> +<> endobj 271 0 obj -<> +<> endobj 272 0 obj -<><>]/K[444 445 446 447 448]/Pg 457 0 R>> +<> endobj 273 0 obj -<><>]/K[449]/Pg 457 0 R>> +<> endobj 274 0 obj -<> +<> endobj 275 0 obj -<>]/K[450 451 452 453 454]/Pg 457 0 R>> +<> endobj 276 0 obj -<>]/K[455]/Pg 457 0 R>> +<> endobj 277 0 obj -<> +<> endobj 278 0 obj -<><>]/K[456 457 458 459 460]/Pg 457 0 R>> +<> endobj 279 0 obj -<><>]/K[461]/Pg 457 0 R>> +<> endobj 280 0 obj -<> +<> endobj 281 0 obj -<>]/K[462 463 464 465 466]/Pg 457 0 R>> +<> endobj 282 0 obj -<>]/K[467]/Pg 457 0 R>> +<> endobj 283 0 obj -<> +<> endobj 284 0 obj -<><>]/K[468 469 470 471 472]/Pg 457 0 R>> +<> endobj 285 0 obj -<><>]/K[473]/Pg 457 0 R>> +<> endobj 286 0 obj -<> +<>]/K[274 0 R 279 0 R 285 0 R]>> endobj 287 0 obj -<> +<> endobj 288 0 obj -<> +<> endobj 289 0 obj -<> +<> endobj 290 0 obj -<> +<> endobj 291 0 obj -<> +<> endobj 292 0 obj -<> +<> endobj 293 0 obj -<> +<> endobj 294 0 obj -<> +<> endobj 295 0 obj -<> +<> endobj 296 0 obj -<> +<> endobj 297 0 obj -<> +<> endobj 298 0 obj -<> +<> endobj 299 0 obj -<> +<> endobj 300 0 obj -<> +<>]/K[299 0 R]>> endobj 301 0 obj -<> +<> endobj 302 0 obj -<> +<> endobj 303 0 obj -<> +<> endobj 304 0 obj -<> +<> endobj 305 0 obj -<> +<> endobj 306 0 obj -<> +<> endobj 307 0 obj -<> +<> endobj 308 0 obj -<> +<> endobj 309 0 obj -<> +<> endobj 310 0 obj -<> +<> endobj 311 0 obj -<> +<> endobj 312 0 obj -<> +<> endobj 313 0 obj -<> +<> endobj 314 0 obj -<> +<> endobj 315 0 obj -<> +<> endobj 316 0 obj -<> +<> endobj 317 0 obj -<> +<> endobj 318 0 obj -<>]/K[294 0 R 297 0 R 300 0 R 308 0 R 312 0 R 317 0 R]>> +<> endobj 319 0 obj -<> +<>]/K[555 556 557]/Pg 389 0 R>> endobj 320 0 obj -<> +<><>]/K[558]/Pg 389 0 R>> endobj 321 0 obj -<> +<><>]/K[559 560]/Pg 389 0 R>> endobj 322 0 obj -<> +<> endobj 323 0 obj -<> +<>]/K[561]/Pg 389 0 R>> endobj 324 0 obj -<> +<>]/K[562 563]/Pg 389 0 R>> endobj 325 0 obj -<> +<> endobj 326 0 obj -<> +<><>]/K[564]/Pg 389 0 R>> endobj 327 0 obj -<> +<> endobj 328 0 obj -<> +<><>]/K[565 327 0 R 567 568]/Pg 389 0 R>> endobj 329 0 obj -<> +<> endobj 330 0 obj -<> +<>]/K[569]/Pg 389 0 R>> endobj 331 0 obj -<> +<>]/K[570]/Pg 389 0 R>> endobj 332 0 obj -<> +<> endobj 333 0 obj -<> +<><>]/K[571]/Pg 389 0 R>> endobj 334 0 obj -<> +<> endobj 335 0 obj -<> +<><>]/K[572 334 0 R 574 575]/Pg 389 0 R>> endobj 336 0 obj -<> +<> endobj 337 0 obj -<> +<>]/K[576]/Pg 389 0 R>> endobj 338 0 obj -<> +<> endobj 339 0 obj -<> +<> endobj 340 0 obj -<> +<>]/K[577 338 0 R 579 339 0 R]/Pg 389 0 R>> endobj 341 0 obj -<> +<> endobj 342 0 obj -<>]/K[335 0 R 338 0 R 341 0 R]>> +<><>]/K[581]/Pg 389 0 R>> endobj 343 0 obj -<> +<> endobj 344 0 obj -<> +<><>]/K[582 343 0 R 584]/Pg 389 0 R>> endobj 345 0 obj -<> +<> endobj 346 0 obj -<> +<> endobj 347 0 obj -<> +<>]/K[585 586 587 588 589 590 591]/Pg 389 0 R>> endobj 348 0 obj -<> +<> endobj 349 0 obj -<> +<> endobj 350 0 obj -<>]/K[349 0 R]>> +<> endobj 351 0 obj -<> +<> endobj 352 0 obj -<> +[/ICCBased 409 0 R] endobj 353 0 obj -<> +[389 0 R/XYZ 25.51181 655.8784 0] endobj 354 0 obj -<> +[389 0 R/XYZ 25.51181 804.6376 0] endobj 355 0 obj -<> +[389 0 R/XYZ 25.51181 528.94714 0] endobj 356 0 obj -<> +[389 0 R/XYZ 25.51181 343.01834 0] endobj 357 0 obj -<>]/K[356 0 R]>> +[389 0 R/XYZ 25.51181 176.47998 0] endobj 358 0 obj -<> +[389 0 R/XYZ 211.1811 645.4362 0] endobj 359 0 obj -<> +[389 0 R/XYZ 211.1811 475.61493 0] endobj 360 0 obj -<> +[389 0 R/XYZ 211.1811 332.2605 0] endobj 361 0 obj -<>]/K[358 0 R 359 0 R 360 0 R]>> +[389 0 R/XYZ 211.1811 225.32654 0] endobj 362 0 obj -<> +[389 0 R/XYZ 211.1811 172.85693 0] endobj 363 0 obj -<> +[389 0 R/XYZ 211.1811 133.61444 0] endobj 364 0 obj -<> +[389 0 R/XYZ 211.1811 85.45355 0] endobj 365 0 obj -<> +[389 0 R/XYZ 396.8504 804.6376 0] endobj 366 0 obj -<> +[389 0 R/XYZ 396.8504 765.3951 0] endobj 367 0 obj -<> +<> endobj 368 0 obj -<> +<> endobj 369 0 obj -<> +<> endobj 370 0 obj -<> +<>/ExtGState<>/Font<>>> endobj 371 0 obj -<> +<> endobj 372 0 obj -<> +<>/FontDescriptor 373 0 R/DW 0/W[0 0 500 1 1 581 2 2 505.99997 3 3 428 4 4 561 5 5 489 6 6 427 7 7 652 8 8 619 9 9 250 10 10 905 11 11 551 12 12 598 13 13 561 14 14 456 15 15 358 16 16 325 17 17 613 18 18 706 19 19 256 20 20 641 21 21 244 22 22 322 23 23 616 24 24 521 25 25 577 26 26 736 27 27 558 28 28 716 29 29 529 30 30 777 31 31 716 32 32 545 33 33 504 34 34 514 35 35 614]>> endobj 373 0 obj -<> +<> endobj 374 0 obj -<>]/K[365 0 R 369 0 R 373 0 R]>> +<> endobj 375 0 obj -<> +<>/FontDescriptor 376 0 R/DW 0/W[0 0 500 1 1 486 2 2 389 3 3 783 4 4 401 5 5 268 6 6 353 7 7 250 8 8 307 9 9 477 10 10 518 11 11 489 12 12 519 13 13 357 14 14 478 15 15 521 16 16 447 17 17 219 18 18 266 19 19 276 20 20 475 21 21 486 22 22 503.00003 23 23 489 24 24 444 25 25 499 26 26 564]>> endobj 376 0 obj -<> +<> endobj 377 0 obj -<> +<> endobj 378 0 obj -<> +<>/FontDescriptor 379 0 R/DW 0/W[0 0 500 1 1 390 2 2 447 3 3 264 4 4 428 5 5 316 6 6 220 7 7 250 8 8 457 9 9 542 10 10 505.99997 11 11 310 12 12 504 13 13 531 14 14 538 15 15 519 16 16 220 17 17 702 18 18 500 19 19 236 20 20 515 21 21 372 22 22 747 23 23 271 24 24 493 25 25 560 26 26 661 27 27 587 28 28 528 29 29 268 30 30 490 31 31 588 32 32 465 33 33 512 34 34 465 35 35 596 36 36 323 37 37 424 38 38 790 39 39 497 40 40 695 41 41 363 42 42 465 43 44 298 45 45 485 46 46 236 47 47 1130 48 48 685 49 49 597 50 52 465 53 53 730 54 54 338 55 55 839 56 56 272 57 57 557 58 58 503.00003 59 59 582 60 60 541]>> endobj 379 0 obj -<> +<> endobj 380 0 obj -<> +<> endobj 381 0 obj -<> +<>/FontDescriptor 382 0 R/DW 0/CIDToGIDMap/Identity/W[0 81 602.0508]>> endobj 382 0 obj -<> +<> endobj 383 0 obj -<> +<> endobj 384 0 obj -<> +<>/FontDescriptor 385 0 R/DW 0/W[0 0 280 1 1 652 2 2 626]>> endobj 385 0 obj -<> +<> endobj 386 0 obj -<>]/K[670 671 672]/Pg 457 0 R>> +<> endobj 387 0 obj -<><>]/K[673]/Pg 457 0 R>> +<>/FontDescriptor 388 0 R/DW 0/CIDToGIDMap/Identity/W[0 3 602.0508]>> endobj 388 0 obj -<><>]/K[674 675]/Pg 457 0 R>> +<> endobj 389 0 obj -<> +<> endobj 390 0 obj -<>]/K[676]/Pg 457 0 R>> -endobj -391 0 obj -<>]/K[677 678]/Pg 457 0 R>> -endobj -392 0 obj -<> -endobj -393 0 obj -<><>]/K[679]/Pg 457 0 R>> -endobj -394 0 obj -<> -endobj -395 0 obj -<><>]/K[680 394 0 R 682 683]/Pg 457 0 R>> -endobj -396 0 obj -<> -endobj -397 0 obj -<>]/K[684]/Pg 457 0 R>> -endobj -398 0 obj -<>]/K[685]/Pg 457 0 R>> -endobj -399 0 obj -<> -endobj -400 0 obj -<><>]/K[686]/Pg 457 0 R>> -endobj -401 0 obj -<> -endobj -402 0 obj -<><>]/K[687 401 0 R 689 690]/Pg 457 0 R>> -endobj -403 0 obj -<> -endobj -404 0 obj -<>]/K[691]/Pg 457 0 R>> -endobj -405 0 obj -<> -endobj -406 0 obj -<> -endobj -407 0 obj -<>]/K[692 405 0 R 694 406 0 R]/Pg 457 0 R>> -endobj -408 0 obj -<> -endobj -409 0 obj -<><>]/K[696]/Pg 457 0 R>> -endobj -410 0 obj -<> -endobj -411 0 obj -<><>]/K[697 410 0 R 699]/Pg 457 0 R>> -endobj -412 0 obj -<> -endobj -413 0 obj -<> -endobj -414 0 obj -<>]/K[700 701 702 703 704 705 706]/Pg 457 0 R>> -endobj -415 0 obj -<> -endobj -416 0 obj -<> -endobj -417 0 obj -<> -endobj -418 0 obj -<> -endobj -419 0 obj -<> -endobj -420 0 obj -[/ICCBased 477 0 R] -endobj -421 0 obj -[457 0 R/XYZ 25.51181 655.8784 0] -endobj -422 0 obj -[457 0 R/XYZ 25.51181 804.6376 0] -endobj -423 0 obj -[457 0 R/XYZ 25.51181 505.74435 0] -endobj -424 0 obj -[457 0 R/XYZ 25.51181 177.8302 0] -endobj -425 0 obj -[457 0 R/XYZ 211.1811 781.968 0] -endobj -426 0 obj -[457 0 R/XYZ 211.1811 486.1485 0] -endobj -427 0 obj -[457 0 R/XYZ 211.1811 307.0564 0] -endobj -428 0 obj -[457 0 R/XYZ 211.1811 163.70197 0] -endobj -429 0 obj -[457 0 R/XYZ 396.8504 737.6 0] -endobj -430 0 obj -[457 0 R/XYZ 396.8504 666.58875 0] -endobj -431 0 obj -[457 0 R/XYZ 396.8504 566.3553 0] -endobj -432 0 obj -[457 0 R/XYZ 396.8504 508.35614 0] -endobj -433 0 obj -[457 0 R/XYZ 396.8504 378.05865 0] -endobj -434 0 obj -[457 0 R/XYZ 396.8504 310.29877 0] -endobj -435 0 obj -<> -endobj -436 0 obj -<> -endobj -437 0 obj -<> -endobj -438 0 obj -<>/ExtGState<>/Font<>>> -endobj -439 0 obj -<> -endobj -440 0 obj -<>/FontDescriptor 441 0 R/DW 0/W[0 0 500 1 1 581 2 2 505.99997 3 3 428 4 4 561 5 5 489 6 6 427 7 7 652 8 8 619 9 9 250 10 10 905 11 11 551 12 12 598 13 13 561 14 14 456 15 15 358 16 16 325 17 17 613 18 18 706 19 19 256 20 20 641 21 21 244 22 22 322 23 23 616 24 24 521 25 25 577 26 26 736 27 27 558 28 28 716 29 29 529 30 30 777 31 31 716 32 32 545 33 33 504 34 34 514 35 35 614]>> -endobj -441 0 obj -<> -endobj -442 0 obj -<> -endobj -443 0 obj -<>/FontDescriptor 444 0 R/DW 0/W[0 0 500 1 1 486 2 2 389 3 3 783 4 4 401 5 5 268 6 6 353 7 7 250 8 8 307 9 9 477 10 10 518 11 11 489 12 12 519 13 13 357 14 14 478 15 15 521 16 16 447 17 17 219 18 18 266 19 19 276 20 20 475 21 21 486 22 22 503.00003 23 23 489 24 24 444 25 25 499 26 26 564]>> -endobj -444 0 obj -<> -endobj -445 0 obj -<> -endobj -446 0 obj -<>/FontDescriptor 447 0 R/DW 0/W[0 0 500 1 1 390 2 2 447 3 3 264 4 4 428 5 5 316 6 6 220 7 7 250 8 8 457 9 9 542 10 10 505.99997 11 11 310 12 12 504 13 13 531 14 14 538 15 15 519 16 16 220 17 17 702 18 18 500 19 19 236 20 20 515 21 21 372 22 22 747 23 23 271 24 24 493 25 25 560 26 26 661 27 27 587 28 28 528 29 29 268 30 30 490 31 31 588 32 32 465 33 33 512 34 34 465 35 35 596 36 36 323 37 37 424 38 38 790 39 39 497 40 40 695 41 41 363 42 42 465 43 44 298 45 45 236 46 46 730 47 47 485 48 48 597 49 49 541 50 50 701 51 51 485 52 52 646 53 53 557 54 54 699 55 55 1130 56 56 685 57 59 465 60 60 338 61 61 839 62 62 272 63 63 503.00003 64 64 582 65 65 637]>> -endobj -447 0 obj -<> -endobj -448 0 obj -<> -endobj -449 0 obj -<>/FontDescriptor 450 0 R/DW 0/CIDToGIDMap/Identity/W[0 81 602.0508]>> -endobj -450 0 obj -<> -endobj -451 0 obj -<> -endobj -452 0 obj -<>/FontDescriptor 453 0 R/DW 0/W[0 0 280 1 1 652 2 2 626]>> -endobj -453 0 obj -<> -endobj -454 0 obj -<> -endobj -455 0 obj -<>/FontDescriptor 456 0 R/DW 0/CIDToGIDMap/Identity/W[0 3 602.0508]>> -endobj -456 0 obj -<> -endobj -457 0 obj -<> -endobj -458 0 obj <> stream xœûÿÿÿÿçí endstream endobj -459 0 obj +391 0 obj <> stream xœm“M�Ú0†ïùÓC$ö@ã|Â"„�HöC˪=‡x ‘ˆ%Î�_ůîªBôxÆ3óÛÿñ~šo¥>ó<þ)èƒ{=tÏó—²õ|¯«¡ae^™%Ë)Ú¯¨ítÕ³¡ü¸?ªÚx¾TÕm�<åü/eÇ×Z}%Œ=(z£Ï÷?ksãͰ@v&:JV¦6wOžïÿ⮯µZQèùþAÉ\7ãp½¸¼wº:±¡K­dç:Ñyìë…ɺ2ŽìoÕ”­Ý|º÷†›£ºhŠ‘%‡Öe|­{ÓÝif{"ÉDÞ:É]­®4›†ý< m{ãqHv••´ï`”-¦À ?V�%…_KŸ÷–]�à÷‹–„±Ò’û¶¬¸+Õ•½µBlh]E±;þ�Sl;_ª?egÓà ­…Xˆ�¥ÈR‚bÄ"P‚XJA)(Cf ZXJ]æ™Kг¥ÈõÛ"¶í@(GM×arUÈtý @@ -1386,7 +1182,7 @@ x Ø£7ž³Zñã.µºwÙÇ^Âé>�ôVüµ(m endstream endobj -460 0 obj +392 0 obj <> stream xœ�W{xUÚO(Mèí�Zft¦*âäCY®‹"ØTn•b�R iÒKhCo¹ôš´Ímfrk’6…´éýJÛôh¡¥µ]DT°ºâeequùv]E]žu¿7~‡o÷{Â]EþÈdæÌóžó;ïû;¿ß;|Þôé<>Ÿ/~%=Yš“—ž•Ÿûª4']¶àÅþ”Ð‹Ø ¼Ÿ� ‚Dð¨™<še¯]#„÷ÿ­�¿?šü_&ü�wlö<Ö½ðxÿùOÄC¡¡FÌ ý}ñ/ŒÏˆ^^“¢H–nH‘få¥çiÖ*hrÒSÓòbnÝ-^ô_‹,^´øÙ˜miÒ˜[˜b¶ä(2¤’¼˜5ùyiŠœÜ…<Þ4Ÿ÷P©'¸®ÆS‘îo›S€ÊZ„ÔÌi¦Xñ"f°³fBÔ,ˆrGü&8*ãñy<o^hWs8–åB›á{*t‹äÍ M¹‘w™o˜†M{"¬wzìôËÓ¿ÿNð¼àsáY,ë›1ãâÌgÍze;ëßu¿9,Š™=möG÷°÷â÷žŒ<†§Ï ›“-æmgGƒ—FùìhpÞh;=húaË“àÓÿ£Ä°œ°9ï‚câÐ @@ -1407,19 +1203,19 @@ _ ¿d*(grI4*`ævp76ðžÉkXF\™w'üÓ�N�Ôv�íÔòá¹àúÁÈA¸žƒH|(¸ü‡Ybç6eÝB2iKqú>Z–©Ø½“�ºw5fRÃ/¤ÉĆåC’W‰�{Ó7­��ø«ŠÂÕ…ŽBc‘c†!Ÿwn¯’QøÐï­* È7Gjýƒtog×ðib,¿'ó0•räÕÎ&ñ­û=1ÙÝ}âÏm«7ÔR5Æf¶Ê…�+NR¢Ý ì…þ~þQ ` D†½ß)6•rj§´}ØúÑì£3]ßM@š˜�mE‘Ïì<‚¦Ãc}‡= }TùÚŒØDé–]±eq& ºà°8Wª4kÈõŠ©SÀëé�HA/hÙFK‹Þ¬SBWŽ ^÷±¿Ã“aðíUQ*½ƒ(Ý•$ç ß­¼®#gíY^¤ä,Å”ÚQ\SF™kLLù—ÓУƒÞwÆ$F¢ÿ‚‰¨— endstream endobj -461 0 obj +393 0 obj <> stream xœûÿÿÿ ÛÞ endstream endobj -462 0 obj +394 0 obj <> stream xœm“Mo£0†ïüŠÙƒ¥ô�Å& i£©!AâÐ5ÕöLìIŠldÌ!ÿ~e�I«Õ=óÎxæÅ6ûõv˜?)sÄùâ7‡wÌh%ÎËç¦OÛ9v¨Ý ¢B5©Ãzkä€ÊzWëÖ%ŒÕZ^F…SÎÿR¶xnõw‚ïå88Ó%Œ}´î‚k˜QÂLP+Ô®uWàw cЭÑk c{­JÓùá†$�= }³FÐÁ©ÕÊÆNpô}‘�j¥‹Þ²kúP|¸»ZŸ ,(K�}ÌHßñÜÎ^a»…'R^­BÛê3̦aˆ‡±ï/臢¨Uø¦ÞüKÓ!¤Ñð-]‚ø}\{Œ ¤ŸÏFM hDi}#Ñ6úŒÉ†sÎ ØTUU¾ã?z–SÙñ$¿ÒEÎsQʈD ¢Ñ=Ñ’hYÀ&ãâ‘(Ú*Ö­eœè�´{¢GZeEôD´'ÚÅÌ’è�hG«dD{Ò"U¤ÑdÂÿÎóŠˆüe%Qô)ú#‚ü­¨Ÿðþ8Ï·DÑ_Ì$+ò'Èß"jäoµè/§.¨Uüó~kü ¼�9Z‹Ú…6Þïr«ñv’{Óûªð„+0Ý&O¯Õ_� endstream endobj -463 0 obj +395 0 obj <> stream xœ•–yXç¾Çq0*'™æ(3uÆöÚÛóh‹U{Z}´ˆ­;î¨HE�D @$!,Y&™$“=d�@HÂ6Y, èQqÁWÚ.´·Vko�ÞçÜsÜ'Z«íéÓ{ï?3ï,ÏÌû~¿Ÿß÷ý1'2˜LæŒõéÉÜ\Qz¶8o+77�7o�h_fzJèÑGA4ø²1 Ί``S¸Ñøô1éåodôàË3ÑB³ ÆÑi³ æŒé³ŒññˆWC·Æ#æ„N â5F“Î^“*Hæ®Iåf‹ÒE±‚œ‚Üôýi¢ÙÏG ÞŽ^0oÁÛ ÎÞ–Æ�ý|V³7å @@ -1436,140 +1232,139 @@ Q N�R"/Fe:»Kƒ»URŸ¨¤…âÚ¼+‡züÝÍx©ÇQi÷®«º�ÁR9îþg¸ÏoÔ{pUJ)•Aþ/áöcßqù§d+~–l•%¼섞Ç&w É5(Í ·”»îv^eÁŸ ´v[ý¨§V+wáÞ<£6TÔUªZÇ ÆlÛ[˜™†mß�¹D:o#5³À RëÕ¬úøáz¢�ž�Oö®‰bÿ�lÞ‚ endstream endobj -464 0 obj +396 0 obj <> stream -xœûÿ,�¹ +xœûÿ ~#Ýò endstream endobj -465 0 obj -<> +397 0 obj +<> stream -xœm”MOã@ †ïùÞC$8°Í|$„*Ñ–H=ð!ŠvÏ%ãv#ÑI”�Cÿýjæu[´ÚEïØû±'N¼mn]ûÉ7ægFï<´S_óÍòyÛ%iºjëéÀ~|avìNÖឺ¾­i¹^­}3&iºöõ×äøäó?—ïq9h9 c{HÒô£¿øž®p@±&Z;öc3)»NÒô÷CÓú{RIš>y·l¡¸!™Iš½õm½á‘v�w½d¢Ï�7Qš\S�¢âo}Øv1xsF>¬ý®%/7uâID4{ç}3Œý‘®ba×äxËkï¸oüž®NÅ~3n¦®ûâP$eñ”½‹ÿgþe{`š ðùT(I]Ž>ŽË³ßÏ­; …ëÖñÐmkî·~ÏÉC–eÙœªªªæ!ã?ö"GØç®þ³í£»šÓC–•f•ŽªÈ¡ ÔÊB‰gŽ8 UD¥Å³„Ê n§ î ž ¡ä–Tµ„ª VÈ'•=Áv UÁ†|*4 Ë42(ðYÜ¢„¯„Ÿy„_y%| -|¥Ä�¯OáOá+.v0æ¨\�1o0ZôMF®ˆ -Œ%-â4 f¡ÁX, ÀhÄSfXœg¥Á©Ñ-œè�g±‚g‰yhpZÌQN}ê�£5*×`Ô Ò˜£‘ZÁhÅŒ9¨ sTmÀ˜cÆŒVl`´¨Ó€ÏÊ-à³è¾ŸÅÛ0�O«;tÊfl0G#qÂ'ùÀg¤áCÏ ø¬(y§è’‘wŠ.YðÅ—‚Ê­¼ÕEütå qØUç­QO}Ï~Œ«*®ˆ°Ïç�×µ]ˆŠqYžönP¯Õ_&Èzá +xœm”IOã@Fïþ5Kp`Ò‹@($XÊ�EÍœƒ»’±DÚ–—Cþý¨û+4šAÏUíª×åîôÇëöêÞµ|e*zã¡�úš¯VO».IÓu[OGöã3³c7G‡[êú¶x¤Õf½ñ͘¤éÆ×Ÿ“ã9ç)|hüWB¨A«iÛc’¦ïÍøÉ·t�{¢�c?6ã‰Ôe’¦¿¸šÖß’NÒôÑ»U{ Í ÉBjÐâµoë-�´o¼ë¥}„º‰6äšzŠ¿õq×ÅÅÛÓ0òqã÷-Yd¹©“L"¢ÅšaìOt»$Ç{D^zÇ}ãt17û-¸�ºî“C“¤âSö.þ_ùçÝ‘i!Âç§bIúëÑû©cyÁâ÷SëfÐh±nÝ®æ~çœÜ)¥Ô’ª–¡â?ñBaÙǾþ³ëcº^Ò�R¥]F2‘ŠdA+P’Ìë2PÉHf R k¬Ó Ð#è$oy ¨­QO:{DìT!†z:l€R4ü2¼E‹_ ‚Ÿ½Á¯¼‰ŸÁ¯”uð+$Sü$SüН8st®á˜K63웎&¼"K8j8fXgàh1 ÇâG+™2Ãâ<+Oƒ1â‰=0ð,Ö x–˜‡�g†9šàiæ½3p´ƒ£AçŽVsÌ¥s8Zé<8}ƒÎ-3ì¹…c+ŽØS+s”ü,¾ ¿ ½XùNágá— Éad1ÇL*À¯„Ÿ�¿Óó·jᘫxèät…ãn™óy¯§¾g?ÆK&îp’ÏçÛªk»°*þÅkn¾1½T m- endstream endobj -466 0 obj -<> +398 0 obj +<> stream -xœ�YtTå¶N S®9Ž„sôA¸ÊUQD�&E¤Z(!=¤·™ôÌ$SÏœ©™’> IH›™” !•@PQ:b(ÒT¯÷ÁŸûî[Hѫ׷ÞZY“ÉÌÙvùöÞßÞ¿·×ˆ^ÞÞÞ~ïE…&&GƦ$­ MŒ {iMhxJôŽDÏw‹X‚}J3šdŸíEŽô¢4š¯£yO}•…ÌOù¿Þã<íååÕ3æi//ï‘�?íåõï�žàùèÇÑ=¿n�žäåãíÍ,›º4$46929mA\|ZbdxDò3Cï¦M}eÚKÓ¦N{í™u¡Ï ©õ̪ĸ�¡ÁÉÏÌKIŽˆKLšâåõˆ—·×Ü;¯ ÔOX\u.ʵòÈ‘>Ö�~T3zTãȾQ}¦Ñ�±û„>^Þ^^^^ó==Áh4ŒÇ�nÏ{^z}½æ{Ž[îuÝû]ï*ïï y¤è‘RŸ>ÿ3b玙;—'à}»Ã_øèÛ�&�?²k”jô££‹yìgAÍá˜÷þ¶ìoWßî»Ð÷C¬;õÄa°ð‹'SŸl;f쪱¦±×üÊÇ=5®Ÿ‰»ˆ@âÐSЧ§>�D>BŠI ü©ôg–>óñø¤ Ï®ô×ô°_ïóÖô°{|4#XÕ½÷UÜ‹ÿzJsÀs�‰sŸËö=ï�ç/HSÿwœûÚû…h9p‹+@3¤µˆý‡C#öí­L? ã?Åvv)ÔoÖmÙ�k-Æ@`õ&£Fm¢d»w+›ˆC?îþöÄf÷â* -Û½rWpQ/ÞÚ¸ËYq$ïõÒ(·3F#³êµMŒƒ�í6Dn æ- X6ß}!ŠºY& -Ä7ˆÂH¬>$¥À*¥RvIöÊ«øØN¹1•–Ëù‚g¤ÝÜ£ÞMŸCÀ5öÉ[Âа،ÕDøŽò}єؑÓq‡25Çf2Z?�ùQ¯!Î ôâÚBG(ììL:C|zеßM©,rCÃGE°Zœ²SæJ¢¹]ôF®R!¡¨­Lto‘E#ö½Ý‡5Ý�p†D±BEÊå‘QÎw1MŒÛÝL;FO45år#…Nb¸‚³;xØÉãz·†4)u¹d¢tnV°J�§Í0ÊùG”FÕ\\€|¥Ý¬�ûéš;áK¡Òœ§ÏeøÛ#S‰ù+ÎÁ£ðH×Ç¿Ÿ¡§âu…¹åDyMA}ï÷ Ï�Ÿ†& á™ià{ô@ÙåJ€r¥½ðϘhö¾ÙçÓÆÎf)sò¨lž‚¡õäûè wa}\GGOÅÞRm‘¥ _œ“—@ÄËë> ÀøÏR¨7Svž^¥U�ht ·_w£J§Pæ*¹¤D.Ud«ø9J©J–£3!\€®£q�ê c[|~º-ŒNÅEWKKUT™ºDžŒ‹Â·nÈ&¥Z™IFµé:…Mh &è°àÒÖ .v„÷ñʲ 0ý3¬:º„ÑFk|ÑÜXb/§°hµMi–ùrYº4›ˆ¥[:(xŽfïž?s†ÿš$[ήÚÒòmRëIZG­xýk³³3qd*¥Š&§‹8Xë I‹Ö/ÆgJ8åªËwî%íÅ-,"?^¶\–''E ‘ÉqĦw}{yǹ2J�S&bÇí׉}ï|úvöagá=øUˆµÊerµ§w«[>æ0¨Õº<"N’�»(W-×fhåüƒ -«b5Ž6ðfJ•+ø¨cÜŒÛ]G× âc£Aª¿ŒÃ v¼ÜlË7“MÍí-„½<;ÙFYÄÚø½è9dƒ‚TÈ5"ƒç�Æínôb0jÊFþZƒÄsÈd^¯²+¹ž¬H�¶EØÙÍk³¯¢ÒNÙnøÎÛêJ<Èm¹ñ}X \ïôf-#ãë’ò#4x¾ÊÀµ|,ª¢ÔUtÌd4jŠäFþ2CnY7Înâ ÁsÿÀ:�FGìUY5oáè žL­–‘Ê ’�ÄÒí)¡ÁT``ªy8óÁ+àEb5-Mvw7e='LUçeå�QaQ‰„ÿÚ÷áñ3…î¢rª³~�ÎN4Ve'Û©Â �, U™ˆ}ªrœÞwú|`„P~‹gQ¯Ã\˜ÒQé¨+Ή($Óò­YåDIe¹½DR**¦Jt¡ÄS棩TðF^šb(N¢rîŒ ¥¿r(…]ŒÛÝE»C4[/×_Á›¤.vŒË»õè®ù´Âᤈ>êÞåp’í{íÃZ�¡—–údž‘á�©«ßÃa¯˜�&"ßw£·< ¾®—ßü‚${¢ÂŽûÞèƒ�}X;ÄH…-�ç %1?r((©XǫӟÕ�:•NA*èL:3*œ‰=ñ¡%ݪ‚œ¥8ÖŽüyÎÍH$b6Þ¤àÝÿ*Ú¥,”¼‹£u¼EuK¾%ýy0€Ÿ}Ö‡}³ E8€Ù}�ÙÆÉ¸ÝOaüOÌv'×=Äìæ•Ù‹WP4­¡iR¥TÈm8)ìü0ì}ùgØ»¿”7#G¹z0�O-nvÐ5C¹¦Ïõ2EŠ ÙÉr:tbß‹žÌ–\Ãú`*;BHש«=}þO3úþÛ¼?¨ø]Ã*þB½D/^�ž¶(IiU�¼�8ÔSÒÒJuvìþàŽÝ¾;÷Ÿ“¶nŒÙLb}r¹RC[øØ—ea†ꎺZâ£Þˆ33v‘a(N£Ä¥Jc#ïòÊõf[!)@×¥w½ßõ9Ü&Œ­Lª­­¬¬­MªŒ�MJŠ%ð¼´‘½ÕèÝt‡]zÇçÞ¸,„`ô,Ðb´qдm‚gј>7º>ë%݇+Î|Ž£Ð!¿_Ð#hZ<}â"â�7¬ƒ°o¯~K üQn¬>-ªâÏû×kľ 'ƒ.Ï;›/–öbÊÙUìXaYi©½<µ8>! =2�ÂΖççì´¯"¦Í\ù²etM<…µÆ%eFâáö¸êl;7Õ?*nk þÚåø @Àß�ƒWCfUl%ÙòF`§ÓÕª$ŠÎ”Ò -"6¢°Ín,·•PY•5²âÆ¥Þvf펭£,&{aa2©r�v¡ô•ð7jO8µUµ.;[+a�pÊ–Ô°7rOtªª±÷CçÖ¤�6Ý…uw½OÝõ9uô?}ûFügBPæ¶Çákƒ—`.¼�xÀÃnA zMX\SPc«»þí?î‡ö=…Å�ƇÐÁ¾ÓÉt\L43˜ŠØ­Uƒ<#üy”æ'ËÈUåÙ§Aˆ_ÚEÙ!ýC±0:˜�ŒgÄBnEAnõ -à b?³¸h«4.ggN\f4_,ÉÊMÌRê$DlfL¶Èž±»Ü�ÿQ#%@ï–‰àÎ?— û~÷éÛ}X,„_…j7ÝŸæÿÖàfä(—«ž-ŒÛÝ1¬z¾cÈÑ]Á�âaUÕ¶]¶R²ØºËa#Ìfµ$ŸÂKM¶ì¢rWU…Õ–¥ÕîØ´=$™Ä -äE¾€¿YÄNqx›`Ê�0 "a¤lg'žCGÐá¡ñL€é� -«´|ŒEŸúeóåœo,6Qßý#b8ƒ) §Š[KjöéÆ=¬–zZû°Gÿ‘†Ô+tydœ$xÈÓ½ -‹|M¿§%ªƒTÂÑïéáT«_Ñ_z°Ö©l‚0¡2¡²¦rwy¥¨&žÄIqII”`…Ô©±ÔÞ�RþYD^Ãj`K -år¥ÖŒÃ{<¬aX¹MúÓr›É ¡ÓTY$V“g0(m„Ñh1ç›-6£ÆšËOÝU'w?À¨[ð*^9ÿZ`hz\4eŠ3×Çzæýq·N1ZTQ%¦@Ç+×[ -¬¤ÀØßë Ä pú~ݱ}Ø%v§ÇAá<¬»¥ßAr­’Ä.åÄÄÒÚt˜{ÛyåD›S”On²”gÖåöò^ïš²u]Z@µcsîŠÙxææßtýO<]_2¬ë;™FÆåjæÍez©§Œ—Ãb^}¾x#…6y�¾nÒ™FW Ý4Dõû½/øEÚÊ^tx_¿ -¿tûÀ\Ö.¼Rd¸ #>µ…ÞL‡„1!ƒ~TU¢˜�£6 -¿�`G7`°ˆ„TÞÅýQÓ€`(D'‹63[ÏËJToâˆæ¡™G³‚JkcÈÍ�êO�ㇴ^-‚'t8bߟ®BôWX¬ö¸r6ïó²ÌäBê4Ÿ³¥¶mÇQ¢¨Dk°PzmVæó·%:Û(ä aœ¶Â/öÿŒ÷¤·†;Éö€åº÷¶ì�…XlĆÙB=TãT¿þ÷'ñf¤+ÞlŒíL'ÓÜÜIïÂgÛ;ºtÃü -+;“‚F¢ÇÆýƒ -€4n­Íuš$hZØŸÅÞw¯úÀä'!’»û+µ†²ôXŽ÷K mŽš¿@¶j<ñ7$­lÅNã])1œôì6z ¾e˜ƒþX3¦å0ã$¨åÞ -±7Lmñá½ÿç‰e™ÚÏÜÊá[¾Èf¢×arãé]ð&z^C8<Žíž ï¯Âd§‰i7¬ÎËÓzbbâ†4äc7ç6)­ª¤Èw§úɤJ&ÏÊ8Õ8è�Ó÷îUˆ¾y cáù{ã„áþ òßÑÂdš«ÕŸ�žˆý ¾»vgIïkU”–‡±=UíûâŸÄ^G+Èu8ц>žäb?ÃÓ‡ç¼2?nzñ�ìêc»pÄ�å:‰±‡ÎÆLz}UÌ jW0Mêb;]¾�gaÑgo`ßC{FØæNX¶iõœç³(CG[Rª) °[‡Ïe 7->bcî®ÒªPšm"QjFðçñGaÔÝ àÞ3[VY(ZËÁ¾¿Ü²«õ^'«Lª"+R"J6è¹/ì̲ˆ+]zGÙG'mÕ”`‡Ú‹ª`†Â”Õk}0¦`_]ëß(×ã¤NÆírлãÔ_4®óÊèBÚ¢²æ™smg'ûÕ†ØR™¾ŠQëHìõõ´}@(RŸ¨�w"?xÓOiPé ¸^£ÕëÉ_Ö5¸òÝú�˜&Óqtxh“<ÐCʤˆÜœäØèȄԔŒøœT~àaw†•ûŸþ¬Ü ¦i޳&—ïþ+óÎϽóo`Ç�±BQYZyI]iE¾Ú¨6‘ØYµInÎÇ«ªÏ6îK|aYò†U+Éyó9ØÍÉÏe¬Â5û´ $,à6t¨5TÁËy¦NnÈÖJÕü…éé‰áZÄí:yÂ` ¿ÿ†s¸·mï§8x½º÷M;Ž|Í\I öH{ú‡Á‰–KNß;}°¾ˆ,.„õ\l:Èûm6ú�_�@ÓjZM�S¨•*®MÑäÎWjTJ­?Ì-Ñ”áôºÁX¯̯(,"j -ÓcmTºÉ&±e…EåŹ%â"ªHc%b·fD%Q1Áyë_Åÿ`àIJÿ ù´ÑîAT,~ÐJPÆ=\ì]õ>Ðqq‘ô_þœV®=©qfˆþíÍH¼þíõ¬ÄË·‰õÁšN³Ë„j¥RMÑÛ¹›ÍJ›Ú¦³Ÿ­/©cà �ßbÄ}Mœ=�Ÿ›£Q)pY¾¢ˆÄâá¸Êæ,Øoê§—çhs¬)+6q½(e=�ãžûú'xåƒøEUº|=®Wèd¤"NK eܨƒ!“€d`Iòu¬õü<ñÖ sàWÏ4Õ¨°ðÿëv$[1ÔRë˜fÆí®ÿÍv¤HœÁÃ.=˜4[ÜMöz¢¹&i …æófæ)ü•#fUÿ$æ «GÌMú\Ãe^åj -iy «½ …h®HYB¡…¼™Rņßɺ<³âCÙud§ñnfžzuãòÔuH•J®P›ù­¹! ˆÕ"·ì °n…B.£m|Áššú2D£>ð;AxPiÌm|môËQh2ö,¿´.¥í€é¡y;ézçΘ!úx@nʰo„'ÐI¿L£Q^@XLÆãàã²½ÖªC†!ªšD'ìŒd‹µÆ«¶‡%öÖÁdx¹OØ “8£¾’€pî4Ûª P 4—&¦—iimâê!úH]z -bOúåfÆK² $¾ïHX#ß>(SÍ8˜ºÖž!ÖªÛ¢/nåƒ -Sd:‹žúl#÷kTÅ µÕ¬Àû"„ú@0D CÃ6¼¥“Zò¬tßµž®CÝ|om÷¦®·®IhižJºÿ­¦€æ@¾`šÚÁž{Cøhõ0–ïxG™cÚÒ Ö(Éu‘ë_ ÒJôR³œ_ÖQa,#JtI‘êã͈Öoº™Fæ`W%Ý34‹ôó2£À_ŸõÞ{Åg/„Ûô(BÐÒ¢Í7éòù;›Ñ£@B1Å0ȆFRe‘™$ �š4ÍB+<Ü[,ö†·¯ø€ Âv%d XBJÕy2Uß -�"ã¨�DdT8©“šdVš£~¸³ÀsÂiè½ë{ênB VcþÏûRìÀz(ø£©a™>ÝMö·¯ú°ÿ!;é·)ˆÞH‡†0ÛG�Ðkè6¼öÛg=ls㦠&ô/ÈÔ^¦‹inìFó8à6 -ø=%ìbššºþãYÁ"ic6¼Ìnqúî; ¹Ÿcí,uo”0µ¶l2ñ÷iKÆO¸p#’:š|.n2þæ¶³¦¬lû6…ÄR³õRµT¡Ÿ£O°mæcíÖ$ß$ÚÛ¬.êHcã±�ð»³:gÖ“++žkþ?´ïÐûßÔ/_j'­êÆlRv)k¤ø‚6µƒ=Ó’/ö…Ò«ØIøÑã7_ÞG–æF²‚{¾3aN e-dôf -k’u(öÑí|F­¥Iì¤*ù(Þ"¦s±¦9h¤AJ©ÕjšRn“n�ð•m#°“íÕÝÜ&Kè -ê¾Ðã�Yú�q7ï†ÐY’­v€Þ ½©{Ê-웟X»ð?9v7Óèz˜ül}’gj™Ã“UTª\¼Û £®¾ò ZN…®’Ø¥° <@Ô°oDõj½°¶ÈuæäÉd„!¯ Ûÿ‘¬ÕIH<§v²Ÿ9½ï^eyw|½õÃäÿŒè`š›ö¨=ÆÃŠ�€†è%x ­£®S‡m÷�ÙdžËUØ Ñ§Ñ4mC�mBã'Kì ¤`Q™>k>!®Ã:·^ìûóU¬áSáU]ò6e”—k<F·é*ºÖ‰;™j¦Ú³G3Š4r9�J•ý:1–pÚ,{ÉvîݪàE”ͪÕåSØyEkæu>_K3*ëS¥+èDås£Öü¥Q.¦‡ioï¾Ùxô­<ÁWÒVöz“wÓ—>pO*üæfÇÍ”Y!3JˆÙ GO!1^„¿_Ûu¦±�:Ös¤f?dïÌéÕ”MiÑY�Šý².i/ß°q›�!^_í¿ŠZº"xò³8šÿ3ú;D‘�¦š~ï'üK8–p÷ÚìÉóÜóÅý¦ª­Z‹�ÿ;[o«Òóè$�­1«þÒV¦é(ã ŠÛuQ­¡ -{Š>Îß'5æh³UüâˆUoˆÏÝ‘UÜIA—¼ßD…®¦kœ¸gÛ[ùû˜`’UT+bï;|èf'wc©ìÖ,Dy©‰L™YÚK¢;ìbDh¨1®MUaLàߟΛ–.G6 ]ÓÎTîê ÷ E”®ÿ‡÷yNMQ¾Ñ*I)!±vøáþrN¦µ ·˜(4ÛÊ(6‡w³Äxjpž¢·ÐI¢­Ãª!–zJV¢œŠ س—!tÃþ êûþ¯jÌpï›ËÂkß\:Ô]ÂßÅæ"¯½È ž`ð`.¶ªå�Ö­Žxþ¿~ÝpïW.fˆŠÞì³€/€±ÒFÈk„sý«ØñW}ØÇîý]ˆf¡yh,ŠGKàoèiX #oU9AIÌŠ|+|ž«ÄRÛ_‚+åF~�HïÜòPÁ$£œß«Ü­ ÆÑK¼¨È%rM{fƒ,.Œ>Lj�1½š²ÒV­Õ Þ£pgœá[V†¹�!˜&qÁ©˜ð‰Iì gnb·à ¬¾¸é�•¡ÙUöL²$;½HD¤¦¦‹ƒ®F†¿Ýø -|¿Yr� Ë•¥Qv˜ÅQ65(ºˆ:§VßJaŠOÈôì–|�¿b=®ÕEP‘¨•c?Ьo$Žï DÞ”§�ÃøN–{Cå§>ì|ˆ΀vn�¦E›Oªµœ(®L!W(©÷æ >šù2z–Ÿ©3Æ×ø2wk¨&p� Œ›éhi¦#¾Y/Rwâ_�ä•Ù,J£„B¯B«µ¢µ¼}—OÈ“_óŽ…Þ-×!ôº¤J…àÑÏ çÛ¤«Û�P®„uþÄó/¡‘hó3Žçz×Qq5άBÏ^–Ë%6ª>a÷ÛÇ_V½—µ‘œ™²97�˜"…·¯}¬£� hH:êí«TB’° °ÆfQZ¤Šãæd'§I�¹fJÍý˜ßc8±o1ŒdšØx[~ïà o*éwF÷&ÆÍÔÕu m¡ëTzù•v¦Ÿò ¡ðÄõ#«öC÷õ©R¥Tj•!_EaËÐÖ€& $ÏI¥Q-›ËÇ–ߟ*_™“¸F1Àá<÷‡••î!š½Ô ¨7âc•Íì$Ž– Á÷‹92�1ÏHõ¦|=…ùC -[ÍÑrÈ…’ö²¿n0¿ýnºgƒÉ�SB$ç!?%³I’­7ÉH‹4§8…�ˆÄi±�YeåûuõMTgsÍX�{Vy¶ëÄê*¬ò58Öš®?Þan쿾ٛVÊòœ:±¯ë¤ôaçá[ä㙵ÿâ.Þ³ý„­â*­™Dƒ‰»FK …µí*ÐkEx;BhOÑg&áØy”ÎK£Ù22'9žÎ V¿¶^øiϹ‹ÖV·;'±‚Ô<¸³L¬Ksù~Ñž=æÚþ›Ë¯~;‚zàÚ™v£“<[Xm® *˳ÄfJd±¤î&ìEEöÖ­ŽyakRÖGRØ7•ÙÛœ³ˆøYŽˆZ¼s!à›¹ÿu­éð,)œÃg«>ûÁZ3•ófH”ÛŸ­egCÝ6´kºô`]Ä®æ†Ó!b<˜yØ7'ò]Æ2òby»µˆp•&%Z)±Ù,®&°KZÃ0”àŠÚõÍ`wxèh1¼éý¶¯ä9éZ‰=^A›ýì …ñÚ ¾ŠQéI;SÀ”;�C±ŠÕÅé¢Qøå™ùù¸‰19]$</tt»õîÁÅU4EG……0aU¼QåTîØ†f¢…~¢ääìþ–Ún¥·Ða¡[™mAmÛ™¦¥¹ƒnÿ=]ý_±ŒîÖ +xœ�yxSeÛbÈ0hŽ‘rŽž#¯QAY2¥ÌR ŒîÝ#éNÒfžœÌft'¥»M:’Rº�‚‚вË�á@ðuãsàáýü_)tø9Þïú_W®Ìs?yžûþÝã÷;LƘ1 &“é÷^LhDrjL|Zʆˆä˜È—×GD¥Å†$û~[Jcô“Úñ8ýÔx>–Ahµ÷ŸÇsŸü&ZžôÃîÞa?Å`0z'<Å`0Ç>öƒñûïã§ø¾úyüTßËÍñÓ,&“Ã_µ0–eû}üÃÚñãšÇŒ0�„î²LƒÁ˜ç;Ñã”VKùàÛÛs¾§~cžo¹ÕŒkÌ•Ì*æ�…?TüPk6ëÆô±ße[8 ¸|î§Ü[¼%¿ópÊØÉc»Ç©Ç?<¾ñ‘¸G~å×NNxïÑU�^yl§`‰à#¤9ùø6a˜ð«'ÒŸh™8aâÚ‰f?¾ßv?ç¤W&Fç �ØDìŸüè)ü1|±÷éyÚ^úÛ>¦¶—žÚËÒŽ¡Õwüï©9þó¤Ìf0šÙ÷8t¯Ð÷ú>�L`ü�}ÏÈ…ÛÀ~!œLlpƒÃ‡³e.�ˆ~Á¥ ú+3O�ÉŸ!»º.4lÕo AuV+eÄ�³I«1òšU vèçšï�oõ.«"�š5{ŠûѶæ=îŠ÷óß(ÄM +e2ñ›¾Y×B¹xH�16¨([¸µMû6 +çÊ59® +-Ý…­Ø™F'­]ˆÂ ¾ +8Rëiqx{ÛYaº&?G‚ïŽÜ�•ŒløT—‹è'=@âfÞ`�Å€/Î\Ëhˆ2sÀôÎJW}‰$ºÏ(°å8±ÒJ§£TZ&*!Ê’’ôØ›ÓÁDØfn†r$N@'gv–*@5’ÂM”×ÛM6 ‡hžAa¸Œò·Èšè M̶«@•ÕB„ÓŽC6˜òqÏ—ïØçøè(úËzð|yE@bp$œ¾î=lA«æÁ©P°2vÛ31@pþšó˯~ª/*ôX±àúØ<€t€8™ÐÓåsÎPP’ bF‚’þA¹õ†3Z\¯Ö+q%™MfbÆO}p’u¡dŠtÀî�³#²’±¸-E_`å?šv«Š¤+Q¸‘»´~ù÷8?k0†ðs}D Ÿ‚¹À#ÂlßÁl-妼^—¯0þ³=©õ0»uMî2‚$µ$‰«UJ…¥@97 +{_ÿöî­àΖ¨Ö Òå«Å­.²v$× y¾@FÃHuÓìN½XpÁ—ÙҫȘA�’õšj_FŸûÛŒ¾÷÷/*~÷¨Š¿Ä 5\Fƒ[h ­*\VU¯hÄõ–zÚˆ®Îš/¢ÈÍÛ þ=mûæ¸a82 P¨´¤•‡|])l¬î¬¯Ã>î_ Ùsâ§Á1ÑÆ’ B\¦25£`%×i°Ø‹p>¼&»Í<|›u¸]_™RWWYYW—RŸ’�óÁs²fúF3³å½âëÎtpIÂà3€—ÁM� §ÃMp xNóëz÷çý¸÷pÅé/Pxt +�ßoð!¸.{} +ä@>ä&Ø"¿¿ò=Á€y-`ÝÑX @â¹€­XÐx"ôÒÂ`ë…²~伓^KO–—•9œé%‰IA™1IrÆY ÙåX‹Íœ³æ•€ÊØÚDi NHÉ +ŽA£ Õ¹8rvFÀî„íÁè¬K‰çþu 0³«â+ñÆðw©H 9œ‘¬Q§d¶ŒTbñÑEí“Ó^JäTÖÊ=Øõ‹ýÿîÊ©‰¯'¬fGQ!f6«óLrÞ™o(”Ù0äì xìÞd¡ÚV¢)l¨Õa½{ɬ:“fÏIBOŽx5êͺãn]U]Žœq‚5`¯pú¶ôÈ7óN}|²ª¹ÿ#÷öÙ8ž2ßo3OÞf�<ògŸƒ¾1ŽC8Ì>O÷ºvð2XÞ�\ÀEn€`8KXR[Xk¯¿:~ÞÆ8ö•t™@ùQL¦’ q±TÜp*"7Õ�Ь¨ç`†Ÿ<+O�ï˜ Âý2ö*˘E’adTL"%2ò* óªý–øYÄÅÛe ’]’„ìXžXš“—œ£ÒK±øì¸\‘#«Æé-ø¸™àÕå"pëß«?Ô‹?|öÎR–€»B�—LË?5¸ÙÕêQÕÓCy½�£ªç»F‰þ2 +.RUmßc/ÃKl{\vÌbÑH ä°ÌlÏ-Å*÷TUH]yF]ȶÐ�á©8R¨�* Œ(XDôtÓ ¦ÿ ¦�0–vÒS„V�#£É¨ˆD*ièè]J›Ì&ÂÏürL ++f)0•˜‰ù3¤ØÃ_›0œ,i+­íÓOz°˜˜L#ãâBFœN%‹Ï‰~†ûÉ’UÚ|çë Á/½Kg=0äù82ŒŒKÞ5bÑ¥²Ç—í0eù½ ßÍÝ¥!s'Í¡éÝTI·~6—‹èf­<öƒV,øê‡×�°Â×Ђ¸ÈG½†�µ¸A©ÏǤa#žîWZë=-Uû�®AO�5‘ÿÁÒƒ´Í “„I•I•µ•5ÎJQm"ޏRRR¾¿Ì­Ñľ¡Rþùˆ¹ŠÔ‚¹4.T(T: +Þã"�£ÊmÊß–Ûln8™¡ÎÁ‘Ú|£QeÇL&«¥Àbµ›´¶<^úžzEöw¼ø¯ž›‘™K˜c…{ªë-uØÑÞ…/@Îö×_ŠUT‰  ç: ÖBÎ7 öúB1Pºß€øä"½Ëç (.Òãt�B§Â‘‹’¸x2ƒ[snº/owKC ð-VgvVát8?|£{úö�A¡DÈÖ<ÿyhöÖ?týO}]_:ªë»©fª©©c”7Wd¾2î˸ âÍÜâCúÆQHo¦š›Cãµ}oáÈ1ÈZ:g Áß+ëO$ƒS­Ý‚[`Ó’ Ó¨lâ }ð ÷ÿKÙ<üº$’Ô�r’R£R+Q]š6o‘J«V¡pÓaN©¶´%÷’�¦R^eAEQ1V[”o'2Ív©+/*v–䕊‹‰bqœ%‹ßžµ;…ˆ Ëßôú„Éý‹æÓNz‡Q±ì~+�YwP1³4°@çTÊ�²ÿ°Û8|ø„Ö�%ú�II¿3ž‘2-4 i9E¯jT* AîPFçmµ¨ì»Þq¦¡´ž�ëý–Aγpê¼)¼<‰V­DåÊbIÇÔvwá~sï$ƒB¢“`HKN|ò&QZ 9 Nâœýöðê‡?ñŠ«ôÔ ÔËqe‚&ƒ«8»%Fc6ÁÒ!‘äÛ°Á÷xüI¤Ìw}lªYiåý£:’«i©õT+åõ6üA$‰³¹ÈÅûLÓãmq4`­µ)Ë ¸ˆ;'_ ¢˜UƒLÌEV SÌ-†<ã%¼Æ-Ò‘vü@wG¡k­H[NÀ%Ü92eàÿ²mòqŶïÛÎä~™}òµÍ«Ó7âjµB©±ðÚò±u�1ÛB¤G©TÈI;�¿~hL}Ä€‡YàszŠð Ê$m~ nöË +Wj³ö.~Ý*ûóƒãí"£É]»âFÆÇ +s–c3xžðË6™…˜Õl*5`ø¤|Ÿ­ê�qdTM!“vÅPÉÃÅš&k\ r/=NÌÔƒçYà•a?˜Æ.4š •ˆâ¼çÙc"TAê¡æÒBõSž¶Ö‘Y=Ü£Ï송ô ¿¼ìDi.Å÷\I«ã;‡mª)UßÖ;2õDè·JÚx€‚…ir½Õ@üìlç[XÅæÃ Õ4ŸyD°@Ø-ŒŽ +|[/³æÛÈ�«½Ý‡zxv-Ýo_•’²|µlÿÛ-A­Á<þL�‹>+f‚¨ó,Ðæ›X~ࡎê +q£F«Â7ÆlJ~-T'5È, +^yg…©+Õ§Äp€;;qT¿é¡š©ƒÝ•dïœ?øÐƒï>ÃÜw™µ…; 0 „Ãå¸UW`ÖðvµÂ‡JPPƼ±W[åf)Ńã¦M‡s¡¿o�;ËÄLðÎe0£°C²`8XŽË4ùru>φ8,Aa  ñÝQ¸^f–ÛH÷Ó 0ø£ü¥²æ\ð +½Í-è;ò¾@:hâÎ8aÁ:]ùóØ¿f.Ÿ<åZÐõâHêÙ„çÑ·v„Ì�¾¦ýû4IÏ5È42¥a¾!ɾ•‡t|T›ú%ÖÑn«h"Þon>ú1z{nל|Mų­_ ‡ú}ð]Ãêܦ)¤,fU·ªVv€Ç‡§@ÿmÁÉÛIÄ &üŸµZäÀ&PøŠ}æˆÜ"ÜÕ Æ;ß]^ýî⡞RÞ.22öAxœBÃ8ÈZÏ›mÛ]‰¼ÿÜ ¼s—ƒwÇn ˆ[Ìド²f�ß Îꓯ°èGîüKçÂ…p"L„ËÁ£ð)°Œ½QõþqBjQØPÀã6•Z뇿J…‰—B&“a»¶Q;"Ťàõ«jTa(|™»;f¹"ƒ3ßó€X 8`<à�im³_¯&l¤Mg3jö*½Y§yÖ5‘M�…ñÛ5.ú´§@,eW�àgÀÒîÇÖÖf¼‚s®+i~)a+¢ i‘w*ûȥё8rBYÊ·±×9HË|8Ö¨� 4 I¨vÈ¥A<•ÕNÚ1äÄGgõ'X§ÅáOÜú†¤¹£@ÛGy[ûF�vî}ÐΔ6�“½`ʧf±œþ¹Nƒu—¶¼»&"·Ê‘�—æf‹°ôôLq蕘ÃàÑëßÁw˯Á1Á‘yò Âæ²U-�Ên¬Þ­3´Èù’ãr¹¡X Ü„EFéôÑD lc;´š±c}Á�IøLî¢11T~Æ¢�álÐÁéÕzt¸FÇÞÍ‘+JñÞ|ȃs^�Ïð²õ¦Äz ¿ÂÙ¡ >V#å¥:=­dãð±¶Dš.ô›Ü¢âr»Ue’ð5Ð&„mp·ïÒ)0æÄ·¼ƒÓs D\c�t™ðåÊÎ÷‰¦¤�úì¹—áX¸õi׳ý‰„ZwŽ3З„¥% +©�hHªy¢è+ê÷r6ãsÒ¶æe`Óeà�k€<ÚÙAðÁ’røl/hñqpó +‹þ_¨§ý‘V„’›ÉˆÈ Èoá,xÌúãµ>޶yK(ñ_(È>ª›jmîEŽî—&n ÿM¤º©––î?]ˇ± åÓ l,P R„…Eµv«Ê*#`G’›š!3åY>hµ‰êDô0²[+”€±T -¯"«ï¼xBã[*råwh¡¼T}}ç ^¦W—ãè9~ªƒÆ¢ãt8Qã£ïØ2•Z¥Á4jc�š@VÁÚ§éî¯5é„ʤ‘/à!«ÃîÍP¬‘$¯W5ß ŒÊJïHŸ_aT6ñ�ÊVz[Ça÷JØr½)ß„™ æ�€4ºš­ãðaLÙGß–P¾ÿáuŸ„Â'…PÁ…~*8a‹4×`–ãV™¤$ “ŠÄñÍ9åÎýú†¢«µö4X‡ú´„¿[�†ƒJ›b=д倦¿QôZhi=.®ƒ�^ƒXðëd¸Á„3ÀrÎ>»ã ~Žs®$liaרtV#9§l˾¥)àéHJ�#7Õ™ùd + 8qk)*ìŸIÕr„ra`7§û‚FKõRÐ'3It¹jÞbqôÚw0Èã„ä”t ékî}ê=aR8µ&�¬&kݨOx¯ôÉÌ&‘V¡àmT«sßÀø›%ð}e4×­ 𮂴äø²||å¿ÜÏôILŸÒUÜ"•M*WäKóqä\n†J-)à9v‡[B0ÈõYè7ý#ø(˜Zã2YK ¤}O¡A'BSè1BGš!;EÎÁLn©Ì•ã’ÔD2 [7k/xñ—½g/H{}�$¹‚à×Þ¿ï“\ŸÑ$øjù´  ƒw¾ùãÏ8ÀqP&7~¦¨ÚR�U:sÄBdµ¦×`ŽâbGÛv×ÂÈõi›bä»ÊÜî¹Xb’\""–†íZùèVÎ?JC.ŸÐÓèUº¶rïKCAÐÉ�-Uí¾¶Žj¤Ü�ídû_¿x–_Jû ó¢Èp1ƒ,\ä»ãM¦rü‚³ÃVŒ5•¥$Û±Å"®Æ�‹:=EQ?Wã7è ߤÝ@¾û…vÿ¬³ôPÍMŒjó )¾íÍçÊ+*ÕMXÙÆ]ù ü7¸šˆX+Ã�‹‘�£p‡|wyW„uÅM§OœH…dî|!9L§—âüÿé»b endstream endobj -467 0 obj +399 0 obj <> stream xœûÿAŠ · endstream endobj -468 0 obj -<> +400 0 obj +<> stream -xœm•MOÛ@†ïþÛƒ%8ÐØ»kŠ –r  ‚Ús°7©%²¶üqÈ¿¯¼Ïªª‡$z=3;ó̬'ñ·—íÕ}ݾ»+ó=Q¯nh§¾rW«§]Åñº­¦£óãçjWŸ­Ã­êú¶ܨV›õÆ7cÇ_}Lµ;ûüÏåÁÿå0çP«iÛcÇoÍøánÕT¨ImjçÇf<©ä2ŠãŸ®šÖߪ4ŠãG_¯Úã\Ü-$‡Z¼ômµu£Ú7¾î%“zŸóF©VuS�¢ÂwuÜu!x{FwÜø}« ^õÔ‰§RJ-^Ý¡Æþ¤.Ba—ªv{,Ï}íúÆÔŹؿŒÛ©ë>Ü\¤JÂSçëð»˜áìŽN-øó©PªôëÑÛ©srÀâ×S[ŸEJ‰U[»¡ÛU®ßùƒ‹î’$I–ê®,Ër9güÇ~-aïûê÷®îéRÝ%‰-–Aé  -�2AåÊbKP¶5*G•¨O‰»FÔMPFâî‰KQÔòˆZ'•­ñ”SQ+T”¦²tn@’Ø{|ù -¾œ )|6GÁ—[|öŸ%{ -_.6ørêLáËäø -QÂ' -¾\² �Oá³t0…¯ Ÿ†¯€Hç鼆Oçá˨ZËüȧáÓ(ác*¾Llðf¤e~Ô©áË$¾Œ9háczæÓ‰%ó“ ðeÐø22ø$ÎÀgÄ>C>Ÿ¡»¾‚NáOø }1ðiQÂG? |Z΄Osë |™d`~Z*ƒÏÀgà³LÌÊý¤ŸVÞ?òYyÿÈ`…Oâà³bƒ/ãÖYø4s°ðiî‹>9>KeVî'ݵ2?©>#ùà3ÐZø43²òþA”Á§©,“û™‡u${g^LóþýÜ„ÕÔ÷Î�aý†µ7ï¸Æ»Ï=ÞµÝ>áàü_2«çòß…¤f +xœm•MoÛ0 †ïþÚÁ@{èbK²ÝE€6©�ºM±�S[É 4²á�Cþý`=L; ;$Á+’"Š`âo/Û«ûº}wWæ{¢^ÝÐN}å®VO».Šãu[MGçÇÎÕ®>[‡[Õõm5¸Q­6ë�oÆ(Ž7¾ú˜jwöùŸËƒ;4þËaΡVÓ0¶Ç(ŽßšñÃݪ T¨ImjçÇf<©ä2ŠãŸ®šÖߪ4ŠãG_¯Úã\Ü-$‡Z¼ômµu£Ú7¾î%“zŸóF©VuS�¢ÂwuÜu!x{FwÜø}« ^õÔ‰§RJ-^Ý¡Æþ¤.Ba—ªv{,Ï}íúÆÔŹؿŒÛ©ë>Ü\¤J©óuø]Ìð?vG§üy*”*ý:z;uN.Xüzjë³H)±jk7t»Êõ;pÑ]’$ÉRÝ•eY.çŒÿد%ì}_ýÞõÁ=]ª»$±Å2(T¡Q&¨ý€’÷£N _&6ø }ÑðêÔðe_Æûiáãý4|D¾Ln�ψ'|OŸáNŸ¡»FæZŸOø ì>- +>CÏ |Zî„O3‘Fø$|9}13Ÿ>WmàÓR5|Fy1Ÿ¥ŸVæ“Z,|Ù-|†8+|bƒ/c>­ð1!>-qðYj±ÂÇ‹YøŒ(™Oˆ,ï—IeðÉ.|ôŧyM Ÿ†/“ù¤ÎLæ3ëHöμ˜æýû¹ «©ï�Ãú koÞq�wŸ{¼k»9*|ÂÀù¿dVÏå«»¤f endstream endobj -469 0 obj -<> +401 0 obj +<> stream -xœÝ¼ xTÕÕ7¾öíœ3—Ìœ™Ìdr�d2LB ¹B ˜!\Ã% „«\„K -1¥@ù¸™`´(‘KK¤5µ@1\‚ЍI´U[ë Ú¢‘òÚ€&›ïÙçLB@´}þïÿ{¾çùfæÌ9û¬½n{­ßZû@`‚U@ }Ö£Kã.×Êf8€Óç,ž[6/ø·ÀËs.ŸóæŸÞ€<Ðã»ÒÙ3Jä[ð)@úSЫ´tö ¥S€ô· [iÙÒÇâ¦ÄNH÷ïYX>kÆ_Bßß �ñŒø^6ã±Åì;š�™q‹f”Íþ´; Èœà|rqù’¥òJå €!âþ7?2{qŸ7OÈCÈQÐgµW=z`4Àz¼pçoœ‚³€µq è,ÚˆŽÀYØ8 kàd$o¢X�PL=pj`‡vg ùT�cpÎÀÇPAþ†rÉ8‹.€} - °ñö,¤6Â)Ò•¤‘£XT»Ñ^¨„T+q%4à1PïÒóð.¬‡õ°vC9¼«q¶= †ƒPmð¾ “à �ÓÔ,ú¨®ÃJ\�ûá9P§¡¶Á6´Z` dŸ±œ »á 쀙°ƒµ°ç„>X kaWa7ÄH ’Cö¢ šÞö c(Ád„JG¦�‡ÉÇh-õÒeä2Ô` Óa>œc-’jd/ÔHsÐr:]û­òáet:ª‡Ë’CžI¾ƒJì�Ó°C“à ÊX=s`ìÐÞkôwI…wÉ XOcކÒÁ$j ’Ž€ç`$B9”“l˜åPÉ6é¿Põ�Â6‘-¸R×ÊÂý`žƒª _‡w¡œ „˜1ì -¬E%€¼–°¼&KŒŒ Gœºû -Köû(Ž{k¢'¥Ç]_ãT9n?ŒÞ²<®áÖ­ÑÅ4ŠMÜÏ¢÷Ÿ²Ÿú¼ŸýÐÅÏRz ]×€\ƒÉš>0¥Çð±Åû±O|8ÑãIé1h vM̺Ÿùö3_áôýq³JãžPŸðöyB�Ý'0”ò-´”í2ÄŠ !Ç!¤°5˜BZSsk¨Í­Í­é¡6�Íç±yJ)–�¨Àç|‹lùî›G¤$sn]¤£ÙUˆ�<¿'"ÂHdmtX- yÅ|@­5l![ÝQn3ô -Í”²Ýj 5ÐhÊõR[k[«Ê›¯Øì¹¶ÜtŸyãÀ¦‚'3ÌåLEÞxlSíY™½rlÞlýÀÙGù%Þ„ü(fÚË£¨èôéão ˜�ô'´­røHT‹ÊÑ"´5»×¹‘…ü�Ÿá-±ôôÁ#š@×ÐJ°Á(¨$›ØH­¥ÑpR6J(vµ¹©53Ò.µµ6¿cìø}*¨HµÅAг¥C:ÊRÓm~ð£ªß6F£Ñêh›}*œJN›×–å¼ee†¹èš¾�¾|èðáÔãk>Ú‹,O½ï�ï´_ Ó?^¶2¾›Ð†Ê[i1­'Dà „d¬2l’Â!©:½QÚ²5†àhÕ&Aa´]£¶µZ›löÜ\]{—Ô+êµíЦ>äô8aB]ÎEfeÚe�;™.ß[|¢lÞ©Éü&ÿÅ]ýàÛúô†µ/«xÚ$éµ·zç¾–œŒrQ(2#?ÿËé]/í±ª‘�§ãh%¨ YþhŽÈj‹£Zi´lE§ÈÉ›Ý4ÄEAƒw™™á5—.]jkU¯ØrsÓ}�z±ÛTì�O@=„º4NѲÇS·–œýÛßßž³]]¿vÝO¬[»~SûÉX3vƒÉÿÁÏL@×>øèã–æO>Òý­ €–ÓJˆ‡_ùÃíV•!&J’�æê8Òu2B•ÁfUFJE¶‘Ö¢è𑑃¼jÛðýæqÃ÷ÛÆM.> ‘·NôžÈ ´ZmöÜ HË˻Ԗך) Ÿkså¦û‡¤Ót–.¥ËéJº!ݘnÊËwå‡çGäGæGåGçÇä»W‘Ut[%­’W)« «Œ«L5a5®šðšˆšÈš¨šèš˜·MEšSD ¯M—ÜÖå è1xwü¼aëË_Ì<ºï‹¹Ã -s_xÁ3+Älreè óüÓöexõ×K*?o_‰W_],>éôéyùƒ…m¼u‘¥•`xý¡RµªÍ�ö­á»u ±;ïלF÷õJ:êÐ}vτĠMÄ2Ã¥ÕO=U½é©§6]þöú——¯_'Ÿ~ôAËÇ·|ðÑþ>ÿ/þ¿€RP,r£TaƒS·.Ò(: B¡‡?Ü`!@�TmÛjD'Í!É4 K0Ø¡M­­ªÌ¶V›+77=Ô–eÓ§·eÙ¼Ùä�O8Õ°`ñÏž8|8㥇_~½ˆµ«}òµßàå7w½8£ä3Ýæ-·.R‰VB"Tøý!fl1¹bÝŠËF—;Ö]ã7šÜ±Ô UèuT9O„WÛhµ¯Ñ¶µ{ŒÑ%è(ÉR(KŽøAÝÕ¶¦Ö@ë%±�:–’ʯ]Q¯]±»rmöÜôác‹eÕòµÍ•+kïã‘�„î„ -œÉŸ�˜íFš&Óp*ÊîÙ++3Œ¼;ªnìŠÊ)¯ Û¸©õý±‡æÏ=6îñu×”A;þÑÛ“öÐ܃©©Œ>Ìk‰Ü±bÏQ¯·1;{ÖÄUØ»yåóûžÇJ�•x%YNWÒÇÙOŒ+�áSÑT[Vÿ�ׄ¼‡NÕýbשCüÆþWì§ÓËpA{#Ùx³ÏiߦÛYÄ­„HóGš«BN¨Pq"¬š¨Õ†F²52Ônip¤ÚÖ”Ùðx›XÕ÷€J}Ã~1†øÇȇèÛŠ -7Oýí‘£/O®nr2ê�È�zß×ãõþ}þú‡sŸõ½_ðQ@�R,„@‚?ÔÄxÈ|šbD¢ ™F,jskàÍËtwKGް¾È)V�Í“íÁ+'Oüðò¯_åBŸ¢-?ùéŽæ“ä_O‰¼vë"9ÆZÀ=ü.³¬ 8@k­J­qƒu«Ý »M�mWÍØI½rý=A='†m›*SÙä“¥5ó5xÈ…o§7ök}à�gÏ’�õ;ÿâË:þ8@J0@¤ú#”C`n2n‡“>DÉ’Øn”-jsÞ¥Ö@^«&óR@K!ZÐÉöØ<(ËéE€>De�E¨Œ†bèô@ZM )À.k6 Q´ò®<Ñh>iDX‚a"WhyBiy—‚yÝ#KÒ¨Ãó^]ÕÐ�ñâ’ß¼$Ò>$Eûz:ýÅé³D¢@p€k± ›?Tª¥¸6Ðß) eÈÄ =EÈ -LÐóJgµy/“òö)xvûö³¬¥ž­oÏéÄivÉ¡áŸtd'þÙjiDÛ‰†|†Øì¦ 6ËÉ®µüˆð Ç?Ɇ¡ŽÔë�—Ȥ†~.ùöìmܺaíÚªªµk7�óxÀ¿Z7��€ú"'²¡œ ÜôÁGŸ4·|ü‘�o#ÊZÀ ~‡R‹GaƒQ’‰›e�ÒÍš€ZÒÍ»”hMͲy6�Í»ñ,N:{¶ýó¬¥}.¹‘ŒßlÏ ÆÐ[i» -�ê�ŒxÜ�ß#C3Í�!¥G -êÁµ¥9à•Aí4cä®Éü3~ -壘ɻF«º©étñK…ÙIIh Z,àzRÒ¹~~þþ.�ÿÁß:}Fr|Ïg¶ßÛgZïé3¶ã3’£}·æ4*ùPjæÊ¡þij;*Ñ@ìU¡a†jwXµ•Twkt[Ou?y_bHæ!’ÝîzŸ"„ÅÕK—šô$©¶ˆZF€Èô®87Ô�oÃ…~¸‹C¸²³È¤õ«×?Y³aåú†+±gì̺Ïnèñ\YÓ—_6-Ü’Ö€sÏ}øá¹súˆÿ9ÀÑQ‡R{ìÚ¯¬˜6õA2RPŸñ“žÖm˜@w±�!Úo‘4ÏG}ˆú0E„$¡¬¶ÖLÝç½6O]ÂSÎòdÖR£…%ë4ÖP…ýB!ÃnaŠ•:©2*&¦ ©v‹C �@^S¦ãÚòšr”ïˆu6<íâÓ¦Uœûì\=oAÉì—üdM{ÝOfnÞsO¯A÷ @ǰPÀÝýN©Ö°j­X 2É4gÈn5ÝÞ‘ºƒS¶¦ûâzÙÔ�תy_²¡ƒpëí3·`z �òc¼žŸßs EÃoÞ\ÆÒø3|ÿV”ëº�%j>ÖÓÉTdVI¨¶[¤“F*ƒ�I!VÓ�’Šõ¤^É´ Q�Þx)5™íè�&žŸ5­æ+„ /½"9¶>0wVM �œ¯)j-Àðº¨û$˜ôxn6�j«¡Ú¹ÕÚµ=ìö!áfIŠìRMu�']k§.5U¢ÓkË"[6èõÓ†ö‹=¶Ïyûï—Ï–lMmhÀiÁâ ?6¦˜Ÿáÿà_ñÓÆní §h‘O’üaÁx©ÔÒß3h!3K�(MZ̼+hzœžÓäÑöqøÉöGðñÀ29×·_Œ két0ÁKþ¡Ì%Éu*‹FFÄ…12¹�Ñe0"ña2ÊŠlp)Š\`”)¢ -œd8x„ i�Ymk -ࣸ R¿‡€îø>1þ€¬! ·Iò4O~-—%ɲdtûОÆIt¼Q™Š¦°×€¼”e@t/G -¼�nA ¼ü”„éôö¿·7 ×y>ŠÃùô¬.k)OWÓé`‡:ÿ —%D@=6˜]„`›ËvÕeUA|ØÔKˆÕe±„¨¡!`1T˧l–“¡6Õb”A¶+öBË PÄ59U­zÊ͵ÿ ¬¢NQ!fo»€°‘T}TÅŠM±G˜#B, ÖÞ¶B[¡}bˆq*LE’Œe JFÙ"J I³È¤Ô!³âSŸ˜òLÙS†ðQ§Ð4ä*­8οëST´mZ- -°^Ô£c€`<]ÎZÀ ký=L°,*"„‘cT`…›Bà ‰!¡Q’hšQ‚ô= èk¿5³³üÑ꽊»£Þ鯣Á…‰K 7$ $’ $z¡\ÒKém°Xe«l5¡� ®‘Ù¼ã‘aD‘õ(¿¾•_;ÂZÚüÝ�d–øš„Þø tŽC–I�Áí·ÒCÒkø¼ª0Dú‰= è‘£�Gf§�C/^½Ê‹%GÍ¿5š�_Ö¬F�㈈»lƒ µÅ+¹ x‘Im®«Áî6Qìû<6–íË -FÔ‡ïE£ßF½oÕÓŠ Ãn´cîsÔË®B4<àO‚h“XxD$qEù$‰¨¶Bj[(ÔbP�Ý®x•t‹QM�Ö'ô^˜˜°í�?Ò–ûÚ•91Þ'`/ȹéV/ä©Ó!É„*ðÞ@ÅQž]2xóªÉo-žûæŒ�‘ibIï–úúúÓ(õþÇkG­x²`À;™—?ýÄÒþ_ˆ¾ì$þ Áº$‡ÐkLèúI˜*j³^È麴y²š&˜_½*9¾ûK�D….±–Ã*4ü -ÉþpT«B­aƒ]5*˜Ë ém·!Ë¡#cÝ}4•"[ŒûgÚBqHz(¶e9½¸˜ŸB×^ù5ÿrÒ¤†ù¼æfõ© ;VH¿¾¬Ùí†Md9õ‚‘~3#xYfèQ²˜DÐokÍM7 'Ê6 ´µðd”Â/P/Ÿ6†O;ŽÌHlÀ‚Vz@Ã!§ý}—Aa“]’Ä .‚—¬Ì\ÃS‘Á -† 9 Û�’Â(‘ H’‚ÈÆ­­™+òÒ]ÙXùZ¦�¹XWY×1V”0ΕlÜ“õRã9¸?ÊÌ¢(ÄEÃY„)‡+ÝI"ë.÷%}iË•s”a¤Pž(M”�ytž4O^NcË¥år´èÅdÙD&ó"ÙæmmDÿʇ þŸ¹±Qr*Ñy>©}0.XÍóÁæ[i?Ö1�äwY‰(2Ô†oUÑ·ÕmËÀnH×v)´BGï\—.-ê‹ ¾ -·¹ m>k¶Æ-?á1�Õüvîà‚úùóê êƒû‘ç沩}óòúFLYH®J?=¿oŸ>}ï?­ûQ�è±…h˜ïïmPdb”|„棔Hœ„:k ŽÚ� &Êla‰‰ ¢-Ä‘Im£Ûœ£c4Á©Mô¯mz‡¨µ¹Õž+~o›¥£�éF®P/IEÂçmšûK�ËW´hÌÙ?Y9ëõ³¨î:’žoÿߟ~²ö)üº£|/EËŸŸÚ¾‘µüåýgŽâ‰íW~¶nõFÀzާ‰Á¾eÞ/Ó]C1zãR+Jµ¥,ÊÑ`Òh"?ÏsµÔjn]¤)šmúùã©Y+ÛªÔ'µ!™†l•ëÝÄ .72ƃë�«©U½¢-,=µ«¼Éž«cTžÀé€;¶\çp[{Sò„G*¿øí²ÓESŽÌxáÕ£/<°m°À°O«V~åËV~5.îÝÌŒý»êø|@´žêvUïµ#£?’üÚ`¯u›k÷¸·vsº£$DÅ[ÝžØnj µµ9È—`«ùJºÿƒ4HCi8�¤Ñ4–&¥ÉiJš!͘fʇ|”�óI>ÍgùR¾œ¯äò�ù¦Q0 -�£Œ£LÁCè!ü�ñ!ÓN؉vâ�d'ÝÉvJ;å�ÊNÃNãNÓ>؇öá}dÝÇöIûä}Ê>Ã>ã>Óq8ŽŽããä8=ÎŽKÇåãÊqÃqãqÓàb&8yˆ>Ä’’R2ˆ‰ˆP·©h*ÒzßzS<4XÚŠÒ¤ëº8²WïÑ£r{_»©ªjÓ“UUOþãÚµü£­ _É=:§wѼƒÿ�Ÿáoó? tÔ å ô:þ_ÍÆCÐOÑJ´A[3sÄþk !Pà�E!$ )b’k" Èl·B%«¹›E „ïiKâ’8êXhÁ€<$K_ ¸àOyúÐóå›oži_Ïb_‘wY»ùTr\øg1j¥Ë‰¢ ÁoG&j ­‹°C�),‰ÑªÖœkä5‹yD·‰Ý¸øD%ºô¾Ã\¢†£Ë‡×Œšôp˜iäܬQ› -‹~>6»d˜Ù¹têà�ļ·oN–‘zÂûæïÍëËŒ9ýC�ncKÀ=a±?£{r·H±˜ Q=É>—aŸÙ–Øm_²Ë½/#9;1Dên)Ù‘!©f‡'Ùœ’š­~ÒhRy^“ªíºŠ„¯65‹SM-MWÔ+¹âœþ/ÝÜÞ -]åX唄�»ô4n7öµ>†¸¤·�zå¸n÷„ìNjYµ`ÁêÕ ¬ª~Ê·fÌó.|;ŸŠCyço`ÏêíÛWÿlûvþ÷òü�ß;öÍà~ù;ùj~˜¿Æw8×G„£÷Q5Z‡Þã×ÿ*zb·.ÒvºÃ„Ö:�U†=!µRlUÜžèZïi«ó¥¤°P Žw‚ê&ñ±Cl’hj -´6ë€@Ev0~\ÉM¿Î×sôÝÀ‡(›wð¯®Íý`îœ7fî9pà¹mÛªv<½nbcéòß~„ØF›øæ³ï}•ÐíLvÏ-›~¶uÏãeK*»w?÷ñ«•â¡ í  ï²Fˆ‚XæO�vÉÕ"r; Õ¡V“-$Öî - µÛT«%Äl4ˆ,ŒDJŽ8µ9¸#М—ÈïM™­™™éˆd…f‘,§G{yC½ÄêÉöh/ä%YøåÒkóêæµñ¿�»Á?-­›w}ÞÎRÎQÒ8~¥•"åڸ묑Ï@;ùŒmüÀV>ýR¼¶¢¢mhgû›ü`h *» -nˆ‡J�Ø©�™YòEDFŠ1óEFFÄD2L¥+ĪUÖMæÚÐ-±ë”¼H7²� Üo$Á™ &«Íïh€õ�L�XEÛá×Ñ[øÓüçÐ[¬¥ýªâ8€�€îgÏ� "Á ÷A.Œ÷§¹sbºÇG[£ˆáçÖøŸçlîþóÔ§­›ÉÏ㣒cÝ1’Ñi£ÙgìiŠ5&›û¨M¢ ª^áz”ÓÜêÊõ+<¸»©¹šØ«¹½ÎõØÖ±ß‹‘Ë÷×qü¢‘ Ž(š·¾a�Ijjæ‘õñ¡^jO -¸æ�¹páÈ‘ Ö7¬÷W¤¤dY·¾åÍ_0räÂù£ÖNOM[š¿öÈk(r:Ú5ýóQóŒ¹`~ÑúÃé))ý×nÐb…nš àó‡*»$Í/ …$ÇHFµ9ÐÐlÜ®ÑÌBÞÒL­CÞäç…}ÎPIëúü¡F­Hk%†rˆ[†ƒYmîØR¥a°�Ü:Cúñ7QnàÊåo²–ú›+ëëéj=®ùèËZž6ÂsþþàC ú>Fe£’�1jð£â#Fä3#ø0b,"×¢ýdƒ�YÒâœ�¥Mê'z—#ïR µ#‰›`ú¿.GZÁ!­f+Ô@ P‚L˜35È’²mÄb�Ö¬ò/.mAõüw×Йó‹Ú¯-<ϼí”콑ŒÖòJ!OÅ­‹tJþó‡j­¤Ö¹Åº52ͽ¤L{vxgÕ ?kÑ�}²2í¡]ŽÉÆõÛ¶®_¿uÛú ß¶·_ÿ6Ðþ-¾Œ -Q$ÿ‚¿Æø(òÇù*ôS´­G«ø*±Ž°�ÇàF)Ø_Cð*Šõ&šxGÛýÀ�/K1ß�"ÔVÞºHküvƒ¾þøP jÃ~£†T™ŸTkã¥Úè-ñ[}¡A±ñ·9!"Ö§.µZ;¸.öNÅ“Eït„-!ÚmÚFvO{Vœ]äùøƒ·Ù½ûÈï~»wûÆ#¾DäA% �±í¿‘�?ÁËùz¾$Vøâ‡TÎZn$ñ�Ohã�d²,°*AŸ’2¼ØA¦Hô]5Œªµ§<¨Ú¿ÅkvBõüR!Ù!býVil·„È@ì„Åžv¦þè„ê%ìtØ]Þá9¤bíš5këjŸy¦V²_â}¿øœ÷ùâ -:õ×OQS+ 4…C;èÊ‚®ŒL -„S»É¢6´Í£Žfw:°ìíeÏî‰Ñ�fÝÚ5k${+Ïûô3ž×úwôÆÅKè�޽Ð3Zܪõ{ŸÞÃðILoVÀÁ`¯ÝÞUOt4ï0©èMPa»2 c.%�%(½ð`ü ž Jðãl¹Ri°`‚¨Ì@²”ÈzHÉr‚Ò‡’!Òy2™ÀŠ¥by‚²€‘1äõC|Ú>í5Ô0CêÉJmB†¿…¡�6(@±DES±õm“"¯5S šâ—¬Ü{~/kioÁÉâX(/xš€ [ Ô±@9,†åð̃¹P -K!ºÃ,H‚8È„tH‡,ˆƒ™°â æÁRXKᘠ3  z@Â"˜©ýa!,„8ÓIk‰öm6,�Ùð< -³¡RÁa6̇0* fA)Ì€E0W34úq0A,† -˜ aÌ‚8(�r(ƒÚµ»éŒÕ¨ -#¡A9@9”ïͿæiç…d©�9wÜßqwǽwÒž£�Õ%Z”^H¸CHuupü£P©°Ê¡�Y0[»÷MºTX³a) îB­CÚ­_ËâšÐ 5fÃB(‡e�¤éüÿM -›ï9³®¹wÏß÷#¤ü~Åìÿ7<1îßÈ>fiãÊ`q�z1Zç]÷¤ÙÚªÑ=8¾‹—Äk–÷–hŸBör˜ó`FP>ÝgA”iT¯K;õ3æÁ wïäñö b½ þ—² Ÿ‹oëDœY �@9”@…ÆçmnJ4 „ÅæÁL¨Ðø¹­‡žAPz˜ ¡B£¢ëd™æ¥Úš_ÔŒ°÷�uпíáK:¹­ÐtØ£‹uıÐËm[ß^¿K T;s/9ztÊ™¦Å�8�²¾tÚó‚Z½Óú?.u‡ætnu?Ó%¼ÓënK´LÓGÙ4CÇj˜£ÅÌEA uÑ© O’”kÜ,Ñ41fÃ,�ž>¦«/ FÉ É…ó:í±úh«s\ð®0ʵÈpÛ]cÑm |?ˆ|!è -/[rÇØŽµ²øž1 ë}B*±¶uK‰8§¯éÚÐ#ùŒ±§ ¬Ç aû2íóvüøOl±–küÎÑ¢€ �z‡¦~ì^¡“å�ü‹Ù…ÎÅZîˆh‚wá§�tžÑ9:í�Rس«×uä/1‹®¯ -X¨}»-‘¸WhvnÐ uyçÂBMšÒà¹GºÄP!�ÎÉ’Î9îÖÏ’+S×Wr‡‡ IïÍÁ�srç|wëå^<êZ\¤Í$$ùᨮ[I¼ þÊî ÛqfI§gv¬›»³Èì`¼ßži™&U‰vü=òb|§Üwß!ÆwdÝø.Þ¦¯�wå¡=7uð*¼aaK< -å0ï› �izÖ½w,†ÅÁ,&V¿È6wtµ¿Îó�¯aGqM|. ò(æù1Ñ¥»W W+´Qwj8þGñJü6üÿºfEŒ]Ø™³o¯ºŽ%„¾öD^ÒóËÝÅ=³`ÌÐÆÊz^^õ}üñ"bý°T:ÒÒµ(òâœNM …AÚ<£ ÆióŒ‚Á0&@£]+„±£a Œ‚ñPa ÔìÒ_»"®Çk«qjGÁƒ-�Æè¯Ñžqm�T‹´oáŠ` vï (Öæc5ª£`ŒF{$Œ†P¨Í©cÌ"#àA¨ÑШ>_ŒÒ>Åø‘/:§ã`T—YïäJPÛÉÙHc` ^íP¨Ñü‹ùkÇE�|rÚ_Ó‘ ,h€a„öMœ}ÆÀhc5} -ʃÜi2 †1AYiè–Ð9£`4LÔF �¡0NãBÌ4.8R|§É#,3R›u¸vVçlTÐÊâø6Qˆ9u>„þÇwÎGtŽÓÅ*¦ý5» ÎÅýB¡‘±÷”¤ƒÚ�Ö¹—wtÌ h » M�ÐF�…Ñ0h”ô3º?j²êV§©û½îúX�'aŸ"ͲÀƒÁ:½»¥ÐWˆàÿ¶ºúßtÑÙmë Š‚ç~„7 /û¾VÄúœˆQ ķ-VÒ9×׋>G‡ úgÇÊ+ºK¿ë¨cÜ;tZsßiA¡O¡'�C=’ýGtõØ5ÓâÞâ`^[ò½ÌÝ=ÞF¥]ñg�.±¶+УðmlÙ]ãnŸÕ㳞³n×<]1ܽ2WG•Üã.ôÛ�>ôØ­×F]Ño‰†Óu,¸¤•èù£¼™ô¯#†ŽªETƒ"¿ÜYï-ÑæÕ%Óçú>-_ŠqúlKî¡ÍËPwWˆ‚¡#Ay™v,zI:b˜¡�cÅùÇ慠uþstÈòïô/Î.Ѳ¨À¢ó4 <™¤ûHg}v['Bzw«ì.«ßö>A­Ï÷p¨ÐÁÜ.œ‹úNÇWˆ9�ÿƒþZš¦ï0Ò4Ž�Aª†ÂCÚ]ˆRì[h?·~ -“‚ÝÛ;ÆÀ}ð ÕâäÑãÖVmLÒÖ&�@ �dH€á0 r`$j9µ;L†)`ô‚‰`�t¸à?dÁH8Eв!Â!\0¼ă Vè -¸¡tƒLx¢! ú€ -&0C*L…ˆ�ÖQ6‚à0^…œž™ÊúG#'l‚œ°JûÿQ8ª½ÛÁÙ´cU{·Â6 È¢‡øjëïC!°2ƒ2A&dÔè´Q -X€ Y;–´1L;¦Úy¢�ÁÚäŸÈ ç¤} pr““™ä_GÉw+ȷ׫ٷœ|{‚^¿6‘]¯&×WÑkm ìÚDrÍOÛÈ?¿Icÿ¼A¾I#ÿÍÉUNþ‘I®8È×[HëWCX+'­ ·Îûoѯ†�//—°/·�Ë%äïœüí‹(ö7N¾ˆ"Ÿsri¹ÈÉ%Ÿý5‚}vƒü5‚|º…ü…“?sòÉÇNö ';ÉG[ÈŸþèdâä�›Lì�Nòá -òAÒ²ÉÄZú�fN.¼od8yßHÎsòNÎ=acç¢É{aä]NÞÙBÎVùØYNÞæäÌ -ò'orò'§·…°&NNqr’“×99±ÉÄN8Èq3iüýQÖÈÉï�Me¿?J~¿Š;êcǦ’c~zÔGŽprx i¨éÏ^ãäPMvèyu[;ÈÉ+%ä@ ù�…ì·“}œìåþvò[N^æä7vRÏÉK/ZØK™äE ya��½Ð�챑_ïNa¿^Av§�_q²‹“ç9©ÛÁêJÈÎ_ªlgù¥J~a$;8Ù¾-„mçd[Ùú\*ÛÊÉs©¤¶¦?«ÝB¶<{”máäÙg¦²g�’gWÑgžò±g¦’güt3'?çäé§|ìé£ä)©©ò±šþäÉM&ö¤ƒl2‘ê*«.!UOØX•�J…“�ìl`P`cìd@öû ´ ¿•ØHA¿�ö÷[X+é߀Nø ÔŸof~ ñ7 U~Í7X¾™ä7 ¿¿„ÞÏI?”ÂúÝ yœôíNúp’k+`¹%¤wF$ë=œäpÒ+ÅÁzq’=œôL�d=‡“¬ôH–ÅI¦­€er’‘â`‘$=’¤¥8XZ8I5„±Ô£$¥G(Kq�”,¦í¡ÚX�PÒC°»…&ßçcÉœÜgc÷ùHîÃ’8éÎI"' Vâ +`¾A¤›•x9‰·ZY<'ž¸æYAâRHìpâ¶07'1œDGE°hN¢@eQ$’“NÂ9q…0×`æLaaÄéP™3…8T -* u»­€Ù9±¡f+ ªÕÊTQuÝY-ffµ«®;Kˆ‘YÌÄ¢ë.Äl`!FÒ€ü©Ù@Ì·r¨‰£!Œ91„E%2'Ja'ÌAîÃÈ ‚Q -Ã}•¡*A ¨dí&”üÿÎüßfàøÿ÷ãe +xœÝ¼ xTÕÝ0þ;Û½³eæÎd&“u’É0YÙ !Ìv!¬²K1¥€|l&Mdi‰”¢¦T("†¥!¨ˆŠH¢­K­/h‹FÊkZ˜¾çÜ; Ñöù¿ÿïùžçK˜™3÷žû;¿};'#¬i³^s¹V6À1œ6gñÜÒÉxÁç¸öÎ]¸bΛþàUò@�JfÏ(–oÁçiO@¯’’Ù3t ˜¤½ÝJJ—=âö¸jÒÄó{–ÍšñÙ??ø ýñ½tÆ#‹Ù4 #bÍ(�ýy ȘàxbqÙÒeºáò¿‹çßX¼döâ>ož�†�# Ϊ¯zô4Àh€ xàÎß8g«óÐY´ �³°üpÖÂwÈ@ÞDÙ° ˆºá,TÃõÉjò7('Çàœ�O œü å�#p]7ú`ÓíUH#l‚S¤*H#)BѨv£— P¬ÂЀÇ@5¼KÏÀ»°6ÀØ eð®ŠÙZô|¡Úà9|&ÁA8§©8˜µ5P \‡U¸÷Ãs NC5lƒmh-´ÀR +Ⱦ`-8 vÃAØ3akaÏ ~°Ö®Ânˆ’$»ìAT¾íAÇP: �*`™B"Ÿ uÔC—“ËP��L‡ùp޵Hv¨–=P-ÍA+ètõ·BЇ—Óé¨.Kvy&ù*°NÕb€ƒx ÉFÒó0vÀõ½Z{—x—Ü€µðæhDò *èpxv@<”@É‚ùPl³ö õPÉl3©Á7P&î;ðT Õø:¼ ed dÈbW`:(Ùä•°”µØá5Yb”`=b”ýØ[X¼ßwQÌ[ÝÉ=îú£È1ûaôþ 1 ·n�.¢lâ~¹Ÿxuû©×óÅOÝü"¹Ç°ÑE1 ÈY00¶`úÀäÃÆíÇ^ñmàD·;¹GÁ@õžXu?óîgÞÂéûcf•Ä<®<îéó¸2»O2`(á5´„í2DŠì !û!¤ck1…Ô¦æÖtPš[›[Ó‚­n«×mu—Pð/%þ/y�lþá»%R"‚9·.ÒÑì*DA®Ï!$¼62¤–½b: ÔêkÈVWD˜Ë½‚3¤,—âoõ7ù›ÒA¹ÔÖÚÖªðæ+V[Ž5'ÍkFž°*àÎq:R�'[[fF¯l«'ËMGßöa~‰7!Šš¶wôýõž>}ü�³ÿŒ¶U �jQZ„¶fõ:7¢�Ÿãïñ3¼%Ú�žÚ#pDóèZZVå –d#+©57êOÊI�MinjÍH‡ÔKm­ÍïX:>¯ +R¬1ƒb¬i�†2•4«|h€â³Ž†Ñh´2Új›Š¦’Ãê±f:îC™!Nº¶ï£…{>œr|íÀ‡{‘)ÝÿôNû:ý“å«b» ža¨¸u‘Ñ +p@$øâ „ C¥~³rIUAèõ°ªàÆ ­QG*ú +#mÊ�(¥­ÕßÚdµåähÜ»¤\Q®(mWTö!‡Ûaìrt023Ã&«ØÉ´ÈñøËE'Jç�šÌoò�QÌÕ¿o Om\·WÁÓ&I¯½Õ;絤$”ƒ‚‘ ùø_Nïzi¿ðU�|<G+@�HÈôE2°‡W™íUºFóVtŠœŒ²ÚŒƒ�$G5¿øåŽæ“ä_O‚Ò[É1ÖVèásšd‚´Ö¢«5l´lµée—²lŠ¿¹ÃG+W®¿' gg¹� JÀ¶*’'6®tòÉ’ê‡øZ<øÂ÷ÓûµÞÿ³gÉÀz¿�õuÍÏ %;è!R|aºC`j2l‡“>DÉp#’Øpf�ÍJsî¥Vn« &ã’_e£ÛêvˆµÜ(ÓáA€>B¥þE¨”�¢ètju5ÉÇ.«º@#hC_¨ÞL€ ©ÊÚh:i@X‚¡AzÉ8È.<”�SjV«SpÌê±jé¶ÿ¦‡ç?´¦²¡!ýÅ¥¿{ jŠÕ>ñÚïÚ7Ðé/NŸõ…ª›—h‘ꃺù‚¥ZŠka#ýƒŽ¡t™¸ §p=‚�©"Ä]I v;Tj¬žË¤¬} +žÝ¾ý,k©çCêÛ³;ã�M²«~6ÍÞég·šÑv¢zØÁV›12D¨jít²Â-y²Ì�3u¨Ÿ'V"“„“½üõÛ³·qËÆuë*+×­ÛHÎãÿjÝÜ÷•Õ¿{çæ?¿Gë·L;1yÎÑ¢ÊÓýâbpæC‹g/¾p$qxûš=ž¾ëèɨõ+zõlˆ�3&cK ¿áC¨-@ë_|˜É¯'¶Êà}•+¤ÊBªº5º,§Nv�É4X²ÙÜCº+mMíV.]jÒˆTZD~˜£êy—Ü!Ø.²‰xÍ'õÃ]”ß™•I&mX³á‰ê�«64\ùÛð=cgÖ xvc�çJ›¾þºiaMjÎ9÷ÑGçÎýùcþ™Ÿû##¥ôص_·rÚÔÉH‡úŒŸô”¦¯©tk"}fIµrÔ‡¸ Ó ÷+£­5C³o�Õ�J—òä³<‰µÔßhaI·ãX�v—žm5 “&¡cC±ªžiæt)# gÁÖL«fÇ�æwªaÁâÇ?|8ý¥‡ö¾ˆ^Š&Ô ¯¸¹ëÅÅÂ5‚µTÇ~ Á�î 53�…+:©;dÐõ˜‚¤ØÌv¥9·ÉŸÛ”¡Å�¶Ü¦V¡^iHõRwÄ+žƒvñiÓÊÏ}q®ž· $ök~²º½î3·ì9‹§W£ûDŒ cX èÀ + >‡T«ßµ ,z™d˜Òe—’fëHÇK¶¦yczY•8·Ç¬Zv"²¢ƒpëí3·`z1�òc¼žŸßs AÃnÞ\ÎRù3|5Œ?+J.¥´ŒV@,üÆj³è© Q’ì0UÅ�ƈ“aŠ V‹n„4Ò:Â222tDx�Gi¶ß4nØ~ë¸ÉE‡!üÖ‰Þý¹*^65ËʽԖ+8aÍÉÙ–opMciRšœ¦KÓ§ÒŒy!yμм°¼ð¼ˆ¼È¼¨<×j²š®f«¥ÕòjÝjýjÃjcuHµ³:´:¬:¼:¢:²:ªÚåAS‘jaa¨‹ó¸;òàݱó†n({1kÐè¾/æ -Ìyá÷¬¼á³É•!çùçíËñšo—V|Ù¾ +¯¹ºX|ÒéÓsó ^´ÜºH%ZñPîó™°ÙèŒvéôX68]Ñ®ü(W¨Á芦¨D'¨½Òq"´ÊJ«¼�Ö­ Qct„ £"$s¡,Ùc 43¼$Ì®£ÔPø5‘YÙœª»Qóhó·Vgެ¾OŒE�Y–H_vé¶qfõLÅ)(«g¯ÌŒò±++¦¼6tÓæÖÆš?÷ظG×_Óì|úã·'í¡9SRî;l¨Ç¾c垣OcVÖ¬‰«Ó±9z˪ç÷¹;ýv¼ê·{ú™‚LºCª‚ífé¤Ë gR�Åx§†‹¥\ɰ wxb¥(°Ø,·ÀŒÆŸŸ5­á«„‚¿ôŠdßzÿÜYÕþTr¾zdƒh·†×EÍ&ÙÁ¨ÅèP“žTYôUŽ­–ƈía`³ 5IRx—J¨kŒîZ÷t©‡âk&©Ù¨Õ>Û/öØ>çí¿_>[¼5¥¡§ +üȘ"~†ÿƒÃOO»Y´œ #Õ�è ä ºZúbz5 ÉÔ¢t“š‡Ü•ˆ¸îÓäáöqø‰ö%ø¸¹ÈFÕ·_¬×|ÈpºŽN#¼äœ’,Q'¡²ø`aDœ#£œzFƒ¬“õN�NÎ7ÈQœd80Â…:©À¤´5ùE£% �bFùQ5sÇ÷‰±dµšqé‘$ÏAóä‡Ñ +Y’‘,K‡¡íi˜DÇtSÑT=öè‘G�2õˆNãe¨¡…7ðÃ-¨�—½ƒQ<�Þþ÷öô:ÏÃCp(_€žÕh-áãé:lPç+ršƒDÙfÄz““luÚÀ¦8- +ˆ«d²8Íæ |%8Ìú*ù”Õ|2تX‚ 2È6�­Ð\,¶J§¢zóœÛOÒ*lHÑ 2{ÛD9N•‡¬³êla¦° 8sœ¥·µÐZh›d˜ +S‘$cÙŒ’P–å‚ÒL2)eð¬Ø”Ç§…JÊ�óúŒ¹mZé†,ìèÕäÓlÖB}F,¢™ °‹PµÓ“J[Sš(ÐÈŠFÿ•ã¬å_¥€Ðeü%JÊ!Ø…QˆéB§ÒP¦Õƒ.ûý(�ŸëÌ«ÿË×OõC^WÀy££]ùªBŽWì/„ÖZÑ+ð­õÖX·&¸4'‘cN·Ë9±i Š_$=w8!-쨂Hû˜{@‡ÿ„�Œ‰Œ‘à×]n‰vuKq©Hø¥nÂ/µM9<­zOé³ó?8ÁðÏk^°ôÝ’­õåO-|ÿ +ú||#ÛõnßÜuÍ*ñ„¦ðjË_““?*¸©bñÃ1a©�uoýw< ( ¥t:H0Û—Hœ”QìD˜‰‚%��@ÊÇN2‰Œ-„YikU-âRÆ=udbì�x,ôß,Ó¥ {1žŠ¦ ñ#OñqT€çK¾¥ÓýãÈÞ›u€ ¢+è0B¼ÏÏëQ{^&&N!Rn�LJs®Vo�ȯzD+>†þȼȢct X/õè @W°0Á:_&XÝ „‘c”oM�ƒF¦× + ’DS ¤iÁ_³ýÖŒÎV†Ú»Ð:2wô.º1�AïD¡Ä© ÕÇ¡D§KÔ÷B9¤—®·Þl‘-²Å@Üz$°FdõŒGf„E–£üúV~íki×án$±xÿ·$øÆŸ¡sü;²\²ƒ .Ÿ…’^ÇàUC¤è”f“H=ý"7Aná˜nt½xõ*/’ìÕÿòW«:~=Ð2ˆÚˆ¿Ë6ÊP«×y$2*ÍBuÕR¶M4P½n+Ëòf +#3êÃ_F£ßF½üoÕÓòá Co´|îsÔîB$ÜïK„H/“XhX8qFx%‰å+Ö‚jí5j1(Œ .g¬BºE)þ&ë‰Zþ"l{§C�Tó`ß:3&ÆzE)Ý ²ïCZU¨%üÔa—d3BåøeùQšUž(’‚À +½}Q �¡J‡¥É¼�œÔ�²uX�-T2ƒMXGFSS åª6&´xÎTC±Kš+¶f:<¸ˆŸB×^ù-ÿzÒ¤†;ù²úfÕ© ;VJ¿½¬ÉwË­‹´k�(Hô9-ÄékC·*h£ËⲦc¤©ÝqµðÕª€@àT=–žø*D&üX +ÚrÖd‰Y1~Â#n‹éíœAùõóçÕ(èƒû‘çü¦Ò©a}ssû†MYH®ûK¾|=¯oŸ>}ï;­ñ Zô)Y C$Ì÷õÖëdb�¼„楔äK„:jõöÚ �Fʬ!z‰ˆ"ÍÄ–A­évƒË”¥åS«È—­Z§²µ¹Õ–#~o;´Ž4Ñ…œÁ’‚„¼¬ªè¤NQâF.söÏFTÌzý,ª»Ž¤çÛßÿì©'jŸÄ¯ÛËöð´âù©í›XË_>xæ(žØ~å±õk6Öâ�W÷2"|Ax쥻$†¢¨°é\µªRÕP´'Ëï§ñü<ÏQà ¨¾u‘&«²éç‹¥rTx­l­Tž°×‰¬*h«\ï".pº�!”h—0º¦V努ZXRx“-G˯„i�Ãwatçp[{SÒ„G +¿øýòÓ#§™ñ«G_¸Û ‘=¥Xø•¯[ùÕ˜˜w3Ò÷ïª;àõQûÃÙU­ÿˆ ¾pò[½­Öeª ­qmíæpEHnˆˆµ¸ÜÑÝkks/�Vó•4߇©�ŠRq*I¥©,UJ•Su©úTCª1òPÎ#y4�åIyrž.OŸgÈ3Ž‚Qhee|Dâ wÂN´ï$;éN¶SÚ)ïÔíÔï4ì4îƒ}hÞGöÑ}lŸ´OÞ§Û§ßgØg<ÇÑq|œ§ÇÙqé¸|\w\ÜpÜ8è§� ,E¤²¥åuêÅÂ?¨ÛT4©5…VlÊ‘Vwmº¢‹#zõ=*§÷°u›++7?QYùÄ?®]ûÇ?ÚÚð•ìÑ£³{�Žwð÷ùþ6¥¡^(¥ÕñGøþmD¿D«ÐFÕfæˆz“µ† È÷E£ „å1ʵ ‘�zd2€KG%‹©›Yñû…î©&qIŒ:Ì¡#Òé‘›d +Ç¡]ü9OD¹¿~óÍ3íX”ÿò®?s7ß�Š� ý,B­t1AÄùlÈH-`¦ua6¨3F‚9>RQ›µÍþÜf±Ž(Ñ�ØŠ�^¢K'Ä)êºbXõ¨I…GÌ͵¹päÓc³Š‡š˦ÚDL/÷ÍÎ4Pwhß¼—s{…D3Cv?ÀÁ_§ÛØR0BOXìKOHêî$f“>¢'ÙçÔï3Yã»íKrºö¥'eÅI &�’ì”b²»“LÉ)Yʧ­þ&…ç6)ênŸVJS³¸ÔÔÒtE¹’#®iÿÒ|A�r:xµ}µCrîÒ÷¹Ý¼R{=â–Öì•í¼Ý#´9¨yõ‚kÖ,X°ºêIïÚ1Ï_¸ðüèõÝö?u�††"[¯…9iy}øv>=‚rÏßÀî5Û·¯ylûvþ÷²¼�ß;öÝ ~y;ù~˜¿Æµ;6„…¢PZ�Þã×ÿ*z¤·.Òlv`°/‚k†Jýž Z)º2fOd­§FÚêx)1$ˆ=̧¸Hl´]�¨ø›šü­ÍZ0SD�ðWrÒî‘£jñåî Mt[vðo®Íýpîœ7fî9pà¹mÛ*w<µ~bcÉŠ?~ŒØ&ÿæ³ï}×íLVÏšÍ�mÝóhéÒŠ„„#11Ÿ¼Z!6ëÕ� ï²Fˆ€hêK‹tÊUÂr9ôUÁ£5(Úê ¶Y‹9ÈdÐë´MîpÉ£4v¦šssý¹â½)£5## ‘ÌàL’ép«/O°‡x‚ÝYnõ…<$ï-¹6¯n^ÿÛ¸üó’ºy×çí,á%Žã×Qj Ò]w�5òh'Ÿ±�ØÊg¢_‹×V4rÚÙþ&?ڨ®‚ b¡Â—/vÌdf’¼aáa„b̼ááaùQá S)ÌÑJ¥e³©6¸&z½[Š Ñ3á1z HŸbA1$Ú#r¶fá:;õPM¨®\[JïZsr:Vª¥UêÇÄXäÉêÙ+Ý™V —dAf…ˆÈ ö6ö7é¾Ôµ¥#Ìœv¼äÈg¦Ä�>{=µmæ¦1û¥O\T0ðXNïÏ_;e|þ¸~©ü;ù:I²ƒA� +ž]B7�C©×žª8ƒ‘·²ÛÑ Õ.{eð¨Úìv)Tê¦ëÁÀ(E³„3Ùå´9Mivæ¶:3ü¹­ŠÿÒ•tH}#£IU»7®kðÖ@sYUjâ­fä°‡¨ÑZ¨£Óª6q²³2�.$:ðñVµÑ#ニ~±ø/%å¥ÍÅhΙ™Ågg½õö…ãÅhÔ®q†ò‘dYñÔ¹çѯèâiã‹ož@É,%ñà}ù½}¨æWGÍß|Ã\á¿OJ¥üþè“Û¶½§Wã2Ú¿Àß¡T`¢^%¿�]¡( +$Q¯¾£æ—i(ÓA<Áèºÿô¶Y(õ_ƒVi1}y‘nb- A¨Ï@(‚�2ALVšß–×öNFNšÚ/ð ü:zëŠ?}½ÅZÚ/ J^Ž“ŒVz@íùœöõÑ9õ:&1Ù)ILï$Xç”u3§Ä0ÁTt òu r¶$a)’IÒ@��ÖÖŒŽêçÒ]�Ý·2íì{ˆBV…ì ët!8”…ê²pOÖK7ÏÁåøafÒ�.Œ8i( “ÂåP]‰g r_Ò—f³9[7”Ê¥‰ò2�ΓæÉ+È#l…´BŽ{Ø™VÑ5ð ÙêimDÿÊ#þŸ¹©Q²û+Ðy>©}Î_Ãó¡Ý°™¬ � ÜgbÄ{e†& ‹¤Jea«à eéÚ�ZxJ樇OçG&${7ÝÏž#„ƒ ºCŒ÷¥º²£b#-Dÿ´%öéì- O§‹´¶›ƒd 6 B âìG†v´I �vØmNOœk6)_·víººÚgž©•l—x߯¾ä}¾º‚NýõsÔÔ +Máß‘ø¸²€+#£B©ÍhVšýêF`Gh ±9ìXöô²eõÄhŠ +³nÝÚµ’­•ç~þÏmý;zãâ%ôFÇ™�3ª/ªõ¹u^-Vz%¦E8ˆ‰èöåDGCð1‰H…<†Ë,„9uq,N× Âà º"}1~”­ÐUè͘ *3�°,&ųR’§ëC +É`i°<™L`ER‘¥G„G!•íçÓkJbÉñÏÿ³èËÒAQÐ;›¾.òøàš—C�¯Å{'�è»æ\áo¦Ô¾ê´8ƒ4Ý<­áYÛÇÿzÐ’{ ¢µp{ádÒŸ7oG¬Q'Ž+i75=¹”G‰8uóñ[vÖ¨E­.?ˆž‡˜ƒæC4Šªp +6‰|P +à\† +Ø•p +ÖA¤Â)X › Z༧a¸úôe¨„b(‚ñè\‡çÐ$8 G` T£ËP ë`A„ú×mЈ¶ÀhE»Á�¶ÀðB9¶Á*…Q=š›�€tVüí¡1˜bÔCX�À dGÓÐ^<×à0Çœô$%¤Ž¼EšK£GX{†bW¤i¦ôwyš¼Mþ/�¢[¯óëCô=ôõú«†HÃ/ ¿6¼mŒ54þÒxĦ9¦�¦ƒ¶ýÉjÞeÁ–é–feœ²DyÆj³ö²±^²)¶Gl ¶÷ƒ» +þ ˜Û»ÛŸ¶¿hÛavts u,r<é8äx/äY�Á&H‚ ¶ +‰° È + ¨ú—%�DE©(þÆB#ˆ�ÆÀƒþ“.×i—1ƒPø*0– x`¬ƒX¡Ê Œƒ‚ãÐÃ�±Jì;`”ÁbXK`Ì…X1�³ b Ò 2!f +ˆ�|˜Ë`),ƒ%0f@)ô€(„E0 R úÃBX10¦ÖRõÛlX +³a < ³¡RÀa6̇0Ê!fA Ì€E0W�3Tø10A ,†r˜ aÌ‚(†2(…ê½»áŒU¡#  AäC”Á¯®¿æ©×e)� Ùw<ßñtdzwž£^Õ(Z ^P¸ CHý�Àü‡¡R`)”A9,�Y0[}v‰J] +,‚Ù° u�ÖAm×ÌeqOpPÌš ³a!”ÁrHTyþÿ'…L ÷\YãÜ ˆ¹çk�’ÿ¿bõÿšóohžà¢�¹¸"d,x¶@ ”Áœ‹‹ l´ +¯T…v[5Ø%ê½Ùºæª«. üœ9êÝÙ�«iÖ´IÜ_e*†‹Ôçô\[¡ f²€„Åkn€–YNwÀ\¦bq§ŽÏ€Yê¼RX€ÞAÌÖp×4i¶j5šÇvÑ’XUrâÙbõSÐ^³`ÌЧéà,(‡RŠÀuY'æÀ{�¸ÛI÷ÝOˆùQ7¶‹¶i¶3ü®8#ø¢Å¦\…6,ì"‰‡¡ æÝƒc³á•Ïšö΀Ű8Å„õ‹hÓñDWùk8ÿ¼Å9Š{âsiG±ÎÏé‹Fݽ|¸¸[®Îº“ñ?›¯ÄÞ!Ãÿ¯6+|ìÂΘ}Ûê:,Jdší‰¸¤Å—»!ŠgfÁ˜¡Î�µ¸(´êÇùÇÿ �õÓTi™–ÆEçtrj¨ëŒ‚‘0N]g ‚q0úÃõ^!Œ… c`Œ‡B0P•Kõޏ«Zã(T!Ž‚TXŒ1Ð_…=bTØ"S©~…0ªÏ@‘ºFŒU¡Ž‚1*ì0†C¡º¦–cŽ„0€�êx°š�jë�„Q꧘?BÅEÃtŒê²ê�X Èc;10À�ÀÝþ�…*<�¿X�:ى砦ýU Èæx†«ßÄÕ` Œ†Q0Vå§€<0€íH•†A0&@K�Š�& £0 +FÃDuÆ`ãT,ÄJã3Å÷q*=B2#ÔU‡©W5ÌF¤,Æ·¡ˆ:@¬©á!ø?¾så±*ýÃa¸Ê[AïXu…è#:ávèÎ`‚À[ãÆ*}¿B•BCÜ\üÞ9sL©™öWå&0Ï JGÆÞ“’hwJç^Úѱ‚€%ä&85\�=FC P!iW4},Tià­SÓ{M'´¹NB>#UÉÞfhðî¦B³�ÿm*4 ô¼è³ÛÒÎømZöc®û˜ˆYB Ä·.RÒ0×ìE[£CŽô³ÃòFÞÅß;ê˜÷Ÿø VÇÚwJPðSðIÃPó$#ÿ#¸šï*€GT¿·8×–þ(rwÍog¥]óÏ]|m×L@óƒչ¥wÍ»}UóÏZ̺]ótÍáî¹:ªäwe¿ه滵ڨkö[¬æéZ.¸´3+ÑâGYgf"²-cè¨ZD5(âË�õÞRu]�2m­ÃÒòK1O[mé=¸ùsêî +Qà"x$ /WÇ¢—¤e 3Ô9b®¸þè]U±FÃ.ƒZþÿÅÕ¥j¹è<•Ã"ŸL À]ÒYŸÝæ‰à€ÖÝ*½Kê·µO@ëó£°ƒ|� # 7dA„B08ax $ˆ,ª'<:pAèð DB*ô#˜ ˆ�©�ÑàV;ÊÐÆ«‘ãÀ3SYÿHä€ È«Õÿ…AÁê» l@�U+ê»¶Afutà›Á¬¿ÁJ È^ È@�A…§WgéÀ ÉêXRç0uLÕëD½‚Õ+È7‘ÎIûJâçä&'72È¿Ž’V’ï¯W±ï9ùþ½~m"»^E®¯¦×ÚâØµ‰äš�¶Å‘~—Êþyƒ|—Jþ›“«œü#ƒ\±“okHë7ƒY+'­ ·ÎûnÑo“¯/³¯kÈåbòwNþöUû'_E�/9¹´€\ä俎’/þƾ¸AþF>¯!áä3N>ýÄÁ>åäù¸†üùOögNþ´ÙÈþä ­$ö!-›�¬¥iæäÂv�“ ä<'ïsrîq+;IÞ !ïròN 9[éeg9y›“3+É[œ¼ÉÉœœÞÄš89ÅÉIN^çäÄf#;a'ÇM¤ñ�GY#'<6•ýñ(ùãjz쨗›JŽùèQ/9ÂÉáÒPÝŸ½ÆÉ¡êþìÐ òê¶ v�“WŠÉ�bò3Ùo#û8y™ûÚÉï9ÙËÉïl¤ž“—^4³—2È‹fòÂ+{!�ì±’ßîNf¿]Iv'“ßp²‹“ç9©ÛÆêŠÉÎ_+lgùµB~e ;8Ù¾-ˆmçd[Ùú\ +ÛÊÉs)¤¶º?«­!5Ïe5œ<ûÌTöìQòìjúÌ“^öÌTòŒ�náäiNžzÒËž:Jžô’êJ/«îOžØldOØÉf#©ªô²ªbRù¸•UzÉãV²‰“�œlàdý:+[ÏÉ:+ù_œ¬åä1k>{l,YÃÉêGȪ_®d«8ùåJ²ÒE~ÁI…™<ÊÉrNæ¤|™‰•[HyßÇt™‰,;A—ÚÈR]ÂÉCœ,æ¤lÑXVVC•&°EcIiYÈÉ‚ 2Ÿ“y¤ä™{”Ìád6'Ŝ̚éb³8™ +›é"38™ÎɃœL›ddÓÌdj1™ò™<ÉÈ&ÛÉ$#™ÈI‘�Làd<'D„±2È8NÆr2†“ûW’ÑœŒ²“‘œŒ@Él'Ã�’a dha(šM +ØXa(Rʆp2x€� .&ƒ +BÙ £¤ ” `c³É€|+`#°Ï§§ùý-,ßJò0øô´¿ÏÌú[Hÿt§§¾<󙉯­öéižIÏòL$¯ù|Åô>Nú¡dÖïÉå¤oéÃIŽ5Ÿå“Þéá¬÷0’ÍI¯d;ëÅIÖ0Ò3-œõF2ÓÂY&'Ö|–ÁIz²�¥‡“´p’šlg©¡$EÂRŽ’äÁ,ÙN’°X¶‡be=‚I�n MêîeIœtׇ°î^’ˆû°DN8‰ç$ÎB¼!ùÌ[@ºYˆ‡“X‹…ÅrâŽIfî•$&™D#.k>sqÅIdD‹ä$FÂ9 ã$”gH>s"!Žd’Ov…9’‰]!Á °`;±Yó™�+JfÖ|¢X,L±Eã�Ålb ±h¼3˜ÙDÌï‚Lzd A Èw�šôÄ$t+›91èC˜�}Ñ)DæDBÉLâ„Ù Á}¹A0Jf¸A 0”L@!¨¯ÛŒ’þßù�ÿÛü¢à<¥i endstream endobj -470 0 obj +402 0 obj <> stream xœ{áá endstream endobj -471 0 obj +403 0 obj <> stream xœmQËjÃ0¼ë+¶ArHý¥%CãÄàC4¡=;ÒÚÄ’�äƒÿ¾H¶“Rz�ÄìÎîÌ®èÓé¼xçꊋås hUg.ò}¥ ¥[ź¥; räSÖ®@Å,:ÈËm)…#”–’Ý:Žç?Ê!¯yg�j ¥án¸‚Ù€à JŽÒ ×C<'”~¢±BÉ$„Ò�ä¹j½9K¢Q¢“QìŒj!¹•àêuI’Ì�(ܬ­t(>÷Öa[ÊZÁr`ñN�L€èa�éaŒÍ�c=dކ£²�ÙdöWòÜi}CoâEÉÃùáU‹�ߣã”��d°ÈG«+†¦’ ’uÇqë¢(ŠÌ+þɧCÕµfß• ì$ƒušì^³€R�^6o¡vdù.~YwÛ¬3¥ » @@ -1577,7 +1372,7 @@ x 'üÖôñ‹yÍ* endstream endobj -472 0 obj +404 0 obj <> stream xœ%�OhAÅgM²‰é4Å�¡ù3H=$i‚ˆJ/5$Rh#بH’ši²wewÒèEò�è2»Ý$Ĉ –^zÝ‹"ÞjO9z(=õ(EØ• VÖ\Þ÷¾Ç{—œNÀ0Œ?�뙵µ"©Äïàr­Zí4gΛa @@ -1587,20 +1382,20 @@ x ¥Š -X²™Ìûm$Nõ›õÃ÷Ùâtó“ÎX?ÐtGàšylÆ‚tØ´w,ÿ—”áÚ6Bòëö I›´Ý‘›ÛV(e¹,ÿFûU·C[žÆ°5Š¡É˜�º{ìh8Å̱rÿw »Á,Ûhµ±ÉØJ˜c÷¨5lD³ìÑ×Ãïû?÷¯Þ> stream xœûññ endstream endobj -474 0 obj +406 0 obj <> stream xœmR=oà Ýý+®R2¤Æq»D‘¥Ö©%ùPµ³g)xð¿¯ÀvRU½»w÷ÞäéT­Þ¸ºâ*}¦pF«zÃp•ïk²S¬ïPº"G>gí´QÌ¢ƒ¼Ü•R¸ˆ�R²[ÏqæüGyÇVÈÁk@Þ[§ºˆ�‹p7ÜÀb @ð%Gé„€.#B>ÑX¡ä’ˆ�ÉsÕys6Š' ˆOF± 4Br3)ÁÕëFɸ`nBag]­Cq5X‡])éÈ⽞˜ñ[a�`Œ-�c3fކ£²…ÅlöW²êµ¾¡7 4DQòpÆ~øCÝ!ÄÓÀ÷è4%$�ÐeÐ85ˆ¿öŠÏ -2ÅÑêš¡©e‹Ñ–RJ3ØEQd^ñO>«® û®M`'l)}M³€Ö#¢#JzIC§©Æ÷ôWw‚õÆ táæ‚coOH¼?�VÚW…Þnþ‹p`Ï  endstream endobj -475 0 obj +407 0 obj <> stream xœÍX{pT×yÿ�ýîÑû±»Z„ V�Eô€‹ØîÊ’À²„$ô”àI»z­v­•™Cmǘ¨“T¡®ã‡Š±C:¶’¢umw¦iÆm]›?Ü$u\'™´£ahÆI<rÕùιû��±'i'Ýéž{Ï9¿ï÷ý¾ïœóÝ…�Ž£ ¬ï=0ê¾Ðð­µ^ÄC}áþà}«ïl>ßìïÛúÖW¾ØfÛÆ�@·?ÅÄ?Ò `óÀ@ ;õ¢ø% ÷(Ž’ÿ%ÒùyiC¡Þnñmü�Çù>Ø}(lØèG€ü*÷pw0ðó¢ä¯ò°äÕp(2:÷Sœ–°6<7í|º @@ -1622,110 +1417,94 @@ B ØÉoR¯I=&u¡}&}ÖO{?ã’{MúŒ‹>í¥®r§ìÊ¥=¹´N¹Û¤]^ê4©£=]vØ©=�ÚvæÊ¶ ÚÙj—;s©ÕN-&5ïðËæ Úá§&“Mº»!GÞ=A 9t×,mŸ¥mG¨¾.GÖ¡ºªÍ£š,ú/Ýá ÛoË’·›tÛ§ÒåmYô©tÚZ½Tn� ê[ÓeõRª>jÜšN·úŒ-›óä–-´¹Ü)7çѦ�yrS#m¬rÉ�yTå"ï†<éõÓ†r§Ü�Gë+ó|¹r}UæQE¹SVPy™C–;©|Úæó¥eë²e™ƒÊ¦mð¥ëÖfÉuÙ´nZ¼âK5Ö&¥ÉµY´vZõí6ni¤5ÙTÚH«Kòäêò”äIO#•À)Kò¨ØEE+\²ÈK…î�²ðrÃ)ÝiÕr—\•OË]²À¤•+\r¥—V¸hy~Ž\î¢å¼6R�üe™ŸCùšÓ²”l¹ÌA˘Ón#ÏEK)N™;AK¶�k 则3KN/9ì^é˜%;œÒî¥ì¬=2ûeÁ)³öPfJ¶Ì, Œôl™Q@éÙ”§LIÎ�)Ù”¢=LNJ“ɔ̦I2U&¥QÒ´ð]0d*Éiß2Ø ²eJ* [& 8¥( 8IL ÿÃ'źÿ×üm¯üî�/„ endstream endobj -476 0 obj -<> +408 0 obj +<> stream -xœí½Yó$Ém'øÎO‘MR-–š…ö~QŠRKÚ�YQ«1òmgTeªÞY«®�-Õšl¾ýâðp÷@xÆå™Y´è‡®ŒügF"8Žã‡ïÿöó—ÿþá_ß¹ýÝ~øÙÿ{“7q··ô�G Þ{ÿÓ÷ïÅíý¿Ó!%�õ–^ö¯ôíßßê¾öÓÍÊ{·�ÓE¼ÓÇô¶öýìÃÏþëÏþá?|?RñÛß~ÿ§ÿù?þíûú×ÿùÿü_~÷»¿ûûŒ(eÀHéåÍËJ*;Ñ&@Ié,:"Òˆà…æ&e°ÂyÓiAÌMJÐÎÅé[Á™ŽÆü%}0%ö�ÿã_?ýö·ßÿá‡ÿü÷7ñý?ýë§õoŸÞTˆŒv±¨¥vÊ…ÊyÔéMƒAÈ`‰ÖŸýÝŸnâö§Ïß7inú�ŠFÜþôÓÿñ«ÿ&„øoBÈá_5ü«ßøñO8ük†í›ÿóOÿågÿð'æAdåAЂöè<û$Jwzn4ñ_�jèþ?ÌŸDÞ¦Ÿâ�Â_•O2üëºßewøÂ~füë§þJjæºÿNøæ­+™9ÜN·—é B”Hj$D�è’‹÷UÃc«�05^þûj|ߌ$*[ýÁ‘Ký�?ç\~v$YæD-ðrNËëȺ];â/%"�9­9³?¯£0¾?\ëþÛB—ï«‚å3ä¼ÎyK‹0[i[í› ¶Xh> Y82É+Õ½v‰ –NA�Z‡ÎOWR‚ÃѦѫö×EúÔŒ>CfŒl¥��¦—Â+mTÀt“놢{åFºú –VͨѤw^ê›ó†8±ßÂVíR¾zLbcr[2jð¨æ 8Îöõ£¸ýøï›5AWè¹oãkéA§:=_؉*0Rà¹Tj ÖIÕQ_ ÒzNœÍË“¨4Pk%Õ "—h!†Å¯N{Bêa¹/‘z:W� ¿1©“Yuä ÿhV#aJ¹Î®ÞÄ@š/ìí'º xá�Ó.}5ü]ÜÞß4X©:âûW^öÊ0¼zÑI É÷î/ÞvWDY°ª¸2 -ÑÙ¿›_õ߯Xi”C™¼J?׿~Ÿðñ&Aé�¦­¡»G÷ñì½þóïû ìР¬*®ú[n磖 •öÝêß"ýHðOó�œË¹ª ëÔøFÏÖ‰Eýõø�÷™>Þ6¿šˆùxŸQ£ÜÆ«‘Ý -¬RußKí�v*ÐF[<ÈUÆaq¥À¯è)�ôîFn ½Ð7Þtpjxý~øRÕi ö^*?¼Óÿ@¼UÙåý6ŒÄ 7¤3°÷7 ¨ ÊNÈf|‚þõûH(]‘sæB÷�þ ¾{ÈáFýåHYµw ¨(t', Á ]r�àÔ`ÿœ e²—ýÈ/h=X‚ -d5 ¦Ÿï®»OÒRÀN%ÅEì,§ *øäÚÛþ+ýË÷éÅÇôæý["¹�î¿C½µ!Lo4,X£W³L€·~à™öÞJëuörøDÏ4ݽêl -:í5 @i›~e|ƒ¾ö~¸¢C1 ¿Ò ƒé¾>ÝHƒó8üDÿúýp�þêcúý["¹‘~âLæýðÇ%ÛðÇþ™þtû�Þþ9ôÓ×Á¡(Ó�k¤þ³?2‡/=w¯ôä´Jò“8¡I17Ô´Ó(tÂxß½ìÞ”ETHÝ<Ø=q!Ågjñ¡ìÌÃ8ÃÙíÍ[rêB°Áä÷ã -E|`ü¥1 ©ï;ÿe¢XŠ1V#ŠÈI»ÊÏœùo¾ãFÂ-G÷°&?«@a3é™<œ%]"5µŽ§ÊL¹Œ…ûØÑ50Šþ sy®G<×Mœ¼\×µú‰ ò•y9®/ê¸^™Ëo]ïzf­r_^ë2ë.§uÉi5Ë)ÍÄû1º=loêàžû3fçF?Ò$ù,›æ �q–7HÉΞÄkÒ)É>È©ŽÜJÇWÙÑYûPzo¹ëÿ¼� Ûàî«ôŽ_J·˜s¥‡´ßç"m©ÙûÎÊËr5UC9„Ì›H¨äXÉIþP!ä9Þ%çã”0Îys¦_ŽBÁ§Ë-ßã–oaä�éRdâ½Ð¨,ÙÙ!}S ýõäzŸ”RØKùužX·®´ð:P|  -`ƒA})ÖûÅ(@gú}…Â÷2ï:U,�*üªS…6TUº¿ ©îé�Ác©™â8¹ì�†ÉŽÌ®CiX’ÏôN üÃb8øË¶óF,ÜÓsO”M|JÏ"Yh¹p›ù -Âñ‹Ž‹M/�P¦£Ð[9æb�çÂq¨R«+jªGÕI^xÝJ�ce¤®‹ÊÈ(¸uÇ‘Q€lvæøaS63[F‰éX¶—ÿD<–gE§Q¾lJ§":Y�´àd3¹ÅRp„=ìÆº×Õù®¨ü£(rN›2§Ãßá[Eöm¬¾¨Ék3'Íêþ½ÕU&¯ƒþ´B„ª&Báuh…IR€ßÜ?zgtëå£� Œoš�%ósk9(…¬±½–ÃlLÜ,Rm+WH¯m?¯õŠbæ[EQæÿ™Ù—hKí©ÒpE͉é.ÍbiöÆ/”Í -5šš}=Ôh6ñ>V …oó¥Þ‚L›‹Ý¬X�¶² =ù†íŠ*bñ@nvë+°ÜlLðªx×UoÞJ:ñ¡Å(à¹Pƒ»»ü‚[zlÑêr�Tµz½ùeò¬aƒîÆÅ_‘�¯IÈI�íjÙ‘îuë/ø?^cÂg-bZQóá^ÝH!̾¥'|;7¯ßfRøËåcÂ]å«È+Ôäe%ÑΕØX¡ô«]¼\p¿gvg\‘{óiôFS ØE^7%…즿/ËLÕ_ÖP_…'ÚncáŸxÕ«m:JVºdPÚÜ‹ºßU›‡-ðþ¦ó®0žLÃêø :Ñ¥âkQ=1Õ7¹Ü¬59)ã眣Î|)™™³>¾/Wÿ®[È—›íæ®&íhÏíƒvû:[4UÇ#E€?Æ×RC/_i¼’¤,âl -Onb3Á(ÌË1Ò8ðÖ2-Ç…-Q€1ÞŽmLãÕ¹t–ø"™'õ°ERO{C–NgM±ÕiÜ×è -ÛDô•Ä_N…o“þ• -_©�”÷¸Rá_C*œ€ÕDË• _™Ì%–éL½¯Lø^æ]™ð¥L¸b 9 (mhÑ’©-k�a ÈÁõ¨7oþôo>7iÂ9i¿*‡jÑ—CUò%XOšùSçùS‰r^þÔ‹ûS:@°AÚ~ƒ»ª56C€qr°¹?uu+ícÝåM-zSL�}˜‚d÷K�ê3ò^w³1¯ÚýûWg÷ñë"±J�Ö_‡“·�èËÉ«DÍ6IÿòòÖi§¤W——÷UDÍ”ÙÑr9yk?J‚ÏÔûŠšíeÞåç-úyX‰šI2 -¯5ûŠª}D_ÕrÔl›ðŸÞJ¼“ðË\·ª.Gð+ -÷]žàÖ˜ÕåžÅ»Ë\ôM-Þ';4qÛ¬‰³¨W-Z‹ßr|YaŸ”º Þ ^~mÁ»-D_¾f%x·Iú—϶R;5„ ýåëÞ &\.Û–ø“ð ®̹œ¶ -÷.·mÑm³•ð� òÿW ß}E.Õ>¢/—j9 -vyT ¢`—GõEÁ.—jk$gîQ]Uo;ywùS‹þÔT x!)øõŠz°¨Ì×£ÚGôåPÍ"´ -”A#õVé?=!º—òË\¹®._ðÅ}A#Àhlàå -®¡+µmÆ];‹{—7¸è úZRTh� ŠsH+é&6d¡Û–º&ìªî‰æxSBv_’¡2~Ãÿ|½9£€ášý¨ I…ЬLÐà}c8À9DÞ±¬³ lAôåïHànbäåb®ÔNoÀ[<ÊÔËÅ|@—Z“Èêr1ï¤ ‰erµz_f…w—¹8ÇZ,go�W€ªPÀWÉÞnÛQ_${{ùSçdo/wªAöör§¾¢ìíåOmÍ@^îÔY¬»¼©EoJÖ"@Þ€Píá0“›æÈ"ehN5še\³Ïïü\(•ûÑ<­j²tt SÞFšeÔ3‹…ÆQªœ1P†R³f”ïvÅ¥ð ”5ýqÀgøÖbBS”ÑNÐú˜\QÚUªnßÉEb©2�Ìñ€¤€=qœ@”îvÁ@K˜0û{/©ÿ¯�‡¾9R­˜Ø4Ó9¬èмµ]ª@q`Õ^‡ø "Õ‘×[ÖÓ|Eu5Õš»Œµ • �‘LKȖɯÇ­‚ ®³ÜáØø>^g¹•ºi½z�û ¡X… Œ Wèé˜{'•KŽ’ùÚ¼½”_.ÞÊuuùx/ïãIe  ¬àåã­ã™cÄÀ³Üɻږö2ïróݼy×’Ôœï¸øŠ‘3©¬RjÛÆzùVs>zP•ûê\«}„_žÕÊUuyV¯ïYiK æÃ¸<«uOÿ÷éÛC¾…g´þò‰ǨM[âå�ë�êyyD¯îuÙŽŽ—G´žc^¢ œOtEz÷2ïrŠR§h-;QƒA¼<�Þ: ó¶9:öütõNÊ/fåº|˜—÷aÐ’¡¾|˜Õ³¤8¼sÅuvsïrb#; Šà,ˆÇDvJhïDWä8M%Ç)iï¦Jü‡ ¤žã,©d]$ •H¹ixÈŽfa®ïóVŸþŸö_j€Ié�éõ¸éhùFåÕŸ·T‹v{�_¬Bî«U ¥îf”áhªÁW�XÝKöut˜sÒ€Sf»\øJ•”é6¢ËU\#�Št‹@�·âòÁW•D 7°Ì˜¬àíòÁwsïòÁ}pÇfÀ´îØØÚ�=1(Ë"¿ŠÉ´YÖm_Ö‰t$J©/oì¨7æ,8£7sòòÆÖ*èå�½¾7æ Ý/‚Ë[Í2«ÉZ0ÞØ•ÕÝ˼Ë[tƘ/ ‹ù0glè6˜7ð0*Ë.—©uó èQ·ëE⃑wjõötý(±'zd‘vàíÐéÒ‘îiúµ¯¤×)îøêX0='ð¾w Þ¿r#aý‹0w3oÒ´á;/õ ½¡mNPGŽ2�=F B›ëޏ…ê"xƒ¡P÷a|¨¶¢îª"c‡ ¤3º�º‹":µ—/6-g—Ž“!þ2ùZñ‘¼!mìãÇ»~ˆ‹ãÛµµ³ÜpŠ¥é°ËÔ*óæ­-Õ”ÀÙ:šb|è>ÉÁüÌŠœ…Ñe°­kgÆ·OéH›%;`·ÄAcº“65¾í®þ�hƒç*;Ž´à4- -,tñ¥5ÉcEò†l  �Ì@!³/lè°ÊäÌ,4~·Áô\w?WÎPHnšÝ¨ûÅî:ip<¼{ Ú™pêî©é(þEUrudEÆ Ë�mèèðÕm¡:¡(©„IEpýp”îEoC”õ/–¶PâScOŒ‚`)^ÐjJÜ4Ó�\tDD¯+î²Ãµœ²©|[³ßŠA„X\ÔRÜÏä�Ö4~®blE´ôùAòTÖ£•>å숮LùX6ÿûȆh)ÆëÒÄ–z ³dïxßÙ$õœíe½@Am|ªqâ¼,Ÿ¢"$WEHŒÏ�Z§J)òIùÄú‰_£|\ñ¤ê •¤)ôñ„ã‡uqtSruÄ€J ZSeÐÃ,¨¯XPAçk@g«§_�·Æ–ð�].}øûì[ÕXˆ˜áL-VT@£;M™.è°Žb9öq*–UX ÎåÄl8EßSáo -û^žëtzæàÞ,qçIv†Ÿç�ciS–XÁB8JÔèYžœ¸¬1íÈ¿,VE}aWGVÔÍ“ÒRسµ¯1[ü6;Y§ÀÚóGžˆc¦@;Ô¹µ¶À‘ªåõ­Mm�U[@#ö|NÌ Ù‚Qs† §²æq—àÀXûŒçºtóµû™s÷) 8d1ç{–áÛb ÆòCž`E )"œog -_DòÆ|vŒxIÂBÁ¬´+h�èÀÇ–J¤AÓ oÍÞXýŠÁ«éÚ*ÃxŸR­ùyîÞŽkh<;Êè,±Zj0ýÿ¯*‹Œ+R— ½†gBkÓ3>ÐwÜÓþb9�Öä¸V‹Cv<ŠW¸P9Rk-@ -­\#&°Ï™ÄŠÃ�~‚ÁÉXå+†F: 4ÚÆ£nZ�ÆÇ‰§¬PZŽ–‘Å4øÐU³°t�˜ÆšoÓQu1•¹ã~X¤>²ðô,ÆŸÿ•MoÉÔ]Å~­²÷¿aÉšF“ëUD, Ÿ'õ* ؉šøyyëZ'®6¤WΑÿ<͇)áQæ 2†Tp,Uðàœ -�_¥NUÄÄ‘Õ(µH9½Q8 -p†T¹:[~ÃÌD¹´’RqÇÑe˜}ÔªŽ?,æšßÞ}ÀYÖŠfêšøFÜN%¸oêîæf·³ù®¾5«ZÊsÒ{Ï%+"¨äz• à�÷æ1ÖaíÄDC¨�Ö€n9Ì€B97fÆ+Bq‰QÿébáØàøc‘·À½–ù—š¯ææÎ½¼±Þñ¤6i‘È}ˆwt¼Ü(§’¶¸¹FŸ—Ç›ÞWW¹oÞJš7-„#6ørÒ^½,¦ƒÅ"(-ÐÏ -´é…ÇÀ‘ -à¹cºR¼åQµ×«5uL®vPN€2Æ4£�Ó“2[•jóÙ¿þõq4E+ÁjÑY"ÎÚ^ ?ÊÛ�ÿ¾-¨2ÎÏtW$_ÝúšyX&”•ôÎG:/^�ïþîâ_â·¦÷¨|~ºr Èܪ>žÞ¥©*ÆSŸB¼mè?h“ß�o½¿©éâcò«ñM1ÝR$¿™–‡§úãçç «A œ=¨>«²-cX bÞýÜÇwžÀ -mȉüQmnDœ2­©o]}?wõ½mƒmÉÀèØ.ÓÅ€²0Z ÝÞ0‡sÉ8Ö{QT…§&ÔXøŒ%\°nÝ[°Ö…@AQêtþ¿ߢU/ÒEߌ tºe\¾ñ'.yÓER ·gj[•…e}�{›RZ@M{”Âf'Áý:ª<('‘è¾tt—ŽrÑú@UJSÛê诗u”kÅ6à5zß^GsH !ÿ’ÙÕw¥�%;Jû+ާ÷5ÇÓ -°Z)ۆߕ½ Eèf陳8Âjxð¢¶4­´ë~°[J&Ÿ­Œô„byŒ¬ûµe9{#[kldÝ:€³ò0¹ë6„ïÆ2¬rÉ&{·¬1¿Þ’-ÏŸÚÖL“3`:tÐv5€C§xä¢Oó]í æ®‡!Ôâà�>þë“¿5çÞ†¥Ù$r‘D+ÈîØ%Ðà§ÜBàèCtÿúT�r”q EZ^ õªXŒ”J-ék Å(e¨`1J@*¥Ú`1ŽQP©'_qFÎCåV?.¸É{ŽÎWÙB4k-ª¨¾ª9d¨Á «ðImq )ýÓ<Õ%@¸âë ›Õç@ ÆÐH'i$!¤çI³ ì~='¥éÄfN¾ÂØÒ½¤_8ý+×Í…ÅÂT]8ý¯…Ó/< �C—n®PÿÏ£ž!Z•Ä®±I»¹w!õ/!õK5†II¿Ùñ±­KxzA¹¡EH �¤Jº§¶M»‚•Žl|g~hL¢´�MÊÆ¿LíNñ½®Ý)^eíNñÝ©Ý)ÞvjwŠ¿Û®®\*ÅÆã1÷¸RlH(' ÎsåŒÃà -F:F6ÓèØ�¸'{4�Á´%Öô†ëG‘êíêÀ,mÛ¢[ú§‹@z?†e§‹gøHªô€>Œ]'Ò*=HŠRu±†ñõJ©ØX‹ÁœI§å‚—�C–^ •n®¤$Ïý%™êh¯,…²�«*V -T¦?¨MW§)kBí ÚºDîé¬=®°‹¤ž§²¹'èì^Öæ†¿‚H}QZˆÐ -&vŽÝÃJÝžÕ½Ù}òMmëš'=F¦Ö.£±�3–W©²UÔEÿûyí*˜ñRQ@7ÐAìÙBˆ—UOÂUÅ!QÉß¡×KP±YYü¤›Pc—¯ˆ^ -‚�À§Š>v¾¥ù¦öD¡¦R’™ö¹M9Q¾¬h=œÄTÔ…GôsfxÌ/îroÅ#Z1ä–Ã(ª&é´¨±^PXUœ� ÕW,gÑ5ƒ±`! ¡ÓQ¢Ö@´ÜWr½KÓ5sⓆÂ)¾!»ç.\Û@¢q}z½özÙ=E[š˜ ŽÆN>µº�½¤�yAÎ#Gj­ê¢Ò S?¬i.žòžùl¢j�bÆ“ôúß_¯1)5ïÊkÊHanRì²I9LÔ]“’(í*—HÏ]¢`H$Úv<ŒúkW`§¦û”µÐ2 ¢”Þª]²Æn>»„ ¨…¯¥4{aV´Œë7à´ÃÐX÷—�"$Šekí(ÐZù‹ii¯®IeÅh8„à$Åþ ³s ¹Ü€ZŒ¹äû\×ø^È…5hTxÂCßµIÛºÙ$2ñ^íÁPæµµ€&ƒT#�)½DT>&ÛsSpƒÈ–ÆŸÕÍ”dZ -«<ÎK0šiq¤·hB{F¯-ž]­ÚƒÔóaD>ôðÔYo+~ã@ë€Ò52àÙC·>ÄÆŒ&ŸXkØ }>†ó±“Mow‚8 g𢋶:Ât ~ûdÔ%Pì;^ûŠ¡ë’™º>‰ = ’펣cýüˆS£¸6Á*€¡Ùɳ,Ô­ß©ªÂ\hÐß›"ß´/_+™¹Ö„¢ç1PAÐQ¬Ø)Ç®VHoø† t"¨ˆ\ÝÇaåö+ÿä'~"Òñ1ÌU�ÖŽöZ€ -Ò|tXem!òÒ˜zuz¸úr¯•,µÖÎôܘ_jb¥!cÎ{.ŸVzæ†7RýjßI}û¼�ì )òÉ ,•Ê1C‚¼¡žU}˜kw-Hß;"TU¬Œw4hO©×Ær]ç¯3c=Up€Jûö,Ü"g&njÙ•z:óüd†hjiÁ ªãmÎÐÀ1´–/ä&9j ÁH§^„¡Üp -wêã+è^0ï7Ëa3f¢Ö¼@Äaƒi†<Ú(\Ùn:¤´©ÑÉô[C¹µÍ9¹ªY‘™E§Mè`Ýy#yz¯b�8_ñ¢E4!-ÁÍ{ryÏk&ì–ìÖÜ .aƒ™œ}vžÙ×ß9ñ–²þÕÚ;¥ȳ¡$¯uw'3ðOuð)ŽÈ¡¶¤6��ê�Šn½™d^Ä]-3UE*´@ZT™uÈÔ+m �ÎÄ•Ê Â›”ÈP“l”lþl3>{¿*~[øð¶Jy†Ìë·Y–£Vg²&àää÷ÿô¯Ÿ~üÕ¿}zÃøõ,ϲMº´rk5Åa’¾á8”§ö0Œg%hJºÆbßÞf;3¥©-Šf�ùɸ,tË�†ëk�˜™tÓªAI½��%œ]|•Ãäÿ§…]¯°ISTzyòUÒ½QVõ&òe¾¯~™÷}[�j×dÉøÊ†Ã²¼çÂÿvÙ…g§Æ(›±º½Žñ±½…”Â|fi�ÝŒCíXAcSZó»rdb†«i¯¥QÍØ½•‡™œ6Y- 4²Y„w�ï1³'ÅiK@°Í¾­r i.ÔîfÀ£îÚ;?Nçu@EJ…§¾fy6¥gõ?�tZ/…U¯ÏQk �[[ü -HEc%µá¾<©Ô磄~u=5žFE|y:�«„z}B•¥¯ŠôLB•Dßw_ï ÔKÊœaó VØ€]‡öÇôò¼õ©=l÷—©=KFZ�ÛþGröûÿPr�ï%÷ð>ð8½=¾<�ÖãûÁ‰=¾',{Ö¾É:1î ×\ÈÕø̼k%LÇSEK7·» A�&ñø€F_Rß)ufJµRªgjc±ÿz—̵+\°—Ì÷Êœ©:ÕHCÒƒi.sØ%sT •¤ŸKæûdÎÌm$X#%©,¥¹y—v9žÉŒS§I�Þ#ut%­Éäe�—:îVGvÅhJ6úöÚøa—È-•8xu¹»e>O_)«A" mo‚´Ù%v'­´îû^±sà> -kÒ>@ì"×ËIãʱõ°“B³~¡o³ôw:T~Þ©Ë Z˜Ü¼/á¿3÷6ž·¥?l²0¤íŒëи»éçè…Öt%}üKüÖô­�é*]Ó»Q—§ÛFMŸ~·åòðµc7U¾9ÑÐ(ŠÊêàÊ㈠þh˜�ö£Ú&õ<;ï”Y¤ðí2ÿx¥ è ©jàÑœ[}xí D=Y¾kÙX6�;Ã�Âz÷äu¸£!™ ^aÝpÇ-�p3Ú3®¶3ãä“íX€ 횬ëèQ÷Û”+�zY ÿæûÛ›…‡N¥.³ÇƘÊÖ,$HMß~†…±µ�9¡ì9ÆÕ6æÖ|Û™H˜öåkÉY2¾¶-?ǘڮüä5£¸YôqSnͶ"8»:Š„�o±ý’ùóŒŒ(Áø°Æ€Õ4xª±Ô—ËÌ•P7LH@ï[M^…Ý8s¢ÞÝ«=Ïî’÷Þ•øÇëÜÀ´Û {ýÛåòv%ô2?-�ÓgŽ4ñk—û'޹–60ÒáݺêqÙ«´¤Cå]›ò`™Å%õ½R7•:‹Æbÿå±2‹Kæ{en+u�eþŸ*û{%ëATiãûbÚGnð•øIJŸoöK]œK(õ;!pðböÁmÔKÐc­õµ¶Ö¯­JÚÄ: Žz5Û,­ßU–V¨,-‡ ѵ[YÜHŽ€èÂ:Èø -à»íŘM%Ï]ç)eyl�8¢ÿ^Ëdý2‘¢²L,½Ð®](:›—ÌwÉ\Ö\ÍÆBÿ|Ð×¼D¾Käªæi¶ùmy;”µÈ‡EÚö}P öÃ…¢„5;=Ï -CÝÿþIsbÌÅ*ð^Ûvjÿ\×G-æb h§ö�È»Ÿó>º^bß)öjÐ¥±Ü¿;¸^Bß)ôjÔ¥±Ð—�JÖÂ.††v£Ì �yVC­˜dôÆ„…}ŽCv*Qg•«õ�sÅ,ùršÍxpg¥v\7tã^‹mýb«…aЂ´RêvëÑlÆ%õ}Rµ}µ±Ø¿_6±JTL,Z0²oao`a?ÏrËVš·¯ðÃAC†Hý*WD³~È‘À‘sj¾Ÿ#â�í&xAК¹ Â&ƒP©,0Aº€­RÌßÛ.™ï•y­® µÐ»Éè‡Rr—ÜwÊE%'×^îr“J¡\Þ«ˆ2¯e»@W¯}7?.ž¸ÖnýEaŠd T�ÊÌ;ø�:'BÜ$}7î¸0w¶®UÙ)½e};@‘£êæ„é -LUJÙS w+0UÍù¶³ä'ÂT]KæÐ’1˜ªç®[�©zþšqË0UÏe›¯lÓ^Ѩ¥fáÚ¤•laŸý�&¬~·r`U°5?´Çpq펕fuã4h íF\"Ç!ÆÎ Ã'ÁbèÁÝ.¯|µ‘4•|œ±R{Ó*5ówËKÝÔ£»ºÍFçºïÞ¼•*­ã@>g¡ÙX¥S÷ò’ c9ú§û£ì]¿_ô]4í=šbåÁZ+°³ÃŠâQÂZŒïǯķÈÇ‹ÔÇ7£½ŒwŒÆ4þ`Cl+�€F¹8`ºM®œ.4IÚÚ"áÐ4XMSšÛYæ¿X6€–k¸r`½vª!G�y3´u'͵ˆö-"®ãÊ�NâË®"n<¡4Âã ¬"nŠž ÁÙö«¨ZÈ)«TóåAiÙhˆ^‰ ;ú£K’g5ë›ôØ}ïrâ¡!Œ"ÝÁZY�.´+TV:©ú^E 3Ò†@·ñ/ñ[Ó{d`¦«ÔÂLïN&&Þv²1ñw[™Z…�$+çeó^™¨NzÁÛ¥(!tm€Í•ãϺ‘Êrã^(§á>B;dzÓE#£ÔÕŽ82€PûDZ­Dãþðæ­…B°a¨{ü�æafs4æy®y¸úsbju`÷x`¼ÆúZ*A8�F™Ç/úËì×Þ~LÖô7#  ð&+©5H6„¬‚RÉŠÜDg8$xAù*mn? o»«�7 ÁªâÊMñý8¼›_õ߯Xi”C™¼J?׿~Ÿðñ&Aé�&/¸»G÷ñì½þóïû j=¥ŸÔ ¬*®ú[&öb5'´�›9I_YØí¾à¥ì(P©�:dxº›vÃõø(ý‚—�1_=�ôÈ쟹ŒRÏ5BAÖ©ñ�^%&ñö×ÓSÝS˜ñ¶ùÕDÌÇûBun¼UE�•‚¶ŒTiz�ÛÃÖim 0¡0;ØêÀ8,®8£â=¦‘ÞÝ,HO/ôÍ€7Ýèݽ~?|©¿ê–�öžÜ°þ�þâ­úËþ+ï·É`$n¸!ùÞß$ 2(;)›ñ ú×ï#¡tõñfÀ…î;ý|÷�Ã�úË‘²þjÿúUä‹@MÔŒÒ"k‚’†2†WzXÀÜèF9'„Êd/ût¾Tÿ‚–„µ!¨@n”ÄôóÝu÷IZ Øiå »ˆÝª7AŸÜA{Û¥ù>½ø˜Þ¼K$·Ãýwi8�P4º›‘>(»–e¼õÏ´§!ï^g/‡OôLÓݫά Ó^ -”¶éWÆ7èkï‡+¡3Žý•L÷õéFœÇá'ú×ï‡{ôWÓŸèßÉ�Äðg2ï‡?.Y‡?þðÏô§ÛÜðö‡È¡Ÿ¾E™~\#õŸý‘õÄ‹($!¶4sÅÁHj‚<¥ëåaõ°$ÁpšËM9ÙMIôrS^ÞM‘‚1Ý®q¹)ky¦Àg/¥~0»œ”%Ö]>ʲ�2Odjé@y×ÜGùõ®$fL3M�Ùë^ÐëƒÈ®D�Á€w®UWbÞ”Se–£–,(N™Û5!.ËÀMm‰ -Ç8r9n9¿o™¹›ßíÓ -h°Z ˜É®JÙ¯ô¼Ï;!¬ÐAÉξuæ±[Â’±”[øÑè_ŸÆÍ‡XvQÁ•cýL8 1i‰2Çgv–p³gö!î -É+Õ½viÄÓ‘ÍÕš²Œ“+Iø–�ý^mß´¢EÃn–bNŸ!mÖÎBñJ0!Ѐu½¥ê_¹‘®þÅ¢1`òÜJ‚7NÞÐ:@Ìó45Ь ¨a¥ @ƒAÈ`s%·PË%©7*"É›)÷2êB޵„õX¬Tajˆ ˆÅ´¥ˆtKY«'Nƒ‘Á!Ùâ�É•r€Bô‰¯÷èÊ@©&“8–¦žJ) aw¼ˆ/�Щ�Ƹó ´Ï»br±ƒX�àÄ—TÑnû§xq–ô#¡ÇÅÏzŽð'2�KŸ§ó<ÙGãkH/°]CÝŸeMœ«”« éÓJ½XMœ •ÊÒŒè§ÅyQ)-mÈÓ¡F¢BSX€šNµ�Ö$œ=•¼¶_ߦÇE¯*U¯ÍÕQ¨}r§ÑsRwÉ}·Ü™ -wã@ö\m,÷}¡!k•þún¡3±!k�Ê [‹v‰Ür0Q]"ß-r&ðæ,íaÞeŽL›SÆá”Úñ¨f(8(›Aj.ÿ¾T`©?åA ~ÞªúÎý:Ž�U´–u©’'¯â {Wc2 2û1jï09cMWà8p“Xsà‡ óõ»äÞxPØ ÖmŸ+R Ó&$Ôxík¼ÖHÍÙí@bsPšñäT'˜™ˆ! @ -%˜ÎHZ…E§ÿ7˦!ÌÏHZXPÒHߎ“'d­P+p^tEúWÿÃÖ½*TÚXQBêòú&ÉU[èÊ€UTÒ…jó™µ ¯í@škòf+ÌQÐ5¶’…iÕUò]͆ÛuÞª1¶A »5›Ú˜‹9¿?LÐi*ùš­'`�uÂaý6ÓÈȨ%EcfÍ@Ÿ°à -o -9«|ñÛ#Ûþ$ë·M…Û:8j‘ð­]×­ó¡úÍíPë'¥%䘖h±»¡‚`,õÞÒ-ß•^!Æ¿ÄoMïÑî6]¥»ÛônÜŠ¦ÛÆ�júÝ–»›]ÞÝ´÷`Áô4ÚÝ~QøàÃ2ÐÃzÒEãgN8s†Ðt …åO ¨EGvqëæŒÝâ6„šÙð‚iw>øÕ›©u/Û°Ë*ä(¯ãsuc7ìÃ}ªï`ï¸Å�Yf®¢Æ\ÀmÉÏ@ü{ˆg5|FלŠ: e•…‚ªÜûÜkœ_µP•óëa‚÷Ÿ_µÐ•óksN.….æ>h§_�é©®­Xù•ŠµÂµÚ°Xk’‚¾”¬[?s&ÎûÅSÿ+gRa(ç%„5¦U½N#Á[ë[)Õ:ÿòŽîí -Á}»�U†oäXh¦ÄAÿÖÏ´ð*YïØjQslQ�5û+ÌÛÔˆhá*5")ÍÏðhµð•‘v�öÿX)ƵŠö­¢P)ÄxÑe$E~ìéËHÊ -üXóeT KÉ)«�5jB~mÿ»é€QG¨ŒæIο+®?Ú­qìe-¬ µy¬:mЦ—4?ÙFñÓAÇC+ºïËic15¡hð瀩&„“¾û»‰™0Õâ{¦Z¼Ê0Õâ»)¦ÚpÛÉpÆßmh9e¥ãI+£šÙÍßçK¦FÓ’CH÷à�Ô>¥ó9¶’ƒðVe7c"?Ã0'¬VÀ@„y×î(=FWwý&S9¯~(ÄR€Çƒ††æ}jvÙ™­v¦R ¯¥-ѽ†¥ 5K“Rú[£DÍÖ´cd¿†>W«@¥¡ ->Õ¨Ku s¸„õc]«ì=>TbZ5ËWÑÇU�½f<\cÆCÍŒ?›o(jf¼5ߊ"›í†Ü*0ÖPþžôg'( 6r”5CÎpðDC>Ë®|8hÆ�¦<�mpþgmÇQUìxnªõó 9êš!OÉ|ŽEš%oÇŦMÍ”?Ÿs¶fË͹íÆÜhЭ|¢WŽ®fÌ9žjÍG¤‡±~„œPxЮ#‚BMã�.»¾Ã®WŠ,Q •TÏ·ë¡f×S2Ÿb�Œ¨Ùõv\\a×�¬ÙõçsNÕìz{ΉƒviÆ„Öî‰vÝèš]çXxª]_Â}Ô®kB«vÐnÖfÝTzt”r`Ô�Ž·Ó̺15³ž’ùãdkf½טuW3ëÏ眯™õæœGc/$e­Ä.³®%PuêhWâÕV³jf�cá‰f]ÌKú“òmÅ÷Äl¶ðÊ€W¢]ýöŸµ…·µü¨ô EÈGä>ÅÂÛj‚4%ó)vÊV3¤í¸¸ÂÂÛjŠôùœ«æH[sîóAû® 8%rpÛÛw[M’r <73¶—Ù¨c�XxãGI V„–⪖ÛjåkéS@¯^ÀÊWó§)™Ï±UÕj;.Ær³ƒÖJZb©ÉÓ2�¶ê�r,<ÕZÅ9–ú¤ÚÇ8Õ -örq@B¯V+×{¾ÕÊõšó­œrœ“æjÝKðÒÛëtãèÉ©ª¢3³¿8hY]g/˺ϲVJæiL­ôó-k­d.#ó)‚9™XÖv\d†NætÕêå^€mµz¹Ç²m»·LS�,bxb±7ópò–9þ�è-ÿýÔ›86›­¡ Ü ct?Rú2å[M97Ç1šr«A  Ïï2çæN¦<%ó96©V&×�‹wMy­FîØV«‘kͶ٨øÖœpµ2»j(|‚Õ/¶ÚòZN’eà¹bš|œ™:VVÈ3 ~ð`µó_Øc$ök{ŒÄ~ `�‘دì1û5€=ŽÄ~`�‘دìQ£m”3_ØcBë˃=&´¾<ØcBë˃=&´¾<ØãDëëƒ=&´¾<Ø£br·.°Ç½çkd¦DÓÄ`¡ñöUБ™Ä¬¥­ü[øT´Gäæ.+EG˜Ð”‹]· -]ÌØeÔ£ñlŽöˆE[R1ü;ÁÅrBË7»Ž`“Mhìøçm°f^Ù™éωIx2B!2#€‹ÐÙQ,·-!3é7± ÁÉ¡ìú™6¡@|Í'nRûè1q!±¾f^2™ñÁ‰}x2ô2ƒ‚ûÐ2p¹™!ÁZy�H3£ŸÎ6ÆÑÒ”i Z?œm«�U“u=€xNW#2“„5"¸žÀÖˆ�c1¢*«fòdïš÷ Iðˆ}gÆ'öýU ‘œøgâ!3@8±ðíñj&ÞULüóçk6¾9ãÔQ#IðŒ´+2ÓnßG°@…zì¬øÆö8¸5p=hý/¼Á#ÖŸFœXÿWDf4qbýŸ ›‡ÌÜßÄú·‡Í«XfBídýŸÏ8¬YÿÖŒûpÐö?m™�¬‰õoŒ6øi|·Š ú4xÄžÛš=¤Adæy%öüÙxyÈÌóJìyk¼¼ÏÂBÅš?�mÌŒ¨Äš7‡<ìË?f™ V‰=o 38Ÿñ�õ@Eþ �¿pxfˆXbà_h™‰b‰�6\2#ÅÿX¸¼œ0S1ðÏg›­øæøŒE¢s»�?„3xF°†™l•˜÷Æ(ƒße˜O–l™?Š-;Ùüæ°ƒÞF¿šƒ}ÜAdæ�%FÿÙ¸ƒÈ KŒ~kÜÁwÂjIØç³­š…}Q¸ÆÄè�k<)JÃÌÁJÌþãàg­Q­úÛxĪ3ãÇ&«þ2¸�ÈŒ"›¬úÓÑ‘E6Yõæèƒ5«^É»¾Ûjy×ö �ûFB$Výh£¶·D?Y„xµÕª×2¯­Aó‘±›µL®ŽŸ:fè/HÇC†ž™G–úÁtDf6Yj蟌LˆÌl²ÔÐ7Æt¬zfâWbèŸÎ¶Zе9Û>3ó‡O -É3S±R3ßÑñ÷¹aþÍb7Ê4î°ã!ã^˸¾ ²#2Êãþl„Bd&”%ƽ5Ba͸W2®Ïg3u*1îÍ�µ>hÞ½ïŒ{âàdFb%æ�caÓQM,ü0yÄÂ3SÉ ÿ*“ÈL(K,ü³¡‘™P–XøÆP‰U ZdfM6þùŒ«%]Û3îhÔ1˜ÉS@Ù‘ˆ•ØøÆ0“SÔŸ‡iŽÚ÷ uòˆ}¯eW_v™™_‰}6~"2C¨ûÞ?±fß™ÉS“}>ãjùÕöŒæ¨}2ð$2ã±ëÞxò[&ÿ.­‡×E¤~'À0Aµ -®Ñà„ »jTi§ Rë0 «¯¤‡³‡W; ð"²‘s )¦vD–Æn-ÑKá•6*`B¡ëÈ€^¹‘°þÅ¢0¸Á]²ÞÉ›D„t>C #G¢B «†´ƒ�Áæ - n¡†páÞXWR&éOy\l‚ãF½°NòW—!h|É›çdú Ÿªß¢¶§psÇ¢ªi ^e L".€ƒðÀœ,nVcѱd�ˆYåZÈtä®IýÀê/xIQkÅ‘û€ï*(QÞH1·Ý W‹ �ê&u CÚU_+ÖZÑ›tÀ9a‰-Æ÷'?q|«sÇ‹ÌKßœ`’Æ;N(Iã6t¹qgÁ€3>VÈõáã¹Añ•ø9ÉŒW+¼T6#¹�Ïó•Îù²° -óaí’­êÌÔµ’î�&½å×üÚ˜‡¢)*”!¥°¡_úMœhiúAÒ}Ü[Z�=Ò�édàtüÖô9ÒÓUêI§£©Ïwºmô‹§ßmèL3#ÿ´¢�‘X{T�WDãm¢ÐŸkæ€ñ Q��Úøöë®8(þøX#?,[ :Rqj3ê7Úób_WK€ñ3ÊÏd‡òh -J›2Ú'éRG2¾þÄ[-fLä‚ë=DýF9aj%w½Š¨¹é}£¨=‚³Ú…ŠzÚþ2“IÞN.·…@&�a_Ä)ðÂé[P œT¿‰ñFÁX-{ã� -ïÉNR(røKüÖôïé*5ÞÓ»ÑÒN·�vxú݆ƛÈè�TGWµU¹²É< £œ„F¾K5'œ9ØQu©BÄœò§DD˜Iˆ]ÒiýÆnØ™}”†tVÛö¶¦ØþÆ.å”ö™ëYuùCÅåw†R„æ1ÿê<ËhÖ»¿³Oìjä *�Èãxw~ÒmÜò#ÌxMÒÜøA (=²¢nØUøÆñó¦‹ÉÒ̪ˆk½1�’¬Æ”±•ÌŠ?_†Ì)‰ ­hçÔ!u>©”©)%MäµUçé8=îh²ŒøG­¨i8T·¨´ß´Òð) º´³fèL´bÖ€‘®{;áeúÏrc0 37�FRõ0ØÆ¨ÿ÷oOÏ j8¢¤»Q€òfW 6 -Â!é>¹©ñjÛÒ3ÜÀå‰!º¬ÅΟƒ)屎'›©úš¨—W ± Ðî‡Ñ¿³õ}àŽÙì3?þ-ð¢Ò¸,Pñ]>˜i˜-É¢6¿æIfŽNô$i  ó(ýkú’F�՘뀉Ë^)×ÕìÜD·ð%P½¡m¨¢¨»xÛ]}¼iVWdgúwó«þÛã•+�r(“Wéçú×ïS>Þ$!½ÓTVÐÝ£ûxö^ÿù÷ývhPVWý-wÔ>) ÒÙ�|œèýix´‘q9S„`�ßè¹:q¨¿Ÿñ>ÏÇÛæW1ïóiÛx5r[�•‚Â)ß{¡í)(”©*xRz€©hc~¥¨F0^ÑCéÝÍ‚ôôBß xÓýÁ©áõûáKýU§Ú{*Iïßé Þª¿ì¿ò~›F→Mðþ&•AÙɘê«bèõûH(]Q� Ýwú7,øî!‡õ—#eýÕþ M¿PÔÉùŸVsèvkŠ€ÁðJ>„7ÆÓœ e²—ýºŒHÿ‚Öƒµ!¨@ÉʧŸï®»OÒRÀN%ÅE¼iZ4AØS¼ÅÁmÿ•þåûôâczóþ-‘ÜF ÷ߣÞJ� q¶F�쎠«Ô›\3ëŽiï­´^g/‡Oô,Óݫ΢ Ó^ÓÏ+PÚ¦_ß ¯½®¨2”¿¿Ò ƒé¾>ÝHå>úŸè_¿îÑ_}L¢K$7ÃOœÈºþ¸Äº?þðÏô§ÛÜðö‡È Ÿ¾E‘~\#ôŸý‘õM˜(—²à¼w¼oÒ øÁùgY°?Fqæñ‹îõo§\ä­‘…«fØ(Fñ©â¯jeq�áæüI„ Pçc¥8(²29�ÀøH5z™L« Ñ)ÿÁ/dlr¹¨ R÷ƒráéXŸ“ cqeQ[2>�®¸ -NJ24fx^¥5�>ó‡­Ê30Ãê¢3¦Ø ¥m61r^²¸63¼/+ˆ„T’BR(”îy]І™Å§ÐJ%%Ïùã Ejm´”±ã Rjl˜9}4”ת °�ʬ|H¾hÒ¹S»k\þ±_�5Î1A‚”Nm¾ØBþÛʯʄ½ÂXfÍFxƶ¶j` -!CUæÍ[9fL.æ>ø'ZQ4c¤ùþŸþõÓ�¿ú·Oo–­ Ò€Jô#§vuÝ)¨ØÞå³”­‰¢¬=2“ÆsMÌåžôĵ«vᇠ0 4Þ\@êÞ•3’Á¨à†V¸x¥$¨€Fw&{ºØ~JA(숔à¥ÍY¸ªÐ¤‹¯ƒë“´Ý Ø…†‹ûÈÜëCòR-Þœ· T>~ƒæÞÛD¾)Ô®,úÕióæ»L}?§væ©xÀôïÿš{må8:Þ»«ùÎÌ`Bƒ‚Ó’eã‰{ñÎižöà‘öÙaY�‡:S;Ý…èDóË‹põa€$ýhÓÞñ÷(sªž 7Þ.Xð†ú̬'ÃkÅä£ms¤–òy写¹‡ÂR„›gÝô¿&鹊”áôTÍ�Û²o+wZÏvMn*ó²o©ðf¹çœ”øõâG*^k1f  QŒ£Š©ƒŒ¾ëQßµŒ•]¢öLs7ÜÞ:Ç+û©GÞØJQ£Ð,› -ƒ ‚ígk4Qïü ð�÷5WÆØd UkÆ@ €Vû›³ŒÈ8m)ç4Šúyœtέ_°K®NMŸÑIв+j­P¥“:yKU8Õ”;7¦/îŽ|z�a†ôŵÊPuª�k‚4ß) $ÆZ—dTsá¶«š1³þH£¤>ü˜‡ïNFp(¶Ðñ6å§ŠúÍü€þMµöl{˜‚hЃEAë·µ’ý�¬5™t¸nÒ�Rc$ã "zaM3NÎKƒ—v\öÄpgœÆ�]>NðˆÊk{ØxBñhc´ ûvÊ“l 3¿7ÚAã›õþ2Åܱ~´¶4°bcŠecLÅÆ$kM PÁ±ƪÊefü&V¦/—¬Ìš -þY8#/°ø´‹}V™Rk,TòÎÊvõÝöà´œ¬ôô×Da™qÂÑŽH¾Ëª6 -2©Ê”–™m|%[=Ic:f+dÖâ´å|ÌÎa -—¾™ÇÄØ©A2ƒª/ÀeVE‘˜©ÂQI„†€®�’è;ƒšf�Ús0®¯–àtP‡d]Æáœiëkò˜ÉÄh< D - ·–…]1÷1—X*?=Ë -Ìf3­‹ ÐwRO+}(C�BÁÛ›• -”HÑß®J¶M|Ôà¥ØÈǨdÛIøUɶnU GÃz®B¶×-d3ZÑÜ,Z‚O‡B]ul‹³A×±Ìfê}Õ±íeÞUǶXÇæ˜ŽIíÕ‚5òãyg9XáÔrPÞШ*+ò £/•7!€uy!Ïc'v·1ãyw^Èl<¦ýi“ï­V„|=ÓˆÆòä¿@dù~yÒâ ½âˆSÄrVDmÊëÅÂ/ç5/Kx)faÂ߇ûèr±.u¯ ø†Ã±wˆ,f'.ÄpvÇ0æùü£|4`q–í¿þ‹m}ϹT*•Æiª ‘¯ie=y`t¸x^b¹e3ËñîÔäg†—(Y-1áürb‚£¸i0}WÀ¶2PyÈ-Öã€ìƒ½Œ]Ù¹²ò ºž£ë˜\IÇF¢¯µ¾Æ}4f}н£æøy Ò�K€Z™Ç+îŽA´ÆËeKf U(3Õ¥ê3ŸŠÈ”¾y1à Úì õˆ*+cpF_ë"+¯–‹¬ Rk¦Ó j¬JlÑo2º*ef±V7åuEôš0l¶‚»ž‚2åqy©1T�=‰ Hˆ;Zî¡¿[js*>7ZÉOÌÆ•�ËlԄƸá¬�<ÈžÕèTUþÌå'œ÷è=ƒÒ«†Û.k“BA¨v–[•� Yæä<òvÍ#1n«î³öø3µ^"9òH‹ÂÀ ßgoÚKü¨Ì>/T)@£mE‘v“?<4å'Ti:€-(߉^èï×èNE5ㆠ^ÓxŒfº±¢²‹™=�”4ä™�~oAo^bÌÄyTÐÙ`�¼iÌV°Ÿbc9Xci x©Uk¥ZŠÌõ»Ø<ÀqwÔò²£ô¥Z@¸&*�XÂá -–RKm=š{e+Ãoó ÎR�£XÃ�¸«[÷<'^¥ËjV”<^��\|ÿ`ËÚØ}i­Gæ1Ø9�­Oó¡Ò2EÖÇ"Uµ@Á—|ybÝèê4¶PéxBG¨|6¼dÔŸð½÷Oõ`ÃrËË»S£þeÜfteK@•Šô­•+÷-N8û�%hå´íô øamý(o?þû¶Bcm‘ugâ«[_V¤-8‰aTšµŒêj}üKüÖô^Wa¯Ò&CÓ»¤4žJöâmCÿA›ün|ëýMM“_�oŠé–"ùÍ´‚&׿¼€ -\ÏÛƒ°jÎw£>×ô”9&‚ä›Qù£Ú¦ùáÆ)ÃÛÑúvñÌeç/kÖÝ�‡¹Bã [^…`_€oŒûé4xç½oηϺoÐ ¨Ž‹sË‘tÐMmí0XCÂ�UT¯x˜Éw"&f~ž¥žînZÝ÷jOµÜ:‚Ö�"$äWˆ[~³Ð˜¼¼Ì2“r§ùGŸ²®ˆo«!øuý+:1v ª¶wOÆ%Ýfûà§ÑsËL¦‘HB:iZjaÇT¿l¿˜!¹4RÂ+š©ÍýФeFàÆ%kmT»i(IÖèÛd¸IaO7LÖ±ÌàÜéäD:�0t6ÑæGüy^>°È–”ÅBjTSyt¬=:�¸¼o—6º;†9}îÿ’-ñêj®Ìp@­ ~º]äü;fÈãRg嬂6“óʽ©ÆˆJ! RtZ ©^3&@ý@Zê]ƒÎ …dP™¾´jºÚ°ÜdÙ1&À2¯I輌"ã‰Afê+ÖzµðŒ¯WCÂ2ÃuI䪣-Hò�k“vÑ;yŽZD›—«<(-‚åŸàãvæñ¬Uck¾]ƒ™·!¤XD8VÒN…Ö -�;¦Âç4<[næ°¤¶aãÌKèpE{™ÙÀ%x«üíJè2sï "©Âqºš@•[fÜ�1”1Þ>——•l²ÖŒ! ÂÖÝ…eŽƒC¶áG'í; æ´Æß4RXËíËÜ!ù ÂåícrµÑF0³ø(¡h=mœN5cõö{4é¹á�»Â -ÔËÌðC‡¬@õõÊ;r³F�âºv@˜ªfßV�xØ9�ŒÄ3–ÜškþlõSO-PÇM4¤�néÕTy_é:Њ¦Ñ)ÂYlŠ‚±¤[ç‡uù®Z’±¢ÙÊrsµãœ=þÌ÷ÕíÌúv† e”ó�ß‘S†¾‚ì~êGxOþ¦5ED Šõy)Ì\Â~nG '¬‡–¤œp¼3¼S'Ыvڸ§cfNVN:Šš›f�þ"ß)ïVOÔO� Ùüšp¯ªÓešy˜ wíÞæx-7Ñ’KI-�¥vЛ¶¼ †¶ìräú‰Þ43¸�‹+Có$Y>>#j4›Õ¾vŠdÆãQ´Ãè– {�ÁaK¤ëi¤oûµ6Z¶¯9&:CÝoš°ë[Ê"<ÇeþÖØ9fšÜdì…ï à[9áÅÁ¼2f]Ñ#7y1Ùºm ©åÆÛÞ+Åó©I¢IÔ6¹¸3 Ý *PµÄ‹¦kñK[§k¸a�cºFI‘b×¢OþçSëÀ8/tén8µ<~Ddá,ô¾8F×·È0�™¢Ú*©¸ŽÊypN†FÑì)¦ÞC±ðÝä‡vÀ¥¬š¿È~v¡Dõêw>©+±‘󾸚¼+5Ê0B¾Kr”.„P}R³0+KлÊob¯M&òuªm´ÿýï‡îÓµg±¼®Ã#¤6Ä©\Œs|ö¢>“Ö¯7D°˜™~FPù¸=ÙMœ¬·®A 0³è �ŽÎ!Í„¹Â©g†Ë%¦�ŽM¢QÁÝ\·f�¼Zp,;:æ>)cÁ…üÙçÄu>“'±óLúGë¸HKQÕà°ð”¾ÑMT"h Ïèþ]òS˜‰x:„‘4BçU%[± ´\äû™y]Dˆ�…÷E#`œt^4 -ŽîGþ¯g}“/qÅ�Ëçoʵ—Zç6ÿ-ýïûâ3Ó8ÉM-ó•UÊŒ¨™¤‚P*”�ÄòOÙƒL½8ÝõßÕSÒôï®:;µc=8 iAT–5¬‡é� ëAU8¯)žìMã«S’òÍOé[ÿÌû'±ë¢{ÿßë$¿WKî)�£`3:¹©ôùÕî f(Úu“ç~úþG‘"¹¬=n:h¤ö½*LWÒƒ¤M¹;pޝ÷9ReÐàÔ0àåÅIµ–úúhdâË“ª)Ûá¤?ŸÔ@]€Èãú"�ëæœÈûZ™ï]º“œu9T‡êbŽÆ¥‘¦$A±ªo£ýÏigòg‡¥D’Áµ‚éo†ûS Ë܃8­*Yu�å�Ež -›� û†aáè-rƒ ÞåMµ•g²Ë:.i¡vV·ÓñY9Z÷/îRQÛ6ެ=–[• 4Ù‹§çÐÝöåR¨ù»ƒ°þH³ÚoJšÍÛù¯ñâøèiH×F>¾Âxñ}„_ãÅ×­*^«�·5]ãÅ_j¼¸² … ®[H©Ò(¬k¾ø"Ë‚p¡·R«Ôj\Æwsïš0¾4aÜ2SG©æÞê8s9¨îÑ9J¨�4[wÜËåšs’ EôfN^¾Ëj½¼——÷^�†‘9¿œ—õ Ö°¾Ký¨v¹.‹¼»<—eÏ%TÂkÞñÌ?.¼V�cfdO13OˆÿÅàÇSݬE+ªN5ÉÅþÅ?,)Ö<ÃÄ™÷U^ÍÚôÇLñÿk¤5ÿÝÏ‚a}ë°Ë1Œ÷òÈä¨û}¢ý£Ô(t•if,®Î­öÓçeŒá˜®øïG»Y{Dv]{p–:E?ãF`R~2ô˜�ÍÃØ‹ÕQö¾(³ çŠx¸cFƒ'³ð¨÷WÒmˆÑè´7¼ï÷î:ÁÅÄ™94Ÿåæâöæ©p‰Ð�ž�­õÇÙ´??êÄhGMU�Jëɦ×áÔ4�&ž \�Cç°¸p®êhCkðÇ7…œŠ´PÇŸçþÊYØÊø]Y¤‹í÷éŠûv…ùe”wŒ6øˆN­×Üh@KI=‰MÐਮõyÙHÇ5Ägiÿ�j?E +xœí}]×ä6rÞ½~EKZkõîjJ@¡ðµ^¯í•�ÄÉʉ�öΛ‹�9%9£‰3žŸüûœâ€ šMÝ=:Ô…†àÛÍ.V…B}<õíß~øø?ßþùÍÇËï¿ÿî³ÿs‘q—Wü�# ÎywyóÓ·oÄåÍ¿ñÁ{”Ú8×ý•ºüÛ›÷Ý×~ºh¯­6qy7 “ÞÅ�}÷ÙÿøìígÿôÙßÿÝ·#¿ýí·üÿú/ßþáÏÿïÿß�¿ûÝïÿ.! +5h)�¼8é%š‰6(¥5d™H-¼Êë‹’ÞëtG¤&ÔÒë‹” ¬fŠã[ÞêŽÆô’?ûÿþùýoûí÷ßýÃß]Ä·øóû¿þ—÷/b…­lB,)©,j¦­#%‰ojòBzô~öû?^Äå�¾}+.R_þø6�¸üñ§þúOBˆ? !‡qøW½¸ñO4ü«‡ÍËÿãþìïÿXxYy2 YW|TÝ<ðŠù/xj¨þ?JßD^üM/2¾Å Ò×ù› ÿÚîß×É>?3þõ}?’ªð„·Ýÿ?D |yesf�“Ããeü€�ñO�„àø‚6ú±ð\^Âp&¼ô÷q¼O/#‰hª?8r©ð‡”ËÃÏŽ$Ë”¨^Ή*ò:°®FWÆŽðK‘dJkÊìë( ÷‡±ê¿-T~3äï�ò:å-/Âd¥Ýªß¬'0ÙBsžXñʈ®°»¶‘–ÁK¥|§„§‘”`iÔi|µAÿÚ@ÎèÓ¬ÆXW +PÔi`¾•FOñ&Æ;DweGºú‹M‹3j”鬓êb�fNl×°U½”®é˜T—Œ3xœzç°¬é_êGqùñßnž È\á÷¾¼ ×Ò�dNuó`¼Þ±[BÐRбT*ÆJì¨ ×;¨4΂Góò *µR +% rI¼—~Xüat�Ø#RwË}‰Ôùº_ø�I�Ôªµ ùµC´�^½ˆ�4 N˜ËOüpÂi«l|5ü]\Þ\‰ñý�“ýd®îEô@(¶½ûÁ«nÄ”yƒÙHƒ4Lg7õßGŒÔhIFWñçúë71ï.„�Î*ÞºgtOîõŸÓ¨#@ÌFý#o磒 Q¹nõß"ý@ðOû�œK¹Šà½±8ÞèÙ:±¨�/y�éãcÓÑDÌ»ëŒå6ŽFv#)$v/ßKm×ìDPZÚÉU ÚR6B°ÈßRKg/l–ð…ºhpºûƒÅáúÍð¥~ÔÍ@åœD7Üé <ªö_ys›Fâ†òع‹BM²²ß ¿~ågÖwßéopÝKê‡#eýhë@$T',^“Yër�`qÐÖ +aêä²ÿ+Àá‚׃1Þ£gý¨€(þ|7î>ÉK�º)9L\¢Nsj�ÞEÏ PÎô_é/ßăwñÃû["zŒž¿az+Bè^i0Z­f™gÜÀ3圑ƩärøDÏ4Õ]u:…¬rŠ @@e⯌7øko†:˜ýH�òºûúô ÖÑðýõ›áýè]üý-=H ?q$ó¾ûaI7üðÝ?òŸ.ÿ~¡Ë÷�C?} +2}·FêŸýP8|©¹y¥&£U²%ù Hö¹‘â�É +í\wÙÝ”™W/Ì¿œ35ÿPrf nœáìöòŠ�:ï�×é3G¿BæitêÆçΙ)–bôÕˆÌs’ú®Ò3gú›¯Ë#a—½{T“ŸA@j&=�º³¤�¤†ëxŠzòÈ%,ÜvÀ¦�ö Hôg˜ÓrÝc¹ÞÄÉÓt];? 0]™§áú¤†«vàPŸvëzÓK;Ðk'÷iµ.³î4Z—ŒV½ÒŒ¬­ Ûö†®™?ctn´#uÏ2qÜ`°gqƒø•ÌìMœ!-Êâ‹jÈ­4|ÑŒÆÚÛÜzKMïðç…Ý æ>ÆOü˜›Å%Szû}È–ªøÜY@yY@¶6Õˆ@.ó&Ê9–s²|¨� òŸ’òq +§¼9Ò.'>ãÓi–o1ËoaäéB¬â�P„†õì>¡…~<™Þ…¶R~ž'Ö­+e@x:ŸÂ�‚¯I�GŠõv1 PÉü>]á[™wž*–NnÕ©BiÎ*Ýž�T·ôFç±T…ä8¹l�úÉ–Õ®%©‹$i�föøÛEwðÇÛÎ!qOÍ-Ñbà}|I\Ë™Ù\Î ¿hK¾é¥Êtz%ÇøBHð\8UruEmêqv’Nµä˜©†«,32nÝqd`1:³ÿ°©t1~3[F‰©�¶—þD8–'I§A¾Å�NEt²&:iÀÊfr $ãHñ°ò^WÇ»ÂäE‘rZç1�òó¾•E߯ìÛ�š47sšYÝ¿—ú”Ió ß¯!ÖD(,�òí¼0QðóëGï„nµ|40Þ�v ]2g~ª-‡I!kl¯Å0Ó6‹x¶å+¤Ÿm_Ô•zeb¦[E–æÿ¡°5.9Ж"ÚoãISJjŽTw®sµ7~!/V¨ P×è<¨!G³‰õ±Ja ½ØÏ–j ’ÙœízÅ‚4•éØ6l—T’Rµ[_�5çfc‚W­À«¦¢xy%ùÄ#„£€ç@î îžòei鋈V§kÄS«Ÿ7¿ˆÞu"l˜»añW$äj²d» µlH÷së/Ê̬ÆÄ…_ÔˆqFÍÛky#™@(ù–šðÕ\½~•Há—ËÇ„«“¯"/_“—‘àE;SâÆ ¥¯7ñrÁüžé�quîÍw¤ÑZUy]QäTd²›þ¾,3¬¾Œæº(vO´ÝÆÂß—§^mÓAY©’!dR+êzUmê¶ ë›ÎëLy +VÇQÑ\ʾ¦'ÅóM.kMFÊøÃiç8g>æÌLYîËÕ¿kbÁùf{sU“²¼çöN»m•-гã‰=ÀïµTÐûËÇ«=…W’'‹8šÂƒ‹Ø´!Ðh½~:Fj Îͪe¿°% ÐÚ™±ŒiKçn‰/’yP [ õ±7détP[Æ}Žª°›ˆ>ƒøË¡ðÛ¤†ÂWÎNŽ{œ¡ðO!Î À(¦åŒ„¯ æ2ËT2½ÏHøVæ�‘ð¥H8 94 Ò¼hYÕæ¹FWB⃰*Áõ¨——?þ¯›ÏMÊ�°VšOÊ ÚFôiPå|$ ÆñÌ?í©ãì©hržöÔ“ÛSʃ7^š~ƒ; ª5:C€¶rЩ=uV+mcÝiM-ZS…{?9ÿÈî—åg¤µîúƸj÷﯎®ãÙWEbA©OÃÈÛFôiäU¼f7Iÿ´òÖÍNÉW§•÷IxÍAv´œFÞZÇJpÉô>½f[™wÚy‹vU¼f’•³zÍ>!ƒjѧAµì5»Mø/%ÞHøi®[U§!ø ¹ûNKðVŸÕiÅ»Ó\´uÍß';4qÓ¬ˆ3ËWÍJ3ßr|ža¥ºîsÞ N~jλ[ˆ>mÍŠóî&éŸ6ÛÊÙ©ÀŸè/Ÿ†óN8Ðþ4Ùnñ? èi=`Îi´U¸wšm‹f›©¸ï§ÿ?«ûî2©¶}šTË^°Ó¢jà;-ªOÈ všT·zræÕ™õ¶‘w§=µhOÍAEHƒ’�_ÏhP‘C¨?-Õ6¢Oƒjæ¡E@MZª[¥ÿð€èVÊO[påº:mÁ'·µ­hÐ�§)¸®…®TfÔ§wí(î�Öà¢5èjAQ¡@6D(N!­¤�بݶT5aVUOd0Ç7dÇö% *ãç埯gd0\ó¦$)_‘•ö +œk 8‡ÈÛuÖ^€Éˆ>�ã Ü›yš˜+g§Óà íeêibÞ!€Ë €ŒŽduš˜WB�Ì2¹zzŸf…w§}¹ØÇZ,GoµC Ì&à³DooÛQŸ$z{ÚSÇDoOsªAôö4§>¡èíiOÝ�<Í©£XwZS‹Ö”¬y€œ�íá:7Í‘Er×6êeœ³ÏŸüX(•ëÞ<…5YZ ʳ*o#ÍÜë™øBC«Ì{ ä®Ô¤å×›|�R8htpI3®µ˜Ð\¥•¼€ÞE#»Jìö  "M•dŽ$…ê‰+ U· z^ÂŒÙß[Iý™<ÔÅ‚—¸¢cÓlÎQeÍKÛ%zöcû9Tî Rmy}Ëzš7 ¨®¦Zq—6$Z߈Q·„d™|³Ó9n<žg¹Ý¾ñøxžåVÎMí@JéÏô‹OÁ7n¬Ä¾ëÂy˜[çà5$e²eœ§¹M¼;�s‹Ç¹Ji“ÖÄ陆}ïøi›âg¾Å4y|Jë6ºO“jÝ’:MªOÉ?~ÚT7{yO“ê Ö�Õ¢Eekn ’IÕ Ÿ5mðJ ®¯•þéÕ�ÜpÅ"�ÐÆŸ®§}æ�D † %ý©x[)?M¼•ëê´ñžÞÆ“¨Á“´àiã­ã™­ÅÀ³ÔÈ;Ë–¶2ï4óͼyÕ’T¬ë¸øŒž3© "Þ¶±ž¶Õœ�PÚOδÚFøiY­\U§eõü–•2 b>,�Ó²ZÇ3 R<Ýgòî4¬ «y‰±$¦Ôðªmî?K}bo_^ðÞ{ãu”š¥UÅäÓ¼Úõ˜²B¼zÙŒz”/¯¤X‡Û�åÇ�Þ»)ÛuLM¿žä˜•ˆ¯«_ÇuëXL½â‘ü*"ïCžÝ÷2¼^ÿ*}bŸ*ûåõ¬>’y¢«¥l6ƒã5ækð³Ž]Q·O…L_ (-JU|�[+ÝŽí+BÈ-Ç­Á +ôl&( BØtÙ�+eŽ9�Þ #/åêÞy^YfÞy^Y:¯Ð¼f§ó®u\lm î)n‘¹™\1çE>‰”}RëѰJ°q{Zaû¼Ý‚eØN+ì8+,šŸ§öìF˜wìâï„uaë8摎eFØé3ÞÈ»Ó[´Á楷’Á™uÇÆ;aƒ£tî2¾ææ|{[:æO-Šm…ÀÁÓ)xÊöþµµñÒ²¤•òýL #)ÁvÓd¼ÚS *ÍœÀëfè@¡cû°|eGÂú‹…j}*ÔNñÞjÏ:Ùç§uä îVï0Õ�&/¤7é¬_�s/ä³Ù5àà +avÊZ xq°¬•/­õ¶ck4Ú#sÁÂäÍ>D`âÈò¾ÜI\y¦”¤ç¯#J lÖÐ]té6LZ±$q[¬–#¦†<ùœšCátvºKqFâœï®@ªè/iÀdù;fþéA弿 +Eò×4ý}å¬é–%NŽ€Mðf,F™©R³aÄ„N^iD,I_^!bÆÈÆŸ×íøY5²·üÄŒéáÓã8yöð>¯ã·P*Ù4® ÄWbÙlôª&IÐjãûQÆÙ„KJ'ð@ã;Ú}‘ŒåªC¥ÞýŒ Ð0Ñh‡F$Cl' {7�¨EE#jÏÛœ¸»FÌ—L‚³t´žÛ¢c³I]®ù¸sÊj Vf¼ß;eQrK­ºi1 öLXrà¼qx¿ ++–(‘QsƒÍvmÂ^þº¤À/Ë7?$Û�-©ýϳ vŸeí®±˜ .I‘+3äÀüE¼Ë~™¼Ñ•5\y!U™n +�­ÝÚ€ˆ×üÇ,Mƒ’�:{ß\3ìÔ,ITqÛ›§ÔÈÓ Ó„ä¶Z€*Z@ZÎ M©y-0͛ਬ…¹_Ä[Ð=–_óصP\»¿Èì¸ÔnÙò~�zø‹bZÔð� +WLe* + ˆ¾O«ããB#–eþñ…»3¢øÜEy VXkî§Q*®å˜[}A+NI²x^÷ÿÈÌü<�3ãªQÑœé|†¿ *§»ê~祲¦ +åP(A9!tùýï jú×ùUéM¿(—Â'ªé©yX”TÎÉÊI0ŠZÙÅW \I%ÃÞE¹ÄÜ1•¼hexT)pðõÕç”]ôZÁ¤)Ž#xQÖ€RDv›ÒáZ;(½qt2¬)[˜¾ö5tÂÔÄ\H4à�6Ζ m;ÀD_Í�ÿ�¿£µsŽ;C‰�¡Rg©ïS¨fBËH4õÌÕ +ø¶ œ$|]²-‡%¿Ú¨Ú*ÐŒÆVÅ £FÊSšb@“÷¸ñ‰o77ú�Baäî—c3A¡¯M΢Óç}+%¡ynÁ; d‰°m2k}ó&|³Ð¦\‰B¡Ä,ªfOyÑc8+U&Ü0•MD ˜ÜžiшDÜNõÞðâÆV6‘"ûŽÛD¾‰ÕÝØø²"éBSP ¶O‡(ÒzÄÌŸ¢«[ +V,8ï¥TO!êb£Ndú¨¹¬_¥ÆõuiÛ¹qh=§n¹§•¶“ວX×vnºÎ£Ö‘×VÖSÌmóBÌ-¡·às +¬6ŸTÜRhð¢§ïñò.µ‰°ì©×í¾àt«H»Ô!‚5Ü!¢™´gÙYó¶.±;$³éÇH¿´1ÎÝ-Ý ¬®Ù$Àj§ZµµNàÿ�^^I�ÙkyrYrB™jhטÕvn”Yg;³ºô¢Fðl4YV–átFyËk~ËN,;9îóy*¥@H§ž6ùM)9'°qò›µ•ä7…JŠTì‡%¿�ÎN©¦Å9§G‡ÖÇìÀ1™CÏ4Ûóîù>˦Kxà*“Fpd›¸: Å—SþßZ]u¬f¸µãýÆÎLŒKæ�{©X�Z¤)8gÏzNJÒŠ›9ù °U[I?+�Ö®-d÷vªªÎ¤§*Aâu¤ûE`À+ï­gÒÏ<�ÏŒ¢Ø@:KÁ7sï¬CZªC²ì*É?Ù±±­E˜‹¢P×F$vÍkб»P ¡M'ÿååÇ»-¥bÔ>|øUÝ)$\]zŃFZVñ�öÑ`QÏG&4á/á[Ó=ÖAÓÈ‚`¿‰f Nw”Q;Ööá±¾ÿ ‰~7ÜzsÁið.úÕpSL�ÑoÆK,žNÝ‚y»N¬vÏ¥'ã!`ñxãænE©yòù±ÙlÁ§-nºèø… …èuÖ�"ž³kOîÄ;¶èVý»iàyÎ�žºi°áô>’ŠN�±ÖM©t 9"ÙùÆë=t’’nPGj­ç¶m©Óh±Aß§FÚ€w_¿HüzÛ¹½\]>«­^r_LjÂùv¶N‰”pš/Å|»ªD†L˜�ׄèp’ÈSsÉ®3ÝeÁMÁ5$šÈß�‰·úË¥,Að©`YÑ<K y{\S£<™;°Ô”XZ;I`Á÷@Ð!É'a)–’Ç($¦,íˆLkóËÄhvÓ18LÞŸ,ÌPQÇ/�–kKµRî)‰ÀkÕÊË’§¥>£ayäPVòÎÓÆŸŒ1è˜ÏØó‘}Uw}ׄY0 �×%ïæ5ÃÞ/öªt³`”áZÙæ³¬ìü[ˆ<ÌPª /ØØ^q(Zs¼r”RËš�w9†ØŒáeŸ”®šM�œ*ÛeßÄÝ·fÆí¾Ü½¼�×8É…j[« ŒGª+ô|7 Ž/ˆb,(Ô^x:šÖ£K¢¬/¹„þéyÊ U^cŸŸTåAX%ñi)õ”ÖÖ±¦x® ã©+†}�{ÀºZ¦÷ µ¨Ý¿¶îÉÛÖ×=ÉÝ¿Æî@íäA ÚI#ÚU kІqmz•ÆXïùÊÀ%ÃÂwÂ-.?ƒ¸ú<Ü •âÓ#CyøÉvµçRͽ9èÀ3W‘£˜ ¬P›ƒ¼Ë‰£-´ 3—[phd«ýüVÁÏ}UŠ»XkT¶¹à½Eêİ6ÎuJ}»ÔçqLr ˜­Í…þ›M˜É†ÌEoJ�2ß"sš;'µãr4æjk ÿqùNsŸŸ!@©;¯Å^š€üÊh�çlÜ>çÎAÃX¿ZË;ØÂl;×W[Çù=§Ø·Š½�Lh�z®6»¢MîŒÞ‡Š·ÆSî[å>wM; ÒßÃÊìjp–·ŸbëÃÁ" Ñ6 +Ù}UmBWqÉZÜl‹Wmó‡“7CƒÚȹÉÂ�”Õ¶”íÚc‘JñHºð—ð­é¯�i/Žén˜ËÓcÃLŸ~·åò0µã· p:Ó9öø�êÅ”´Bž�±šaÒ~ÄÛÄž†–,êE +ÿ²B^áüêÁ"Ir÷çÜÚ#¬Á“ŠíÛsÝìY7…s¬ê~øÁë¦Ðð^k@Î_ø¢)ô67ÌÏoÛžmµí¸Ðf|ÚŽ…fµƒåª£¤\/ūԡĉ·?wßÞ,Wé2,ù©cn×1¥>ñaoö e8k÷S1TÙšcÊ£dtegnÏ7ܹ1Ÿ‹f×¢1•�ù±‹Æ.íË�_1®²-·fÚÇMŽPǾEwX.?SÇH¡¸ñà;¦6y%E²Ð„;XaÞpö)¿ô19g6Ôëky“ÉSÒ2’Ós�çÊ~¼VˆWhËêXaxj–^IþÝgX:Í-ù¨Ïj:×üê5_è}>Y”–¹ë¶W \w‚›}¹§Ô7J]U2-KýË}‰§È7Šœ–Ó,Kü·•ͽñ°¶kÈiï½·W<')ØrºÏ/Õ-¡/o¨àY@y +U„û¶P«ÁI‡g<ñÖ•U ˜Ç-Ž’¡ÍÚú«ÊÚ²ËkË80ÚS/ì&‹«2Ÿ¹l^'ƒ�Z [NIï Ôpžâ•»–Š1`„ñýñü\*ë—Š«,íAxÍ�Å[™›Òî37O±o»¯˜›íž-±n29O±o»Ë&g{©«J±¥­¸@´"ÖGmvƼ–:ÇÏÓÍб ¯W8Îù¢-w¦4Ýùá\ 7,�šó…<8GÔN+Ò¾ÍðúF¡×|/m…þ«}ûà)ñ�¯¸^Ú +üUe ¬x^´àÆÅÎÚ» dσ¸¢eÇ‹ö Û[ –$Ç ›å­Ö7Ì9Êhùž;v¦É�éH¹>-ë\jë—ZÍCŒUR7LÂÛÏ8å¾Uî¶¶©6–ûr#iݲ–% 5ý´Ñ²fáå·+U\†¸õvŸ2S¼U’º÷<'õ “ÚW”™’@Fº´ùÆ‘Êìí>UvJ}£Ô�¨¨²æRߨÃ~:$œrß*w¹|Jh-ößíªƒ?E¾Uä¸\ßZ佫ØüùV‘«åZóæÊýõ®JóSæ[eNË…æ­eþ7Ëg“B³ûp6ÙMÖUÄÉ GCõñ¦sHxG(ï±OqOm/Ðö(~Ò€ôäÈr…íÿbã:Šp¯«££¤Ž"Ü�ê(Âc§:Šð»-§q¡Ï *=oÛÍã�;¬³Fh5üYWh8£X…t€½XwHwN¼ƒŸ¯Hr¹Ž}¼íH.%H'YýÐÂ=+Ti “ÐV讲 PE=Ï Í±lPÝYG«dThF¸æ'ñ»Ån‹¸<-Ï…ª*}]áªöà­kVŒ48rçZÖd~ç ]×îT7*SÙ47¯ãf²mÂeçpŠ|›Èmmh,ó?}Ø$t…`:/Ê)ô�B/û�ÖëöBgyó÷µmJ‚䎞��&þúz~2\ÛÅxn¹áT;/:0†{²"FÖ +Ãt(1Þ_ ·X ‡A¬„ÃÍ 0Ã6 ?ØRûe£Åpk@c·#Ì_¯kÀã=Ã…¯¬,XèJ�Qä2’Û©æ_,k@,X�Ê‚qÊbKŽî³gxóðw:—Ѧe„›2ŠÝÖOºŽ +v·1@Z8z†uT0 ­òÞš;¬£ Í&%­’ÎÔiéÛ•W¥øÛãÉ?&ip³¾S�'£ïMÅœ)Òîܦ�2¶aç^$0ÒJìËtPƒEi¼ç¿›ð—ð­éë˜i+™éî¤eÂc'5~·¥ž©d kÁkþvã*Äѯ–¥Ñmþâ�9Tw˜?çUÄÂÙ‹(b\ûö“#$ÓAe‰„)­µ£ŽeÜø†1¬ïå•ï½7~È}|Gdf ‹æ¯¹ÛúCÌoµw¿ƒ¼ÆúJPÁ°@­ + +‡Ì�ü< ¶m“QB€qÜÅXãÓ��årˆ–X‹\D§8$8Áa+¥¹n®¼êFï. +¼Ál¤Av+¶¿›Žúo�#Fj´$£«øsýõ›˜€w BHgÛÁÝ3º�'÷úÏ¿éÔ  f£þ‘·×ö)A „¼•‘ü푃ÝÞ NpàŽ�• +Œd‚œpÚ2˜S7ߤ8Ù×PW÷£<°ú§A*£ÌÓù€à½±8Þè'Ä$Ü~<½Ôµé2>6Mļ».âqÆ�£q¢ )xȧL?ß¶p5,,.{võN¶ZЖ²‚ÕFüšZ:{1 _¨‹§»?X®ß _êGÝâQα Ößé <ªö_ys› F↲ÕáÜE¡&îßR�oÐ_¿ „òèÝEƒõÝwú\÷’ÃúáHY?Ú¾z‘ Âa 0œ{ä4d]ä=JÍÁ ®î®Ô°~%ØÑˆ²VË‚Ž/ût–TÁKÂïѳ¥€(þ|7î>É«�ºY9Ì]¢nÑk�\BžA œé¿Ò_¾‰ïâ‡÷·Dô1<Ó çó‰"ÛñL&5xu– pÆ Ìþà=ç´›>ï) Ž’ tÿ(z”ø'BwË¿LèqÒ +Xz Ó+¼3%nµAYKUéŽÿ}7ŧIˆS¶–XQü�|8åjy¥ÍøZfU(+$�âC-ç>‰+;Jwm½´¦§Eµ|×Ö³·�×j V +mO©o•z!·][�S›Jý×›Dn42Jû)ò�"/¸…Œ�.¥°­À³IàVƒT–xK<¾Ià‡w$P¶½bÿ¸ldP ˜Ô„Ó‚¾†æ‚Çïcˆú}j~–[Œ®JæÌð®CçYújž„*ËäU,`Ò5&s �.ÜÕ„É újĸ ¼¡Ôà:E{H@^=ûm6Cµ·÷hÊàh#j¼6^k¯°!âzâj^ŒA….Ã�‘ÞM/Ÿ‹7ÍXÐ ©•ŸÒ5?)a¥–®ˆSi�ŒjÖ8ûg]ë@•²Uí´6ú9ºq¡µ…î¼ð�¡§nîÁµ6Æu;xæšPÙ¦ÊS­£ÒÅ�U 5šmÖiUÆXò@Å�Y×ÚZÌùýv‚K›@È×l<k¬ëºœZj×û0Åp›O´B¸ÎÓþ[fKQ ·*mï{6ýIÖ5n«·5kTsßøõõþzýæ¶«Ì“£jŒB´ØÝù$¢d¿»�0Âu¹VDá/á[Ó=ÞݦQ¼»MwÃV4=6lTÓï6ÜÝ4Uv7²àº¼Â6»ÛɪÑCµVmªNÊ�ò1!û!þs]‚ÌA ÎKÝš©·š ¶¦4ȪvgƒŸ¯Íàj\å¹cíq“º}UÛÁ Y>™�ðÕ©?KšY:‰Öx÷"CÆEº ¿¾¼HûwÑs¢»´m¸ë3:Skë×m‹P3Ò6œªMõp€¢ËÝnß&ÅÍ &UüB%nEë·ì”i‡`M`D³%~T?2-o'–ÍMÖ‡©àXj)%õXìO¹7X‰Ü'$?Äô0ªºoÈÑž¡¯÷EÈÏ5´i Q%>þ¤‹HWð ž`™ +TóEô¶BXÕX—´1iòîq{¸› åÜ4Ú>¹¿E–Lø¬\úˆÚ�`•�Sµ»Y€ Íîâ{&HZ“ô~§Ñ!è1¯±‰ÂTàÙ§½¢æÞQÒu×á/ÀU¸×\…QpîÆWÃc'½~·¥â¬8öÉ+ŽA«éÍ¿NŽ_µ9m v;:pV*—ÒùeiK ”½¸!K�åRÂjÎg&Œ¶7¿^`ÎñîfŒôóUÁ7œ¡ïMšrœÎÁœb¸½}І¼åH÷�§¦¹QÓXUÑ4N�³ê ÕMDæcôŒ®é™fL,'ÿ¦”ÕÒ+È rU3ºê–\#û + W¸bS¿TMñÕf^Í®%ËÑjØ’’÷R¹¡›�dn->"£ÁHJ[¹´£´îCë1:«%­áÔG ™¾’©�Korܱ;ÎF.=[péÙÄ¥g‹.=;wéÙ¹KOßÁ¥ç*™ DRiÆck˜8ù«1üZ;t”ÚqúÑ¥“ù�Þ‚®”­@£O¯;º*0®à Õ:ìôäœl×4¢–éT ž¦�x&�ßN×?ñIT([è eb+MYpÒkì�ü]øË”˜îu™a”¤f„»aQO� K~úÝ–zBWôDç¿îí°Çª SS•�Ѷ¦%šñ0À�U(+81I ÙV�ç[ ,EƒUhè|Û œ1ªYJé´be­Õy’•}'ãiäÀMfÔ4XZ¼¾à³Óì•4ì³+p¾�«Ö(q2Ýÿ·±8¢óÇ}Yv0ެ˕DêK®N]~«.÷5›X©¶[‡)s_µùb2¢•|ÕækÇÅêÜSM�?žsº¦Ï[sîÃNu®$H$Ú}ªÈ³ÚðÛÔ¹©©óÔçóàáf¨ÐQ›#‚�J¶KÊùyks[Ñæ|1¸«Ì]M™GT>F#ùš.oÆÃëª\ QSåæ›²¦ÉïÌ·ÛU9JÎBéõÎc,s%°¦Ê çjAÒöœÛØT"hxV>8*Ÿ©x¬EI‹,<Ôpð'^Ç:]¥¥ø;Mxå¸'¡“g¦Ü�•¨©²Œæ&¡�VðX‹š&d>DMa-jÚ�‹¾k§šr„qÂ=.ú§°j‰–Xx¨š MFãóãN•d5ƒƒ6ì9ñ³6:±ftDZ›Ç뤪Ñ“ù�T5:Ûqñò‡ÂªÉùx¾UMÎÖ|ãóî>]n5¸,-ûΪ\U-Î�µ8Ó*Bíõ –Øò>•ùe^h?)síÇ⡇*óRÓóI™Çd>D)•šŸOʼ¯*óR ñI™?žoµ¤¼Ö|ûýNMn ˜QïÜõ3`¤•Ø£âO£[Uy-'¯È¿Æª¼ãë1¡?®\ÔŠð,�Ù¦×+ zJ øx·A©Un¤Õ‘�ÑMµô¼f øîË„[ºN:ý±\+u�4z[®eífS°¦Ë5«Ã ¯%¸é�­§Ø[—VñåN…J*qÖ¯lR¨¥~›A¡’à½Ú>>ÔVj¿9©Ô˜ÌǨ‡ZŽ\C.ö Á*tÕ䞀mµ¹û²ív;™Ûà øÀì¸BïÉÈN.ñï@;ù»¸qj,´;sBy�-ãTç·ªóZnœ’`„x|j\©%å¤Í#*¢•J½'eÞŒ‡×ty©oâ¤ËδjR\[¦e}»oWåª[nvSí +¯ýÍ7*òRýI‘¸wlåÊ\:ö¸NûX%�©öªyïÀpó¸OÔ1û €:Z?PÇ‘ÖOÔ1û)€:b?PÇ@ì'ê¨H‚Òhõ'êÑúì Ž©Ïê8‘úü Ž­OêÑúô Ž­Oꨄ˜L­Ôqó‰ºÐVZ ¡lÇÛ'AuT…þÒJZPèx‡¢:ªBKi…ȇß”‹c¢år«UèˬH…ݾ5°ãØZœ�ÙµiÌdvŒš±|¾é©…ÖŽ?oµàkjáI@U¡¿s¤ F¨ +�~#¥ÐŒPP…2¬é¥­ñ�V ¶kÚY“ëD÷é‡p�~(4]ŽôóªB£àHA<ÞNšG¢90`–�’V0¸Ð�$AÏÀ¸‚½¥8Äæ•º?ãV¯&»ð ÆBß`E¶'°92`ÈB̰G‚w>^wêù1p—ž¯Ú�O¨ +ý‚#5ÿhè»B»àHË·†¾«)ùB¿àIÉ?œmª¦ã³íÃN¿/ð�˜k¡³m¤Þ[£港*mÄ—°§MŸ÷êûSp�¾/´ŽôýÓ€ +úG +ÿáÐx…澑Æo�WSù®¢òÏ8_ÓùÍ—%ðß®öŸS°Ðt5Rü�1ÿ.Î|Ÿ²'7VMJýÜ¡Ó }»&�þ<ˆ‚…Æ]“N<.^¡qפÓWÑé…Þ]A§?ãtE§7gÜ^Cþñp‚…NU“Bo 'Xjá�¸é~Ÿ~?ñ÷)x[SðO(Xh)ø‡Ãâz‡E +þÞ°x i…¦\“‚8ã +=¢"ßžq´OÅïÃ<ÂWSh_iøÆh‚¿Š|0“Án«^ù}0²“Úo 2ø³Öú…®b‘Ö”ÁB‡±Hë?e°Ða,ÒúÍQ³–‘)i•ì0®‚}VxÆHëï�g<ÈUSètéý»Á3Î £vªõ¨q—^¯…\Ÿ©‘ +íÆ"½þhÄA*ô‹ôzsÄÁŠ^§B#¯I¯?žqµ°k{ÆmëÿéõP�Ê€$å™|V at›Z§BÇ«H­7†jÌú?L­i�uüÔNM¢8îÐôTè=iúg�q¤B²HÓ?Ž� +}È"MßƱ®é+ÁÖ'`\-ØÚžq¨vjú=PŽÇøæ©Ð+Rõ�¡ÿ:Ë©±eį̂9!w)ùB'²XÉ?¦#z’Å*þ¡è„TèH+ø¶è„5õ^hô©÷3­umÍ4±Sµk ¤úÚœGiöjÔuο–�3Ú©ö\r—j¯Æ]Ÿ]’ +íÈ"åþh˜D*´#‹Ô{c˜Ä*ü,Ú|M +þáŒ+t™ŠT|{ÆíõÀ<Š� +-°"-ßb2*‚JÓãJ…?±&wi÷Bÿ±H»? Ø$Z|EÊýÁ¸‰Th:éöƸ‰uÕ^ ®>œmÕØjk¶)¹S±?p’ +ݰ"µÞpò/ÊøàˆMz:¤Î¥€…OsS‹*äj5å‡UãHJ°Ô±|¸Ú€‚€�QÌèÓ<;•eªuë‰/…C¥ÑSD cY�¿®ìHW±8 +hÁ]°Þ²’T 5&ôtÔ f"pX9H·™tˆ‹¯åÌÚ£Êù³ï‹;þT11žüLœ–þj Ð¥Bšèô}ü; ßäJ—å=¥Ôk,Ì3!@9™~oP‹´²¯ÿ»ô  Ù‹œg­Û öÇ�1Fô + +=X+ Ó¡Äx2xÆ[�½3sg¼9þŒOœð~Ælhë”ú‰¡ß³´ ñ#m�Pš¯†,«<¥¸Œ-¤£”âvø/–7ðRk1"Æ*lÉÐq_Æþ¡Rs1Í; °çZ€ÿÌñŒZ±ÿë¯kâ/´¤°È›ƒ5G0Ø€B¿¨¦–Sµ©ÔÜË Ç–G[î~“°vl®“»çû*9sªlژ⋂õ�êô±õHL³£BS-…tO_i;;Ú|�!\ei)µ%ÛU‚7¾ýꙕ€ôbË­�²&Gó&HùÂ~Ñ>Ù–§VÊ¿¼Ç£`µõ­Ø°v�d•Pãîõ1cf Q²ÂXÛy"�д4>5eï-)u7³ŠÈ—Åu,¿‰$6V2ÌšqUf[¡ÿ™ +õ¦Ûâ‚Xíïs Œ%³o&�/,± °7Œn� �ªð`[O…rsË_ŒfQj„„3yunÜ€ä-¹†sc|�4�šF˧4´œó=Šûó�ÒÐY�¤{Ìæà ³Ñvî€‹èæ§öe +Pš}ÝàU7zwQà f#®)âÙÚßMGý·Ç‘#5Z’ÑUü¹þúMLÀ»‹ÁŠzÝ3º�'÷úÏ¿éÔ  f£þ‘¼*¨@Zs+#'‚Þmä\ÊUï�ÅñFÏÖ‰Eýx|ÉëL›Ž&bÞ]gÔ(·q4²ÁHÁgÛ˜ñ½Ô¶øªÂôD6ÿ½ÙÉU ÚR6BöB†¿¥f¼Òñ…ºpúr÷‹Ãõ›áKý¨›�Ê9Žvõwú�ê‡ýWÞÜ&‚‘¸á�¬œ»H Ô$;!sðf †¯ßByÄî9ë»ïô7 ¸î%‡õѲ~´} H †wFgÀ+á£(¯gßm*ŽgÃp¥†ÍN‚½<Ö +aêä²ÿ»z† ^Æx�Þ²ŸˆâÏwã¨›“ÃÌ%º(^5½‹žA œé¿Ò_¾‰ïâ‡÷·Dô1<Ëüf(DÍ»–3`ЯÕlD7°L9g$W%Å—Ã'zž©îªÓ)d•Süû¨Lü•ñíÍ0b·3¿?R ¼î¾>=H�u4üDýfxF?zÿDKDÃOÉ»ï~XâÝßý#ÿéòïº|8ôÓ§Á¡ Ówk¤þÙE¥à£AÖ1KJƒ£lr&H +J‘îz¬†i©svœHíÌôò¼­Ì‹Ÿ‘?O�YRoˆ"”ÏšÙ‹ÕÌYóíþüþǯÿåýK1„gXí¥sStäJgåÛ#5_0Ùåwš6ucAk-]£wš�÷ƒäj”Zœ*$µ—eŠ�<\lJÀ�ªui¹9âh4z;DÃ% '­:µ3 ¶™•,e•B]®‰ugb°½ï±»0@�¥4\,ž€KQGϯbÙÕNàH¥q7ÌÂk'àËx¢�BŠÞp©ÝÄ¢ªê–æß§ßëÑ¿‰ò’uœBŽî´è�¢²0 +=T•v 8û¦ÌÄÝÿq¶uôÿ_#XVæ (#ØjkBï±D¾,†›çx«9âe3 ù~–�\SÆ¥F®Á-¡”âƒÛsº%÷¾s©œî¬(uš#±eö5�÷5AüO$�¤£I¸wÕBp…–VH +´q´Ÿ®Jh0dï—5d�•… ¡îæŠZ�z“¨OÚbåm´ªZ¦°Ë…ÍnTmP›çX‚óx!zŽÀñÝz þI(]Þ8kó§”á�@Ò ¹×üùMñ¸4[d=蕾M©.µkzåÌpVAŸäZÕ,€B3ªigAÂíª�°ƒçõ ±-ø¡ö†ûáç®e{ß`}fH�ÄRÖ�#8½¢=“?Ï9]#µ°‘k‚„¿7óH~^IÖßÿ|Aµc¬y£’maÉA�b_+J +Ͷªî{$²òÅŒÀÖ™¬…>V!“W¿¸t.–Ê:ÆL…~±Ù²µ¢?™rzëp~ÝUcvtµÙI©…^YaÒH/r†c3õ:$lαÁFþ¦Æ“oÍä+ô×bëÙ+pÿûÜäý�®àáe²»³õ.+>ÕñÔÙ�þ²®ßW›ˆ\̤;æx íR�3x|C¾‚Å~šÝÂÉAÅö¯Ó!œP„¦+÷#™"'œ¶Êã)DÌ#×/ÄxuGÒÏÀ÷ÚµE`(SnqÚ¤Œ*8û8âéØÙ]dÔá÷u•x S ½JËLŽ¢mCüæ¶Ç)tsšp¶3xn5�ÎÄóL‡«æô5>ãèBÓÎpÆ»ñR“J qÝåǘ±“�ÚYùex§5§°?lk(ôó ¶–Vœ¸Þ¬›gÒð!©%­ÚŠOKMNvV‰øA�mîsËpšd.F‚pºÏ.>Ý⯠M<9»ÎX"½{Õ°Hºy2’'q`Bå#:ïèBKO4,e¨!GÛPU(+!ÞXk…}¾•`ï=84í¹V;ãZ4¢Óà�ß/ÎUhükÊÚu¡C#z«¤;€}WΡ2ãF?¦½¾…ïÜê)¼Ì’¨V\èR�HËåT–‹îZïm¥ú†º@ �#ƒ�CŠÃ™Ûûw]#wpáÊ,þÊ–Ÿr¡`‘¶‹­ÚÍ…5¹1ã«fqØ,ª;¦ýæÞù8šøv=˜¼.õ”œã$Û¶Âÿæ˜à²4@^rE&—R!%LrÍg�®–´;ä„Ñ�&y© £ä&O’ë ìlâ­ P2SzûlöR÷FÎáAÓ\M¬Ú˜ +ý§N`Ü ÁöÝE›¨ÝPf0s)¡~y%ÇŽ$¡“Þ’§Bß#¨s*yyáêå…¤ÇåcèBoKNAE¦¯$µ;­˜Ú<+™iÝ®Þ|žÅ-"¶Šß±­+¸|�ü•IÊóËðÑ2Œn•Éœ”\¸hZË?Ë 6²¬ŒñSµ)Qj ®ùœX~‰–y`K•`ÁumF•„3x¥´€$ 3ÝXB¦kÝQƒÐÆ“yƲá�qÀJÜØëÚs®57Udà +•Έ'p+ïFúpF_kWq¡©#  ],‚Ù|ná)ÎN:™!If§À/ùôîì,.´ dycG^w:uªÝ>»òt3k,œ¾Âܸ&tÜ Ò›ò;´Œ#.%m¯+Ìýj˜š {s=/±Óë˜ÄJ]hÔI–Û*z«Ÿb~ÕæÕüÜ@^ƒRƹvój…?°Ðž“¼r‡Ö¤öMúWjÉ@XÞ5_¤ûÖ“–¼ðû´5ñ¦'ã£1ݺœæF±–Œ(ïéË)kj ׿0ëBŸLm8`)ÐÜ{¡Ý¼…s5?õÀIQè[9máF�TZ>|/µ·¬*ŒB;KâH0r…[éµî¤| ½!‰Œå–¶{éZÌn©ì?Çn»+ ’Q`‘|3Nþó-§ÁBH2¬1¬v 69 ÊEƒ,ÎÚiñkÍ™Ýòi�xZÍèk}Ä+´ØšŽx Œí¬lpÄûbj42‚c,Ô8D-¯G'nøˆHü°”Mú¬˜bÕÇáÁÃé²¶DLeR)Å0n�J½~;ÛÓçðjÅ¥…šT£{îå®*‹¹%Iš+……t»YqUÛ�"òב«pô÷€`ÝÌú/ü¿ßwŸ®½ÌÜ #çA°_°­XCì³v�‰øíË+Sl¦þyI’ß,bê½_#h_™òH ù ùrž>8qRUz¦éBk¨Îº±Ýî—;DðÁ¦O3œßæðXY×ÀÄ?œ¨‹o’£Xr8(øV¿Ê;Ö¯Ÿ7….VÓ¼é‘ùÓÖ,‡òvU¯|y5°1¼ÐúŒ†eϾ‘êÝ·+µï +4C]è�E^CÜîæñºÅ¶ÑBN ÒHºSiΆ6x�ù‘æá\Õ»+„](F¨½=UV‡0 tÃö(i­Pî=réll᱂ÑÉ5£ï-aÛÙçŽÏ"�ܳ¢C –´µÞR�(ßè ¼9–se»—ŒâBÿ/ÅeGL›ñœÙ�îbAÉE1ý>IY¨ŒŽ÷Y~VÈbˆ±2ÞçÿOB)ýƒºbÍdÿ.ßLÃ^ûü¿¿ ;J”¡·'ôÕŒ©HÂY@e}#Qüa¾/Žoð· ÿ‹N—ï÷­ã�­û°ÀXÔÎ �úñ�€­°Ýjpi…Èá `äú4õŸ»[ÿ˜¨´d÷é]4ÿuëqazz‹Î‘–†¹ü¾é—Íò��Jc)ºcø�"ÎÌ^ë»èª ¤r½è§‘t y§ï¼ãõÿÅH¨òÀÅCŸ©¥ê»<7©Ú8‹öxJ=çö�®îip;­d‘ÑÏÜþ©Ê‘4î˜ry7^ÄΉÄý“ôDí‰Ü?1ç4^Ÿ’é>å–½©Æ(Ð|¢�£/�ëZÛØgÅdn ¿Ü¤ôS²çβ4ˆžK™(mŠ~˜ýüìþRqÕYéZ)pˆc•Ð `W K ½3'–jePBÇñôó ßœQT6„6jï$+³›4�QR5›ÞqùõÔŸµÜœ=B쫽V„D +P¦G¾Çß|®Í±ö6²¬Ã]›ò€lÐ-�l†u6©[ÏFœÂpŸ CÝ6ºÏöt«–4µ£oálN÷LÍé4vÍL¼íVj­€³7Ý"˼°ž•†¯ïÌÙ›n3÷ÎÞtK½ét¡7¹VŒjoÈ +Ó§IY©oÜoOskÎH ±Çâ4\4\¦éyš.Ïoº�eT¿NËe%ǼÑEÃ¥~L;í–EÞ�f˲ÙB�š’àIÉ»8Ôê FWüd +½~hÂÇR¦RšSvƒ—­öúó ¿F ¶ ˆì}ÿ5Yþq3ŽGttìÕ|û…®Íš[§Ú;ˆ.evÈ8«Që*3 $wŸ„¤i¦ÔÈõ•õ+8™á�º€ó¼–±oø2¿ue¦º-O¼—Ô¬mXÿv1¬ó±>“¦ÈÅëRÞñ “5¾Ô‚ÀT�”ñÀ•K1d +V_±Āܶi°”ã犥Ýz³¨]ªøk¯YJödœlgÍî÷\¡ÈGYÌšÔjß +-¦µ`�´ÔZ8åfÉ3 "øEí-*&„öŒSi1í¡š}>y²øø Â$›b³äÚÚ«še}¡�áÃ`ªI«0ò”ÙÚ›ÙŠ¹I$ê4üpÀŒeM4¸ÐËXwË �x½«êዘÔ/WÅšk ¹b¯¹4V%Aúsè •=€Â5†ó˜OŸºh£LÉϧÿÕÞ£bhkMŠŽõØ­(Vi£¢S ¢QÞ£¡zü+´*ž–½µ`¤jW%`×!§„cb”¢×ÂzkÁ.^ïíî7¼:O¿ïþW#¯`H%™æH�èɪ\0Õƒà›}‰ÆÚ" ÊÅ–k­³Î ­�CÖ¹6œï´§æ°šv>o9Šs³ëCñ¼šÔ2¤¹`FGg2ÿ²»Ñ|?]Žß’˵smd§û—…Ä­�Ó‚‘)1eý‹qJ½¦Ã¬ÐìÈß·³{VŒ›@l×¾žþÐFÄ•S'ÿûW‰jHmì$k5ÌÓ¡¶¢¦+%!ìŠ&òíÄ ÊE�˜»öØxóB"ÎKÙtÏ…ä*TÄŇæ‘+é¿­5"]¬\¯¬¿á÷.µyt™~}÷Œª­ _á?j†ÖhÅþù¯ŸBožÙ(ÀvQš‡ÌìBÇò‰³’@(k›Oìy&ô4�(~¿0«²àÐ\‹_7OVÄ-²9þO�¶ô·Êú¯¶;º®OH6Û¤ÿ0½I�@\ž½ ,(åö@G£f¸c]zW�ûݨkïX€šêú{;­w¿ämiY•ÐÂÊf~3HŒÜ§¸Æ]h-Î@ Fxu±�{YïKû]ý›P’úÑæ·½ir� º2÷]WÍ+°}—Òñ¥’ý¿Õè.@mJ ^�pû ?<Í<´Òƒ'ÃXB +›€§EàVY‹½ÅÕ–ã"¿åÿjÀÙ0 endstream endobj -477 0 obj +409 0 obj <> stream xœ}�¿KqÆ?×U–X 94%MQKS�†Nø#Ô¦óüQ vÝ÷BšË¡©hˆFk ¢ÙÆú‚ ! @@ -1733,20 +1512,20 @@ x ô’0l+ϽߣÈy7½®Ó;¯×«É¥º;QŽ?V.ø_îtFÀà3LËEÆK¶)y ðëz”80eÅIPö¤Ÿkñ‰äT‹/%[Ñp” å:8ÕÁ…ü¶¼+%¿÷dбÐŒ"ÂÿG¦·™ `d_¿{Ù¹ÙÖ–gzžçm\‡Ð8rœÏSÇiœ�úµ­öþfæë ´½Ô1\íÃÈCÛóU`¨ ÕS·ô¦¥]Ù ¨ŸÃ@†oÁ½ö ãâ_± endstream endobj -478 0 obj -<> +410 0 obj +<> endobj -479 0 obj +411 0 obj <> stream -Typst 0.15.1en2026-10-01T05:35:58-03:002026-10-01T05:35:58-03:001application/pdfzTz/YZTHTW8Jt6lL3JCjNQ==zTz/YZTHTW8Jt6lL3JCjNQ==proof1.7 +Typst 0.15.1en2026-10-01T10:48:31-03:002026-10-01T10:48:31-03:001application/pdfsDYzG1owUeua/6xjRkGG8w==sDYzG1owUeua/6xjRkGG8w==proof1.7 endstream endobj -480 0 obj -<>/ViewerPreferences<>/Outlines 16 0 R>> +412 0 obj +<>/ViewerPreferences<>/Outlines 16 0 R>> endobj xref -0 481 +0 413 0000000000 65535 f 0000000016 00000 n 0000000069 00000 n @@ -1766,470 +1545,402 @@ xref 0000001363 00000 n 0000001431 00000 n 0000001598 00000 n -0000007201 00000 n -0000007306 00000 n -0000007387 00000 n -0000007530 00000 n -0000007687 00000 n -0000007755 00000 n -0000007836 00000 n -0000007907 00000 n -0000008009 00000 n -0000008077 00000 n -0000008220 00000 n -0000008291 00000 n -0000008462 00000 n -0000008530 00000 n -0000008624 00000 n -0000008721 00000 n -0000008789 00000 n -0000008945 00000 n -0000009110 00000 n -0000009178 00000 n -0000009271 00000 n -0000009382 00000 n -0000009538 00000 n -0000009694 00000 n -0000009762 00000 n -0000009856 00000 n -0000009950 00000 n -0000010018 00000 n -0000010177 00000 n -0000010336 00000 n -0000010404 00000 n -0000010498 00000 n -0000010604 00000 n -0000010672 00000 n +0000006284 00000 n +0000006389 00000 n +0000006470 00000 n +0000006613 00000 n +0000006770 00000 n +0000006838 00000 n +0000006919 00000 n +0000006990 00000 n +0000007092 00000 n +0000007160 00000 n +0000007303 00000 n +0000007374 00000 n +0000007545 00000 n +0000007613 00000 n +0000007707 00000 n +0000007804 00000 n +0000007872 00000 n +0000008028 00000 n +0000008193 00000 n +0000008261 00000 n +0000008354 00000 n +0000008465 00000 n +0000008621 00000 n +0000008777 00000 n +0000008845 00000 n +0000008939 00000 n +0000009033 00000 n +0000009101 00000 n +0000009260 00000 n +0000009419 00000 n +0000009487 00000 n +0000009581 00000 n +0000009687 00000 n +0000009755 00000 n +0000009911 00000 n +0000010073 00000 n +0000010141 00000 n +0000010234 00000 n +0000010317 00000 n +0000010394 00000 n +0000010534 00000 n +0000010603 00000 n +0000010673 00000 n +0000010760 00000 n 0000010828 00000 n -0000010990 00000 n -0000011058 00000 n -0000011151 00000 n -0000011221 00000 n -0000011323 00000 n -0000011400 00000 n -0000011474 00000 n -0000011614 00000 n -0000011683 00000 n -0000011757 00000 n -0000011825 00000 n -0000011894 00000 n -0000011968 00000 n -0000012036 00000 n -0000012105 00000 n -0000012175 00000 n -0000012298 00000 n -0000012366 00000 n -0000012435 00000 n -0000012512 00000 n -0000012580 00000 n -0000012649 00000 n -0000012726 00000 n -0000012794 00000 n -0000012864 00000 n -0000012968 00000 n -0000013036 00000 n -0000013106 00000 n -0000013177 00000 n -0000013248 00000 n -0000013354 00000 n -0000013422 00000 n -0000013561 00000 n -0000013649 00000 n -0000013730 00000 n -0000013887 00000 n -0000014044 00000 n -0000014113 00000 n -0000014208 00000 n -0000014303 00000 n -0000014372 00000 n +0000010897 00000 n +0000010995 00000 n +0000011063 00000 n +0000011167 00000 n +0000011254 00000 n +0000011331 00000 n +0000011487 00000 n +0000011643 00000 n +0000011711 00000 n +0000011805 00000 n +0000011899 00000 n +0000011967 00000 n +0000012123 00000 n +0000012193 00000 n +0000012362 00000 n +0000012430 00000 n +0000012524 00000 n +0000012594 00000 n +0000012664 00000 n +0000012781 00000 n +0000012849 00000 n +0000013005 00000 n +0000013076 00000 n +0000013147 00000 n +0000013222 00000 n +0000013407 00000 n +0000013475 00000 n +0000013570 00000 n +0000013669 00000 n +0000013737 00000 n +0000013894 00000 n +0000013965 00000 n +0000014137 00000 n +0000014205 00000 n +0000014312 00000 n +0000014384 00000 n +0000014456 00000 n 0000014529 00000 n -0000014600 00000 n -0000014772 00000 n -0000014841 00000 n -0000014937 00000 n -0000015009 00000 n -0000015082 00000 n -0000015206 00000 n -0000015277 00000 n -0000015436 00000 n -0000015509 00000 n -0000015582 00000 n -0000015659 00000 n -0000015850 00000 n -0000015922 00000 n -0000016019 00000 n -0000016120 00000 n -0000016192 00000 n -0000016351 00000 n -0000016424 00000 n -0000016599 00000 n -0000016671 00000 n -0000016783 00000 n -0000016856 00000 n -0000016929 00000 n -0000017002 00000 n -0000017075 00000 n -0000017148 00000 n -0000017286 00000 n -0000017378 00000 n -0000017453 00000 n -0000017526 00000 n -0000017599 00000 n -0000017713 00000 n -0000017900 00000 n -0000018059 00000 n -0000018131 00000 n -0000018248 00000 n -0000018345 00000 n -0000018417 00000 n -0000018600 00000 n -0000018763 00000 n -0000018835 00000 n -0000018940 00000 n -0000019037 00000 n -0000019109 00000 n -0000019268 00000 n -0000019427 00000 n -0000019499 00000 n -0000019604 00000 n -0000019701 00000 n -0000019773 00000 n -0000019940 00000 n -0000020099 00000 n -0000020171 00000 n -0000020272 00000 n -0000020369 00000 n -0000020441 00000 n -0000020620 00000 n -0000020787 00000 n -0000020859 00000 n -0000020960 00000 n -0000021061 00000 n -0000021133 00000 n -0000021296 00000 n -0000021459 00000 n -0000021531 00000 n -0000021636 00000 n -0000021733 00000 n -0000021805 00000 n -0000021984 00000 n -0000022147 00000 n -0000022219 00000 n -0000022316 00000 n -0000022417 00000 n -0000022489 00000 n -0000022668 00000 n -0000022831 00000 n -0000022903 00000 n -0000023020 00000 n -0000023117 00000 n -0000023189 00000 n -0000023352 00000 n -0000023523 00000 n -0000023595 00000 n -0000023692 00000 n -0000023789 00000 n -0000023861 00000 n -0000024064 00000 n -0000024134 00000 n -0000024220 00000 n -0000024407 00000 n -0000024480 00000 n -0000024659 00000 n -0000024731 00000 n -0000024828 00000 n -0000024937 00000 n -0000025009 00000 n -0000025176 00000 n -0000025249 00000 n -0000025436 00000 n -0000025508 00000 n -0000025625 00000 n -0000025726 00000 n -0000025798 00000 n -0000025965 00000 n -0000026124 00000 n -0000026196 00000 n -0000026301 00000 n -0000026402 00000 n -0000026474 00000 n -0000026581 00000 n -0000026691 00000 n -0000026858 00000 n -0000027017 00000 n -0000027089 00000 n -0000027202 00000 n -0000027299 00000 n -0000027371 00000 n -0000027546 00000 n -0000027705 00000 n -0000027777 00000 n -0000027890 00000 n -0000027987 00000 n -0000028059 00000 n -0000028234 00000 n -0000028393 00000 n -0000028465 00000 n -0000028578 00000 n -0000028675 00000 n -0000028747 00000 n -0000028922 00000 n -0000029081 00000 n -0000029153 00000 n -0000029258 00000 n -0000029355 00000 n -0000029427 00000 n -0000029602 00000 n -0000029761 00000 n -0000029833 00000 n -0000029946 00000 n -0000030043 00000 n -0000030115 00000 n -0000030290 00000 n -0000030449 00000 n -0000030521 00000 n -0000030634 00000 n -0000030731 00000 n -0000030803 00000 n -0000030978 00000 n -0000031137 00000 n -0000031209 00000 n -0000031372 00000 n -0000031437 00000 n -0000031604 00000 n -0000031763 00000 n -0000031835 00000 n -0000031940 00000 n -0000032037 00000 n -0000032109 00000 n -0000032284 00000 n -0000032443 00000 n -0000032515 00000 n -0000032628 00000 n -0000032725 00000 n -0000032797 00000 n -0000032972 00000 n -0000033131 00000 n -0000033203 00000 n -0000033316 00000 n -0000033413 00000 n -0000033485 00000 n -0000033660 00000 n -0000033819 00000 n -0000033891 00000 n -0000034004 00000 n -0000034101 00000 n -0000034173 00000 n -0000034348 00000 n -0000034507 00000 n -0000034579 00000 n -0000034692 00000 n -0000034789 00000 n -0000034861 00000 n -0000035036 00000 n -0000035195 00000 n -0000035267 00000 n -0000035380 00000 n -0000035477 00000 n -0000035549 00000 n -0000035724 00000 n -0000035883 00000 n -0000035955 00000 n -0000036118 00000 n -0000036183 00000 n -0000036256 00000 n -0000036353 00000 n -0000036425 00000 n -0000036498 00000 n -0000036608 00000 n -0000036680 00000 n -0000036752 00000 n -0000036858 00000 n -0000036930 00000 n -0000037002 00000 n -0000037104 00000 n -0000037176 00000 n -0000037248 00000 n -0000037321 00000 n -0000037394 00000 n -0000037467 00000 n -0000037542 00000 n -0000037672 00000 n -0000037762 00000 n -0000037834 00000 n -0000037906 00000 n -0000037979 00000 n -0000038081 00000 n -0000038153 00000 n -0000038225 00000 n -0000038298 00000 n -0000038371 00000 n -0000038469 00000 n -0000038541 00000 n -0000038680 00000 n -0000038770 00000 n -0000038843 00000 n -0000038916 00000 n -0000038989 00000 n -0000039062 00000 n -0000039135 00000 n -0000039208 00000 n -0000039281 00000 n -0000039354 00000 n -0000039540 00000 n -0000039629 00000 n -0000039701 00000 n -0000039774 00000 n -0000039847 00000 n -0000039920 00000 n -0000040054 00000 n -0000040126 00000 n -0000040198 00000 n -0000040280 00000 n -0000040352 00000 n -0000040424 00000 n -0000040514 00000 n -0000040586 00000 n -0000040701 00000 n -0000040784 00000 n -0000040856 00000 n -0000040929 00000 n -0000041002 00000 n -0000041075 00000 n -0000041209 00000 n -0000041281 00000 n -0000041380 00000 n -0000041461 00000 n -0000041533 00000 n -0000041610 00000 n -0000041683 00000 n -0000041813 00000 n -0000041885 00000 n -0000041984 00000 n -0000042054 00000 n -0000042124 00000 n -0000042194 00000 n -0000042309 00000 n -0000042381 00000 n -0000042454 00000 n -0000042548 00000 n -0000042620 00000 n -0000042692 00000 n -0000042765 00000 n -0000042851 00000 n -0000042923 00000 n -0000042995 00000 n -0000043068 00000 n -0000043178 00000 n -0000043250 00000 n -0000043365 00000 n -0000043446 00000 n -0000043519 00000 n -0000043592 00000 n -0000043665 00000 n -0000043738 00000 n -0000043811 00000 n -0000043997 00000 n -0000044093 00000 n -0000044166 00000 n -0000044239 00000 n -0000044341 00000 n -0000044455 00000 n -0000044614 00000 n -0000044777 00000 n -0000044849 00000 n -0000044946 00000 n -0000045047 00000 n -0000045119 00000 n -0000045278 00000 n -0000045351 00000 n -0000045526 00000 n -0000045598 00000 n -0000045695 00000 n -0000045792 00000 n -0000045864 00000 n -0000046023 00000 n -0000046096 00000 n -0000046271 00000 n -0000046343 00000 n -0000046440 00000 n -0000046513 00000 n -0000046586 00000 n -0000046703 00000 n -0000046775 00000 n -0000046934 00000 n -0000047007 00000 n -0000047178 00000 n -0000047250 00000 n -0000047365 00000 n -0000047495 00000 n -0000047568 00000 n -0000047641 00000 n -0000047714 00000 n -0000047824 00000 n -0000048209 00000 n -0000048246 00000 n -0000048297 00000 n -0000048348 00000 n -0000048400 00000 n -0000048451 00000 n -0000048501 00000 n -0000048552 00000 n -0000048603 00000 n -0000048655 00000 n -0000048703 00000 n -0000048755 00000 n -0000048806 00000 n -0000048858 00000 n -0000048910 00000 n -0000048962 00000 n -0000049012 00000 n -0000049063 00000 n -0000049113 00000 n -0000049316 00000 n -0000049473 00000 n -0000050006 00000 n -0000050220 00000 n -0000050379 00000 n -0000050824 00000 n -0000051043 00000 n -0000051203 00000 n -0000052016 00000 n -0000052235 00000 n -0000052375 00000 n -0000052591 00000 n -0000052830 00000 n -0000052984 00000 n -0000053192 00000 n -0000053403 00000 n -0000053548 00000 n -0000053768 00000 n -0000054020 00000 n -0000054148 00000 n -0000054230 00000 n -0000054824 00000 n -0000059284 00000 n -0000059365 00000 n -0000059920 00000 n -0000063540 00000 n -0000063622 00000 n -0000064348 00000 n -0000071710 00000 n -0000071792 00000 n -0000072578 00000 n -0000085569 00000 n -0000085646 00000 n -0000086086 00000 n -0000086728 00000 n -0000086805 00000 n -0000087248 00000 n -0000091194 00000 n -0000114411 00000 n -0000114818 00000 n -0000114931 00000 n -0000116004 00000 n +0000014602 00000 n +0000014675 00000 n +0000014811 00000 n +0000014903 00000 n +0000014978 00000 n +0000015051 00000 n +0000015124 00000 n +0000015238 00000 n +0000015425 00000 n +0000015584 00000 n +0000015656 00000 n +0000015773 00000 n +0000015870 00000 n +0000015942 00000 n +0000016125 00000 n +0000016288 00000 n +0000016360 00000 n +0000016465 00000 n +0000016562 00000 n +0000016634 00000 n +0000016793 00000 n +0000016952 00000 n +0000017024 00000 n +0000017129 00000 n +0000017226 00000 n +0000017298 00000 n +0000017465 00000 n +0000017624 00000 n +0000017696 00000 n +0000017797 00000 n +0000017894 00000 n +0000017966 00000 n +0000018145 00000 n +0000018312 00000 n +0000018384 00000 n +0000018485 00000 n +0000018586 00000 n +0000018658 00000 n +0000018821 00000 n +0000018984 00000 n +0000019056 00000 n +0000019161 00000 n +0000019258 00000 n +0000019330 00000 n +0000019509 00000 n +0000019672 00000 n +0000019744 00000 n +0000019841 00000 n +0000019942 00000 n +0000020014 00000 n +0000020193 00000 n +0000020356 00000 n +0000020428 00000 n +0000020545 00000 n +0000020642 00000 n +0000020714 00000 n +0000020877 00000 n +0000021048 00000 n +0000021120 00000 n +0000021217 00000 n +0000021314 00000 n +0000021386 00000 n +0000021589 00000 n +0000021659 00000 n +0000021745 00000 n +0000021932 00000 n +0000022005 00000 n +0000022184 00000 n +0000022256 00000 n +0000022353 00000 n +0000022462 00000 n +0000022534 00000 n +0000022701 00000 n +0000022872 00000 n +0000022944 00000 n +0000023061 00000 n +0000023162 00000 n +0000023234 00000 n +0000023401 00000 n +0000023560 00000 n +0000023632 00000 n +0000023737 00000 n +0000023838 00000 n +0000023910 00000 n +0000024017 00000 n +0000024127 00000 n +0000024294 00000 n +0000024453 00000 n +0000024525 00000 n +0000024638 00000 n +0000024735 00000 n +0000024807 00000 n +0000024982 00000 n +0000025141 00000 n +0000025213 00000 n +0000025326 00000 n +0000025423 00000 n +0000025495 00000 n +0000025670 00000 n +0000025829 00000 n +0000025901 00000 n +0000026014 00000 n +0000026111 00000 n +0000026183 00000 n +0000026358 00000 n +0000026517 00000 n +0000026589 00000 n +0000026694 00000 n +0000026791 00000 n +0000026863 00000 n +0000027038 00000 n +0000027197 00000 n +0000027269 00000 n +0000027382 00000 n +0000027479 00000 n +0000027551 00000 n +0000027726 00000 n +0000027885 00000 n +0000027957 00000 n +0000028070 00000 n +0000028167 00000 n +0000028239 00000 n +0000028414 00000 n +0000028573 00000 n +0000028645 00000 n +0000028808 00000 n +0000028873 00000 n +0000029040 00000 n +0000029199 00000 n +0000029271 00000 n +0000029376 00000 n +0000029473 00000 n +0000029545 00000 n +0000029720 00000 n +0000029879 00000 n +0000029951 00000 n +0000030064 00000 n +0000030161 00000 n +0000030233 00000 n +0000030408 00000 n +0000030567 00000 n +0000030639 00000 n +0000030752 00000 n +0000030849 00000 n +0000030921 00000 n +0000031096 00000 n +0000031255 00000 n +0000031327 00000 n +0000031440 00000 n +0000031537 00000 n +0000031609 00000 n +0000031784 00000 n +0000031943 00000 n +0000032015 00000 n +0000032128 00000 n +0000032225 00000 n +0000032297 00000 n +0000032472 00000 n +0000032631 00000 n +0000032703 00000 n +0000032816 00000 n +0000032913 00000 n +0000032985 00000 n +0000033160 00000 n +0000033319 00000 n +0000033391 00000 n +0000033554 00000 n +0000033619 00000 n +0000033692 00000 n +0000033789 00000 n +0000033861 00000 n +0000033934 00000 n +0000034060 00000 n +0000034132 00000 n +0000034204 00000 n +0000034283 00000 n +0000034365 00000 n +0000034455 00000 n +0000034527 00000 n +0000034599 00000 n +0000034672 00000 n +0000034749 00000 n +0000034822 00000 n +0000034944 00000 n +0000035016 00000 n +0000035131 00000 n +0000035221 00000 n +0000035294 00000 n +0000035367 00000 n +0000035440 00000 n +0000035513 00000 n +0000035643 00000 n +0000035732 00000 n +0000035804 00000 n +0000035877 00000 n +0000035950 00000 n +0000036023 00000 n +0000036173 00000 n +0000036245 00000 n +0000036344 00000 n +0000036427 00000 n +0000036500 00000 n +0000036573 00000 n +0000036646 00000 n +0000036772 00000 n +0000036853 00000 n +0000036926 00000 n +0000036999 00000 n +0000037157 00000 n +0000037238 00000 n +0000037311 00000 n +0000037384 00000 n +0000037510 00000 n +0000037606 00000 n +0000037679 00000 n +0000037752 00000 n +0000037825 00000 n +0000037939 00000 n +0000038053 00000 n +0000038212 00000 n +0000038375 00000 n +0000038447 00000 n +0000038544 00000 n +0000038645 00000 n +0000038717 00000 n +0000038876 00000 n +0000038949 00000 n +0000039124 00000 n +0000039196 00000 n +0000039293 00000 n +0000039390 00000 n +0000039462 00000 n +0000039621 00000 n +0000039694 00000 n +0000039869 00000 n +0000039941 00000 n +0000040038 00000 n +0000040111 00000 n +0000040184 00000 n +0000040301 00000 n +0000040373 00000 n +0000040532 00000 n +0000040605 00000 n +0000040776 00000 n +0000040848 00000 n +0000040963 00000 n +0000041093 00000 n +0000041166 00000 n +0000041243 00000 n +0000041337 00000 n +0000041698 00000 n +0000041735 00000 n +0000041786 00000 n +0000041837 00000 n +0000041889 00000 n +0000041941 00000 n +0000041993 00000 n +0000042044 00000 n +0000042096 00000 n +0000042147 00000 n +0000042199 00000 n +0000042251 00000 n +0000042303 00000 n +0000042354 00000 n +0000042405 00000 n +0000042456 00000 n +0000042506 00000 n +0000042557 00000 n +0000042607 00000 n +0000042810 00000 n +0000042967 00000 n +0000043500 00000 n +0000043714 00000 n +0000043873 00000 n +0000044318 00000 n +0000044537 00000 n +0000044697 00000 n +0000045460 00000 n +0000045679 00000 n +0000045819 00000 n +0000046035 00000 n +0000046274 00000 n +0000046428 00000 n +0000046636 00000 n +0000046847 00000 n +0000046992 00000 n +0000047212 00000 n +0000047464 00000 n +0000047592 00000 n +0000047674 00000 n +0000048268 00000 n +0000052728 00000 n +0000052809 00000 n +0000053364 00000 n +0000056984 00000 n +0000057066 00000 n +0000057771 00000 n +0000064611 00000 n +0000064693 00000 n +0000065477 00000 n +0000078456 00000 n +0000078533 00000 n +0000078973 00000 n +0000079615 00000 n +0000079692 00000 n +0000080135 00000 n +0000084081 00000 n +0000103580 00000 n +0000103987 00000 n +0000104100 00000 n +0000105173 00000 n trailer -<> +<> startxref -116191 +105360 %%EOF \ No newline at end of file diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index 878db27e..34c4507c 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -20,22 +20,16 @@ chord("B2", "B1"), [execute the word with the B1 selection as argument (#word("Grep") on a selected name)], chord("B2", "B3"), [cancel the sweep (#chord("B3", "B2") too)], ) -A program that takes the mouse (htop, vim `mouse=a`) gets #btn("B1") and the wheel; #btn("B2")#btn("B3") stay pardes's. Hold Shift to swap: #btn("B1", shift: true) selects, #btn("B2", shift: true) goes to the program. +Over a program that takes the mouse, Shift swaps: #btn("B1", shift: true) selects, #btn("B2", shift: true) goes to the program. == Tags -Three levels of command text, every word live: the workspace tag, a tag per column, a tag per pane (file, terminal, PDF). #tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit") #tag("New Tty Find Grep Joincol Delcol") #tag("Save Tty Collapse Del", path: "/home/me/notes.txt") #tag("Tty+bash Save Mode Filter Collapse Del", path: "/home/me/src") #tag("Tty PdfSections PdfTint Collapse Del", path: "manual.pdf [1/12]") -- Type anything into a tag and click it: tags are text, with undo. -- A pane's words run in its directory; workspace and column tags in the session's. -- #word("Del") closes, rows to the pane above (`Del j`: below); #key("SPC d") asks #key("k") or #key("j"). Unsaved text (marked on the grip) is refused once: #word("Del") again discards. -- #word("Collapse") folds a pane to its tag; again unfolds. -- Click the path to rename (Enter confirms); #word("Save") writes. -- #word("Undo") #word("Redo") #word("Edit") #word("Mode") work typed anywhere. -- New panes: #word("Placement") `acme` (default) or `pardes`. #doc("tags") +- #word("Del") over unsaved text refuses once; again discards. `Del j`: rows below. +- #word("Undo") #word("Redo") #word("Edit") #word("Mode") work typed anywhere. #doc("tags") == Look addresses Typed anywhere, then #btn("B3") or #key("Enter"): @@ -116,40 +110,27 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla ) == Terminals and commands -- A terminal is a pane. #key("Ctrl-b") switches it between raw (`$`) and normal mode, where the same keys move over its text, prompts hidden. -- Raw: keys go to the program; #key("Esc") at a prompt with nothing typed goes back to the previous pane, #key("Shift-Esc") always. -- #word("Mode") cycles raw, normal, insert. #word("Filter") maps its colours to the theme. #word("Tty+bash") opens another on that shell. -- #btn("B2") on any non-builtin line (`make`, `git log`) runs it with #word("Shell") `-c` in the pane's directory, in a *command pane*: #tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") -- #word("Kill") stops what pardes started (`Kill make`: those lines); #word("Exit") quits. -- `Repl python` in a terminal tag: clicks in a `.py` pane go to it. +- #key("Ctrl-b"): raw (`$`) or normal. #word("Mode") cycles raw, normal, insert. #word("Filter"), #word("Tty+bash"). +- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") +- #word("Kill") `make` stops it; #word("Exit") quits. `Repl python`: `.py` clicks go to it. == Reviewing diffs -Run `git diff` (or open a `.patch`): it shows as a coloured diff. #btn("B3") on a `diff --git`, `---` or `+++` line opens the file; on `@@` the hunk's new line; on a hunk line's `+`/`-`/space, that line in the new file. #doc("tags", section: "reviewing-diffs") +`git diff` output is a diff: #btn("B3") on a file line, an `@@` or a line's `+`/`-` jumps there. #doc("tags", section: "reviewing-diffs") == Finding things -- #word("Find") `name`: files below this pane's directory; #word("Grep") `text`: lines holding it, literally, under every pane's directory. Bare, they ask; results land in `+Search`, a place per line for #btn("B3"). -- #word("Recent"): files opened lately, closed ones too, each reopened where you left it. -- #word("Help"): every key and builtin. #word("Tutor"): the tutorial. +- #word("Find") `name`, #word("Grep") `text` (literal): a `+Search` listing. #word("Recent"): files lately. #word("Help"), #word("Tutor"). == Sessions -- `pardes --detach=work` runs a core with no screen; `pardes --attach=work` (or #word("Attach") `work`) shows it; #word("Detach") leaves it running, shells and all. #doc("detached") +`pardes --detach=work`; `--attach=work` or #word("Attach") `work`; #word("Detach") leaves it running. #doc("detached") == Config -- #word("Config") (#key("SPC f c")) opens `~/.config/pardes/init`; a line per builtin, run at start; `#` comments. -``` -Theme atelier -Shell zsh -Placement pardes -``` -- #word("DumpConfig"): every live setting as a word to click; it pastes back into `init` as is. -- Keys are compile-time, in `src/config.zig`. -- #word("Dump") / #word("Restore"): save and reload the workspace (`pardes -l dump.zon`). #doc("config") +#word("Config") (#key("SPC f c")): `~/.config/pardes/init`, a builtin a line (`Theme atelier`). #word("DumpConfig"): every setting. #word("Dump") / #word("Restore"): the workspace. #doc("config") == Themes -#word("Themes") lists them, a word each; #word("Theme") `name` sets one; #word("NextColor") walks the ring. `orchard` is the default, `atelier` this page's. #word("DumpThemes") writes them as `.zon`; #word("ThemeFile") `x.zon` loads one, live on save. #doc("themes") +#word("Themes") lists them; #word("Theme") `name`; #word("NextColor"); #word("ThemeFile") `x.zon`. #doc("themes") == 9P control filesystem -Every session serves its panes as files. Pane shells get `$PARDES_9P` (socket), `$PARDES_PANE` (serial). +Pane shells get `$PARDES_9P` (the socket) and `$PARDES_PANE` (their own pane); a command clicked in a pane also gets `$winid`, the pane it was clicked in. #cmd("9ns --mntgen # m=$NINE_MOUNT/pardes/") #cmd("9p -a \"unix!$PARDES_9P\" read index") #pairs( @@ -165,5 +146,5 @@ Every session serves its panes as files. Pane shells get `$PARDES_9P` (socket), #cmd("echo /foo/ > $m/pane/$n/addr; printf bar > $m/pane/$n/data") #cmd("echo 'Edit ,x/foo/c/bar/' > $m/pane/$n/ctl") #cmd("exec 3<>$m/log; echo follow >&3; cat <&3") -`pardes FILE` in a pane opens it here; `EDITOR='pardes --wait'` returns when its pane closes. `cat $m/README`. #doc("fs") +`pardes FILE` opens it here; `EDITOR='pardes --wait'`. #doc("fs") diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 077484dc..087291a8 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -1,6 +1,6 @@ -// The guide: pardes day to day, read once in about ten minutes. The -// cheatsheet is the index of keys and words; the reference has every -// 9P file; scripting has the recipes. +// The guide: pardes day to day, the path a newcomer reads once. Edge cases +// live in the reference, the pager and the language servers in setup, the +// keys on the cheatsheet. #import "style.typ": key, keys, btn, chord, word, tag, addr, file, cmd, doc, pairs pardes is a screen of columns. Each column holds panes, and each pane is a @@ -9,326 +9,194 @@ Above the columns runs the workspace tag, and each column has a tag of its own. Any text anywhere can be clicked: #btn("B2") runs it, #btn("B3") looks at it. The keys are helix's, in modes. += Words you'll see + +#pairs( + [tag], [the line of words over a pane, a column or the screen; every word in it can be clicked], + [the pane with the keyboard], [where your keys go; one pane at a time], + [active column], [where the next new pane goes (below)], + [command pane], [a terminal that runs one command line and shows its output], + [scratch], [a pane of text with no file yet, `+New`], + [listing], [a pane of places to visit: `+Search`, Recent, Jumplist, Themes], + [message row], [the line where pardes says what happened], + [grip], [the box left of a pane's tag: drag it, and it marks unsaved text], +) + = Modes -Each pane has its own mode and keeps it while you are elsewhere: leave a -terminal at its `$` and it is still `$` when you come back. The box at the -left of a pane's tag shows the mode. +Each pane has its own mode and keeps it while you are elsewhere. The box +at the left of a pane's tag shows it. #pairs( - [normal (box blank)], [keys move and select; an edit acts on the selection. File and PDF panes start here, and so does a terminal from #key("Alt-n").], + [normal (blank)], [keys move and select; an edit acts on the selection. File and PDF panes start here, and so does a terminal from #key("Alt-n").], [insert (`^`)], [keys type. #keys("i", "a", "o") and the rest enter it.], [raw (`$`), terminals only], [keys go to the program. A terminal from #word("Tty"), the shell a bare `pardes` starts with, and a command pane start here.], ) #key("Ctrl-b") switches a terminal between raw and normal; in normal mode -the shell's prompts are hidden and its text is a page to move over and -copy from. #word("Mode") in the tag steps raw, normal, insert. Esc and -Shift-Esc depend on the mode: +its prompts are hidden and its text is a page to move over and copy from. +#word("Mode") in the tag steps raw, normal, insert. #pairs( [normal], [#key("Esc"): back to the previous pane (#word("Last")). #key("Shift-Esc"): the same.], [insert], [#key("Esc"): back to normal. #key("Shift-Esc"): out of insert and back to the previous pane.], - [raw `$`], [#key("Esc"): to the program, except at a shell prompt with nothing typed on it, where it goes back to the previous pane. #key("Shift-Esc"): always back to the previous pane. Either way the terminal stays `$`.], + [raw `$`], [#key("Esc"): to the program, except at a shell prompt with nothing typed on it, where it goes back to the previous pane. #key("Shift-Esc"): always back. Either way the terminal stays `$`.], [a PDF], [#key("Esc"): clears the selection and the search highlights. #key("Shift-Esc"): back to the previous pane.], ) -In short, #key("Shift-Esc") is the Esc nothing swallows: in every mode and pane it goes back to the previous pane, as Esc does from normal, and a raw program never sees it. #key("Ctrl-b") alone switches a terminal between raw and normal. "A shell prompt with nothing -typed on it" is one pardes knows from the prompt marks it injects into bash -and fish (and, for other shells, from no program holding the terminal). -"The previous pane" is the last other pane on the jump list; with none, the -next pane down its column (wrapping), else any other pane. In raw mode -every key but #key("Ctrl-b"), Esc and the paste chords goes to the -program, so #key("Ctrl-w") and #key("Alt-n") need you out of raw mode -first (and #key("Ctrl-w") out of insert mode, where it deletes a word). +"The previous pane" is the last other pane on the jump list, else the next +pane down its column. In raw mode every key but #key("Ctrl-b"), Esc and the +paste chords goes to the program, so #key("Ctrl-w") and #key("Alt-n") need +you out of raw mode first. = The mouse #pairs( - btn("B1"), [select; a plain click puts the cursor there and gives the pane the keyboard. In a tag it starts typing at the click, in insert mode. A double click selects the word, the line (at a line's start or end), or up to the matching bracket or quote.], + btn("B1"), [select; a click puts the cursor there and gives the pane the keyboard. In a tag it starts typing, in insert mode. A double click selects the word, the line, or up to the matching bracket or quote.], btn("B2"), [execute: a builtin word runs, anything else is a shell line.], - btn("B3"), [look: open the file, address, directory or URL, or else find the word's next place.], + btn("B3"), [look: open the file, address, directory or URL, else find the word's next place.], ) -A #btn("B2") or #btn("B3") click with no drag takes the word under it, -where a word is the run of letters, digits, non-ASCII and `. - + / : @ _ ~` -around the click; a trailing `:` is dropped. So #btn("B3") anywhere on -`src/bar.c:12:5:` in a compiler's `src/bar.c:12:5: error` opens -`src/bar.c` at line 12, byte column 5, while a click on `error` finds -`error`. Drag instead to say exactly what you mean. #key("Enter") and -#key("Tab") in normal mode look and execute the selection, or the word -under the cursor. The chords are on the cheatsheet. +A #btn("B2") or #btn("B3") click with no drag takes the word under it: the +run of letters, digits and `. - + / : @ _ ~`, a trailing `:` dropped. So +#btn("B3") on `src/bar.c:12:5:` in a compiler's error opens `src/bar.c` at +line 12, column 5. Drag to say exactly what you mean. #key("Enter") and +#key("Tab") in normal mode look and execute. The chords are on the +cheatsheet. = Tags -There are three kinds, and which directory a command runs in depends on -which one you click: - #tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit") #tag("New Tty Find Grep Joincol Delcol") #tag("Save Tty Collapse Del", path: "/home/me/notes.txt") -- The workspace tag and the column tags run commands in the session's - directory (where pardes started). A column's own words (#word("New"), - #word("Tty"), #word("Delcol")) act on that column; a pane word - (#word("Save"), #word("Del")) acts on the column's pane with the - keyboard, or its first; from the workspace tag, on the pane with the - keyboard. -- A pane's tag runs commands in the pane's directory: a file's directory, a - terminal's current directory. - A tag is text with undo: type a word into it and click it, or delete the -defaults. #key(":") moves the keyboard between a body and its tag. A pane -tag may wrap onto several lines; column and workspace tags are one line. -The path at the start of a pane's tag is computed: typing into it, or -clicking it, drafts a new name, #key("Enter") confirms and the next -#word("Save") writes there; #key("Esc") cancels. #word("Collapse") folds a -pane to its tag. Unsaved text shows on the grip, the box left of the tag. -Drag the grip up or down to resize, or onto another column to move the -pane there. - -= The active column and the keyboard - -Two things are easy to confuse: - -- *The pane with the keyboard* is where your keys go. -- *The active column* is where new panes go. It is the column you last - typed in, #btn("B1")-clicked in, dropped a pane into or gave the keyboard - to its tag, or the one that got the last new pane. A look does not move - it. - -They usually agree. Here is how they split. You are typing in column 1, so -column 1 is active. You click #word("New") in column 2's tag: a scratch -pane opens in column 2 and takes the keyboard, and column 2 is now -active. In it you #btn("B3") `x.txt`, which is already open in column 1: -the keyboard jumps to that pane in column 1, but the active column stays -2, so the next pane a look opens lands in column 2, away from where you -are. Type or click in column 1 and it is active again. - -== Where new panes go - -#word("Placement") picks the rules: `acme` (the default) or `pardes`. -Under `acme`, a new pane goes into the column whose tag asked, else the -active column, never into a new column. An empty column it takes whole; -#word("New") and 9P's #file("pane/new") take the bottom half of the -column's last pane; a pane opened from a pane's text (a look, #word("Tty"), -#key("Alt-n")) goes under the pane with the most blank rows, or halves the -biggest; a command pane goes to the last column. #word("New") in a pane's -tag opens a `+New` scratch named in that pane's directory, in that pane's -column; from a column tag, in that column and the session's directory. -Every new pane takes the keyboard, except a command pane and a listing -(`+Search`, #word("Recent"), #word("Jumplist"), #word("Themes"), `Fonts`), -which opens below the pane that asked and leaves it the keyboard, so -#keys("n", "N") walk the listing and #key("Tab") runs a row. No pane is made -shorter than its tag and two rows; where there is no room the pane is -refused. `Placement pardes` instead fills an empty column whose tag asked -or has the keyboard, puts a scratch or a shell under the pane that asked, -a document beside the last one read (or in a column of its own on a wide -screen), and a command pane at the foot of the last column. - -A column can be empty, as in acme: closing its last pane leaves it, its -tag over blank space. #word("Delcol") and #word("Joincol") take columns -away. Closing the session's last pane quits pardes. +defaults. #key(":") moves the keyboard between a body and its tag. The path +at the start of a pane's tag is computed: typing into it drafts a new name, +#key("Enter") confirms and the next #word("Save") writes there. +#word("Collapse") folds a pane to its tag. Drag the grip up or down to +resize, or onto another column to move the pane. -= Looking - -#btn("B3") (or #key("Enter")) on a path opens it, or goes to the pane that -already shows it; `file:12` goes to line 12. The address forms are on the -cheatsheet. A directory types `ls` into a terminal idle there, else opens -a terminal there. A URL opens in the browser. #word("Find") `name` lists the files -below the pane's directory whose names hold it; #word("Grep") `text` lists -the lines that contain that text, literally (ASCII case aside, no regular -expression), in files under every pane's directory. Both land in `+Search`, -a place per row for #btn("B3"). Grep reads at most 256 KiB of a file and -stops at 512 hits, Find at 512 names; the walk stops at 20000 files or -100000 entries, 16 deep, and passes over `.git`, `.jj`, `target`, -`node_modules`, `.venv`, `__pycache__`, `.zig-cache` and `zig-out`. A cap -hit, or a directory it could not open, is said at the end (`cut at 512 -hits`, `N files read only in part (first 256 KiB)`, `walk cut at N -entries`, `N directories skipped: permission denied`). A search that finds -nothing and skipped nothing fails, `Grep: text not found`, and leaves -the `+Search` as it was. - -A relative path is looked for where the click was, then where you have -been: first in the looking pane's own directory, then in the directory of -each pane on the jump list, most recent first. The first that names a -file, or a pane open on that path, wins. `./x` and `../x` look only in the -pane's own directory. - -= Command panes += Where commands run and panes go #btn("B2") on a line that is no builtin (`make`, `git log`) runs it with -the #word("Shell") setting's `-c`, in the directory of the tag or pane it -came from. In a terminal at a shell prompt with nothing typed on it, a line from that -terminal's own text is typed into its shell. Anywhere else it runs in a -command pane, a terminal of its own: +the #word("Shell") setting's `-c`. Where depends on where you clicked: + +#pairs( + [a terminal's text or tag, at a prompt with nothing typed], [typed into that shell, in its current directory], + [any other pane's text or tag], [a command pane in that pane's directory, in the last column], + [a column's tag], [a command pane in the session's directory, in that column], + [the workspace tag], [a command pane in the session's directory, in the last column], +) + +The keyboard stays where it was. A command pane's tag says `running`, then +`exit N`: #tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") -Its tag says `running`, then `exit N`. Its directory is the one it -started in, and relative looks in it resolve there, whatever the command -did with `cd`. The next command for the same -directory reuses a command pane that has finished (from a column tag, only -one in that column), below what it showed; a pane still running, or one a -background job still prints to, is never reused, so a second command -meanwhile gets a pane of its own. #word("Kill") stops what pardes started -(`Kill make`: those whose line starts with `make`); #word("Exit") quits -pardes. +The next command for that directory reuses a finished command pane. +#word("Kill") stops what pardes started (`Kill make`: those whose line +starts with `make`); #word("Exit") quits pardes. A pane word from a column +tag (#word("Save"), #word("Del")) acts on that column's pane with the +keyboard, or its first. + +Every other new pane goes into the *active column*: the column you last +typed or #btn("B1")-clicked in, or the one that got the last new pane. It +takes the keyboard, except a listing, which opens below the pane that +asked and leaves it the keyboard, so #keys("n", "N") walk the listing. A +look moves the keyboard but not the active column: #btn("B3") on a file +already open in another column jumps there, and the next new pane still +lands in the old column until you type or click. #word("Placement") +`pardes` picks other rules (#doc("reference", section: "placement")). + +A column can be empty: closing its last pane leaves it. #word("Delcol") +and #word("Joincol") take columns away. Closing the session's last pane +quits pardes. -= Unsaved panes += Looking -A pane whose text is unsaved is marked on its grip. #word("Del") on it -refuses once: a notice says `1 unsaved pane — Del again to discard` and the -pane is listed in `+Unsaved`. The same #word("Del") again, with nothing -edited since, discards it. #word("Exit") and #word("Restore") refuse once -over unsaved panes the same way; #word("Delcol") refuses once too, but -lists them only in its notice and the log, opening no `+Unsaved`. A `+New` -scratch under 100 bytes and a command's output never hold anything up. +#btn("B3") (or #key("Enter")) on a path opens it, or goes to the pane that +already shows it; `file:12` goes to line 12, and the other address forms +are on the cheatsheet. A directory types `ls` into a terminal idle there, +else opens one there. A URL opens in the browser. A relative path is +looked for in the looking pane's directory, then in the directory of each +pane on the jump list, most recent first. -From the keyboard (#key("SPC d")), #word("Del") on a pane with panes above -and below it also asks which neighbour takes its rows: #key("k") above, -#key("j") below, any other key keeps the pane. A click never asks, and -gives the rows to the pane above. +#word("Find") `name` lists the files below the pane's directory whose +names hold it; #word("Grep") `text` lists the lines that hold the text, +literally (no regular expression), under every pane's directory. Both land +in a `+Search` listing; their limits are in the reference. -= Terminals += Unsaved panes + +A pane with unsaved text is marked on its grip. #word("Del") on it refuses +once: the message row says `1 unsaved pane — Del again to discard` and the +pane is listed in `+Unsaved`. The same #word("Del") again discards it. +#word("Exit"), #word("Restore") and #word("Delcol") refuse once the same +way. From the keyboard (#key("SPC d")), #word("Del") between two panes +also asks which takes its rows: #key("k") above, #key("j") below. -A terminal is a pane like any other. += Terminals #tag("Tty+bash Save Mode Filter Collapse Del", path: "/home/me/src") -- `Tty+bash` opens another terminal on that shell; a bare #word("Tty") - runs the #word("Shell") setting, `$SHELL` when it is executable, else - `/bin/sh`. -- #word("Save") asks for a path on the pane's notice band and writes the - terminal's scrollback there as text; `Save path` writes it at once. +- `Tty+bash` opens another terminal on that shell; bare #word("Tty") runs + the #word("Shell") setting. +- #word("Save") writes the scrollback to a path it asks for. - #word("Filter") maps the program's colours through the theme. -- A terminal showing kitty graphics (yazi's previews) shows `petscii:on` or - `petscii:off` in its tag. #word("Petscii") toggles it: on draws the - program's images as glyph art instead of host pixels, off goes back to - pixels. A terminal with no images shows the word only while it is on. -- The `+New` scratch a bare `pardes` starts under its shell runs its - commands in that terminal's current directory, following its `cd`. -- A paging command in a terminal (`git log`, `man`) opens its text in a - `+Pager` pane: a terminal's `PAGER` and `GIT_PAGER` are `pardes -` unless - your environment sets them. `Pager off` keeps your own pager, for - terminals started after it. A diff paged into `+Pager` (`git diff`, - `git show`, `git log -p`) is drawn and looked at as a diff. -- In raw mode Ctrl-V types what you yanked into the program (with nothing - yanked, the program gets the key), and Ctrl-Shift-V the desktop - clipboard. -- A program that tracks the mouse (htop, vim with `mouse=a`) gets - #btn("B1")'s clicks and drags and the wheel over its grid; #btn("B2") and - #btn("B3") stay pardes's. Hold Shift to swap: #btn("B1", shift: true) - selects and Shift-wheel scrolls pardes's scrollback, while - #btn("B2", shift: true) and #btn("B3", shift: true) go to the program as - its buttons 2 and 3. A full-screen program that does not track the mouse - gets the wheel as arrow keys. Tags, grips and gutters stay pardes's. -- `Repl python` in a terminal's tag makes #btn("B2") on a `.py` pane send - the text to that REPL instead of running it. +- #word("Petscii") draws a program's images as glyph art instead of pixels. +- In raw mode Ctrl-V types what you yanked, Ctrl-Shift-V the clipboard. +- A program that tracks the mouse gets #btn("B1") and the wheel; + #btn("B2") and #btn("B3") stay pardes's. Hold Shift to swap. +- `Repl python` in its tag makes #btn("B2") on a `.py` pane send the text + to that REPL. +- Paged output (`git log`, `man`) opens in a `+Pager` pane (#doc("setup", section: "pager")). = Reviewing diffs -Open a `.diff` or `.patch`, or run `git diff` (or `git show`, `diff -u`) as -a command: once it has finished, output that starts as a diff is shown as -one, each hunk coloured in its file's language and its added and removed -rows tinted. Then #btn("B3") to jump, with the usual look resolution: - -- a `diff --git`, `---` or `+++` line opens the file (the new one, or the - old one on a `---` line unless the `+++` under it names another); -- a `@@ -a,b +c,d @@` line goes to line `c` of the new file; -- the `+`, `-` or space in a hunk line's first column goes to that line in - the new file (for a removed line, the line now standing where it was); -- the code after it is ordinary words. - -git's `a/` and `b/` prefixes are dropped (and `c/ i/ w/ o/` with -`diff.mnemonicPrefix`); a `--no-prefix` diff's paths are kept as written. +Open a `.diff` or `.patch`, or run `git diff` as a command: the output is +drawn as a diff, each hunk coloured in its file's language. #btn("B3") on a +`diff --git`, `---` or `+++` line opens the file; on `@@` the hunk's first +new line; on a hunk line's `+`, `-` or space, that line in the new file. = `pardes FILE` and `--wait` In a pane's shell, `pardes FILE` opens FILE in this session and returns at -once, as acme's `B` does. A FILE not there yet opens an empty pane named -for it; #word("Save") creates it, making its directories first. Something -the session refuses (a bad name; a name under a directory you may not -search or write, `permission denied`) is printed and the command exits 1. -`--` ends the options: `pardes -- -name` opens a file named `-name`. - -`pardes --wait FILE` (`-w`) returns when the pane showing FILE is closed -(exit 0) or the session goes away (exit 1), as acme's `E` does. With -`$PARDES_9P` set but no pane of its own (an agent's `EDITOR`) it opens FILE -in that session and waits there. Set -`EDITOR='pardes --wait'` (`GIT_EDITOR` follows it), and `git commit`, -`crontab -e` and fish's Alt-E open in a pane and read the file once you -close it. Bare `pardes` inside a pane refuses and names `--nested`, which -starts a separate session whose shells do not forward to it. +once, as acme's `B` does; a FILE not there yet opens an empty pane that +#word("Save") creates. `pardes --wait FILE` returns when that pane is +closed, as acme's `E` does, which makes it an `EDITOR` +(#doc("setup", section: "editor-setup")). Refusals and `--nested` are in +the reference. = Keys Motions select what they cross, and an edit acts on the selection: #key("w") -then #key("d") deletes a word. #key("x") selects lines, #key("v") extends -characters, #key(";") collapses to the cursor. #key("s") makes a cursor -per regex match inside the selection, and every edit then acts at each. -#key("/") is a case-insensitive substring search, one hit a line; the -regexes are on #key("s") and #key("S"). #keys("n", "N") step through -everything a look would open, across panes. Line end is #key("g l"), and -#key("$") is helix's keep-pipe. #key("SPC") starts the leader, -#key("SPC ?") lists every path, and #word("Help") lists every key and -builtin. #word("Tutor") (#key("SPC h t")) practises them. - -The language servers run as child processes, one per language when it is -on `PATH`: `zls`, `rust-analyzer`, `clangd`, `gopls`, -`typescript-language-server` and `pyright-langserver` -(`PARDES_LSP_ZIG`, `_RS`, `_C`, `_GO`, `_TS`, `_PY` name another, empty -turns one off): - -#pairs( - [#keys("g d", "g D", "g y", "g i", "g r")], [definition, declaration, type, implementation, references; Ctrl-#btn("B1") is a definition too], - [#keys("SPC l k", "SPC l r", "SPC l a", "SPC l h")], [hover, rename, code action, select the references], - [#keys("SPC l s", "SPC l S", "SPC l d", "SPC l D")], [symbols and diagnostics, of the file and the workspace], - [#keys("SPC l c", "SPC l C", "SPC l t", "SPC l T")], [incoming and outgoing calls, supertypes and subtypes], - [#keys("] d", "[ d")], [next and previous diagnostic], - [#key("=")], [format], - [#keys("SPC l i", "SPC l w")], [#word("Lspinfo"): the servers' state; #word("Lspwhy"): why the last query found what it did], -) - -One answer jumps; several open a list where #key("Enter") on a row goes -there. In insert mode #key("Tab") after a `.` lists the candidate -declarations and inserts nothing. A format or a rename within the file is -one undo step. A rename that reaches other files applies nothing: it opens -a `+Search` preview of the edits. So does one the server answers in this -file alone while another open file of its language still holds the old -name, with a row per such file (zls does this renaming at a declaration; -from a use it reaches every file). A server is `not started yet` -until its first query. +then #key("d") deletes a word. #key("x") selects lines, #key("v") extends, +#key(";") collapses to the cursor. #key("s") makes a cursor per regex match +and every edit acts at each. #key("/") is a substring search; the regexes +are on #key("s") and #key("S"). #keys("n", "N") step through everything a +look would open, across panes. Line end is #key("g l"). #key("SPC") starts +the leader, #key("SPC ?") lists every path, #word("Help") every key and +builtin, and #word("Tutor") (#key("SPC h t")) practises them. The language +keys (#keys("g d", "g r"), `SPC l`) work once a server is installed +(#doc("setup", section: "language-servers")). = Sessions ``` pardes --detach=work & a session with no screen of its own pardes --attach=work show it here -pardes-gui --attach=work the SDL window can attach too ``` The session owns the panes, shells and files; frontends come and go. -#word("Attach") `work` (#key("SPC s a")) switches this window to that -session, and #word("Detach") (#key("SPC s D")) leaves it running, shells -and all. Bare `--detach` names the session after its pid; bare `--attach` -needs exactly one session; a second `--detach=NAME` while NAME runs says so -and exits 1. Every attached frontend sees the same screen, -at the smallest common size. With none attached, `size C R` on the root -ctl sets the screen and messages clear by the clock, and a pane's pty -reports its size in pixels at the last frontend's cell size (8×16 before -any frontend attached), so programs like yazi still size their images; -CSI 14, 16 and 18 t answer the same. A detached session -ends when its last pane closes, as any session does. +#word("Attach") `work` (#key("SPC s a")) switches this window to it, and +#word("Detach") (#key("SPC s D")) leaves it running. Every attached frontend +sees the same screen. = Config #word("Config") (#key("SPC f c")) opens the startup file, -`~/.config/pardes/init` (`$XDG_CONFIG_HOME/pardes/init` when that is -absolute; on macOS `~/Library/Application Support/pardes/init`). Each line -is one builtin, run at start as if executed; `#` starts a comment, and a -line that fails is skipped silently. Text that is no builtin does not run -as a shell command. +`~/.config/pardes/init`: one builtin a line, run at start, `#` a comment. ``` Theme atelier @@ -336,15 +204,7 @@ Shell zsh Placement pardes ``` -#word("DumpConfig") opens every live setting as the line that sets it, so -it pastes back into `init` as is. The settings are listed with the root -ctl in the reference (#doc("fs", section: "settings")). Keys are -compile-time, in `src/config.zig`. - -#word("Dump") writes the workspace to `pardes--