diff options
Diffstat (limited to 'docs')
| -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. |
