diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-26 05:06:32 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-26 05:06:38 -0300 |
| commit | 8250d4afc108e690a6377b40a3887c80ccca3f3c (patch) | |
| tree | ad7ee1c2362b127b759199b782ab1b1b2ec41c39 /docs/typ | |
| parent | ac39b5e4f80e1903abccd1e003850e9691e61022 (diff) | |
| download | pardes-8250d4afc108e690a6377b40a3887c80ccca3f3c.tar.gz pardes-8250d4afc108e690a6377b40a3887c80ccca3f3c.zip | |
Command, docs: every word that left a tag still runs from `:`, its rows listing after the tag's words the words of the pane's kind the tag does not show now, marked `for this pane`, and the docs that show tags show the lean ones (UX DESIGN K'4, binding: "every one keeps a key, the `:` line, and a typed word"); THE OLD WAY: `:`'s rows were the tag's words (`in the tag`), then the commands; since K'1 and K'3 a clean file's tag holds `Del` alone, so `Save`, `Term`, `Collapse`, `Follow`, `Def`, `Refs`, `TreeContext`, `Mode`, `Filter` and a file's `Undo`/`Redo` were in no row a hand could find from `:`, and the cheatsheet, the guide, the docs' README and the tutor still drew the old tags (`Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit`, `Save Term Collapse Follow Del`, a terminal's `Term+bash Save Mode Filter Collapse Del`, a command pane's `Kill Save Collapse Del`) and told the hand to click `Collapse` in a tag; THE CHANGE: Command.Others, the words of tagline.kindTail (the tag a pane of its kind had before K', kept for this and for dropOldTags) the tag does not show now, then a file's `Undo` and `Redo` (not a query's: its text is its rows), each a row after the tag's words, said `for this pane` beside it and in its doc row, the last ruled off as the tag's last is; Command.others counts them beside Command.words (a view's state: the dump fuzz and the soak), the commands' rows after them, all of them bounded by max_words (32); Enter runs the line as B2 runs a word, as before, so any builtin, Joincol too, runs from `:`; the docs: docs/typ/cheatsheet.typ and guide.typ draw the window row `Find Grep Newcol Help Exit`, a column's tag `New Term Joincol Delcol`, a file's `Save Undo Del`, a terminal's `Del Term+bash`, a PDF's `PdfSections PdfTint PdfFit Del`, a command pane done `Del`, and say in a line each where the rest went (the words that act now; the others from `:` and typed; the lone column's `New Term` at the window row's left, a second column bringing the column row); docs/typ/README's tag() example `Save Undo Del`; core/tutor.txt's tag lines the same, its step 1 `: :` to the tag after its words and `i Help`, step 2 `Collapse` from `:` (`Coll`, Enter) instead of a click on a word that is gone; config.zig's docs check (doc_typ.tag) takes the window row's and the column tags' words and K'3's pane tags at rest (`Keep Del`, `Del`, `Save Undo Del`, `Undo Del`, `Kill Del`, `Get Del`, `Filter Del`, `Del Term`), a kind's its addon's words then `Del`; A FAULT OF THE CHANGE BEFORE THIS ONE, found by its shot of the comparison video's found moment (84x20 tty: `New Term Find Grep Newcol Help Exit` run together at the window row's left): tagline.windowRow made room for a server's progress after the window's words whether or not the row had it (zls's `lsp zls ready — <the session's directory>` stays live while the server runs), so a long one pushed the words left against the column's while draw.zig, finding no room, drew no progress; THE FIX: windowRow counts the progress only where the row holds it beside the column's words (the one rule draw reads too); a user hit it in any window narrower than its words, the column's and the progress; TESTS (FIRST): tagline.zig "a server's progress goes after the window's words where the row has room for it, and moves them by nothing where it has not (UX K'2)" (84 columns: a progress too long leaves the words at 56, a short one moves them left by its 9 cells and the 2 between; without the fix `expected 56, found 12`), Command.zig ": lists the words of the pane's kind its tag does not show now, `for this pane`: Save while the file is clean, Collapse, Undo; Enter runs any builtin as B2 does, Joincol too (UX K'4)" (a clean file reading: `Del` in the tag, ruled off; `Save Term Collapse Follow Undo Redo` for this pane, `Redo` ruled off; `write` after them; `Coll` filters to Collapse with its doc for this pane; `:Joincol` Enter from two columns leaves one); TESTS CHANGED: Command.zig's first `:` test (a typed-into file: 18 commands, its kind's `Term Collapse Follow Redo` for this pane between its tag's `Save Undo Del` and `write`); GOLDENS: none moved (process-test with --update re-recorded none; ttyhelp is the next change's: its `:` and tutor text are on no snap); GATES (after the fix): core-test 1132/1305 (173 skipped: +2), shell-test 1353/1356 (3 skipped: +2), pane-test 183/184 (1 skipped), behaviour-test 280/280 and --replay 20 seeds of 70 steps 0 failures, process-test 1 of 147 failed (ttyhelp, re-recorded by the next change; 3 skipped), term-test 17/17, kitty-test 45/45; the dump fuzz at 40,000 join seeds twice and 1,779 image seeds 11/11 (Command gained a field: a view's state is in the dump; run before the fix, which changes no field); the soak `replicas -- --clients 5 --rtt 30,80,207` (after the fix): diverged 0, unequal 0, agree/differ 531/0 392/0 680/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak; the gui unit-test on the next change (its code is this one's: it changes one golden); no frame/perf gate (the coordinator's, at the programme's end); load 1.6 to 8.5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'docs/typ')
| -rw-r--r-- | docs/typ/README | 4 | ||||
| -rw-r--r-- | docs/typ/cheatsheet.typ | 14 | ||||
| -rw-r--r-- | docs/typ/guide.typ | 21 |
3 files changed, 23 insertions, 16 deletions
diff --git a/docs/typ/README b/docs/typ/README index 88f24343..0f82ae98 100644 --- a/docs/typ/README +++ b/docs/typ/README @@ -65,8 +65,8 @@ new function instead. chord(..bs) a chord: the first button held, each next clicked. #chord("B2", "B1") #chord("B1", "B2", "B3") tag(words, path:) - a whole default tagline; words must be a default tag. - #tag("Save Term Collapse Del", path: "/home/me/notes.txt") + a whole tagline at rest; words must be a tag's own. + #tag("Save Undo Del", path: "/home/me/notes.txt") addr(a) a look address. #addr("file:12:5") file(p) a 9P path. #file("pane/N/addr") cmd(c) a shell line, as a block. #cmd("echo Save > $m/pane/$n/ctl") diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index 4f55b514..3b815592 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -24,11 +24,13 @@ Over a program that takes the mouse, Shift swaps: #btn("B1", shift: true) select One button: Alt/Option-click is #btn("B2"), Cmd/Super-click #btn("B3"), sweeps too (a terminal passes only Alt); Ctrl-click is a definition; a program that takes the mouse gets the plain click. == Tags -#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit") -#tag("New Term Find Grep Joincol Delcol") -#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt") -#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src") -#tag("Term PdfSections PdfTint PdfFit Collapse Del", path: "[1/12] … manual.pdf") +#tag("Find Grep Newcol Help Exit") +#tag("New Term Joincol Delcol") +#tag("Save Undo Del", path: "/home/me/notes.txt") +#tag("Del Term+bash", path: "/home/me/src") +#tag("PdfSections PdfTint PdfFit Del", path: "[1/12] … manual.pdf") +- A tag's first words act now (#word("Save") and #word("Undo") once the text changes); what you type goes after them. The rest of its kind's words run from `:`, listed for this pane, and typed anywhere. +- One column: its #word("New") #word("Term") sit at the window row's left; a second column brings the column tags' row. - #word("Del") over unsaved text refuses once; again discards. #word("Del") `j`: rows below. #key("SPC d") between two panes takes #key("k") (rows above) or #key("j") (below), asking only if you pause. - #word("Undo") #word("Redo") #word("Edit") #word("Mode") work typed anywhere. #doc("tags") @@ -114,7 +116,7 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla == Terminals and commands - #key("Ctrl-b"): raw (`$`) or normal. #word("Mode") cycles raw, normal, insert. #word("Filter"), #word("Term+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") +- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Del", path: "/home/me/src (make) exit 0") - #word("Kill") `make` stops it; #word("Exit") quits. #word("Repl") `python`: `.py` clicks go to it. == Reviewing diffs diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 66d3bb00..f528d8a2 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -103,13 +103,18 @@ the registers. #key("SPC y") and #key("SPC p") use the system clipboard. = Tags <tags> -#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit") -#tag("New Term Find Grep Joincol Delcol") -#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt") +#tag("Find Grep Newcol Help Exit") +#tag("New Term Joincol Delcol") +#tag("Save Undo Del", path: "/home/me/notes.txt") -A tag is text with undo. Type `make` into one and #word("Exec") it, or -delete the words you never use. Any word runs from any tag: #word("Exit") -in a pane's tag quits too. +A tag is text with undo. Its first words are the ones that act now, made +again as the pane changes: #word("Save") and #word("Undo") come with an +edit, #word("Keep") while a file reads. What you type goes after them and +stays: type `make` into one and #word("Exec") it. Any word runs from any +tag: #word("Exit") in a pane's tag quits too. The words a tag does not +show run from `:`, listed for this pane, and typed anywhere. With one +column its #word("New") #word("Term") sit at the window row's left; a +second column brings a row of column tags. #pairs( [#key(":")], [the keyboard to the tag, on #word("Save") the first time; #key("Tab") runs it, #key(":") comes back], @@ -136,7 +141,7 @@ A file's text and tag run in its directory: `make` from `README` at the project root is right, from `src/main.c` it is not. The keyboard stays where it was. The command pane's tag ends in `running`, then `exit N`: -#tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") +#tag("Del", path: "/home/me/src (make) exit 0") Click into the command pane: #key("n") selects the next `file:line`, #key("Enter") opens it, and #key("n") from there goes on to the next error. @@ -242,7 +247,7 @@ do nothing. = Terminals <terminals> -#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src") +#tag("Del Term+bash", path: "/home/me/src") - #word("Term") opens a terminal in the pane's directory, #key("Alt-n") one in the session's directory; #word("Term+bash") picks the shell. |
