From 29d776a7f4746a50e3e6de88e4bd50f175b80c7f Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 15:27:18 -0300 Subject: The guide's Modes tables draw each mode's box, the unsaved pane's filled box too, and Questions says what the name pardes names Co-Authored-By: Claude Opus 5.5 --- docs/typ/cheatsheet-a4.pdf | 6 +++--- docs/typ/guide.typ | 22 ++++++++++------------ 2 files changed, 13 insertions(+), 15 deletions(-) (limited to 'docs/typ') diff --git a/docs/typ/cheatsheet-a4.pdf b/docs/typ/cheatsheet-a4.pdf index 3b97b21a..ea9b8557 100644 --- a/docs/typ/cheatsheet-a4.pdf +++ b/docs/typ/cheatsheet-a4.pdf @@ -1575,12 +1575,12 @@ x endstream endobj 426 0 obj -<> +<> endobj 427 0 obj <> stream -Typst 0.15.1en2026-10-01T14:06:00-03:002026-10-01T14:06:00-03:001application/pdfX3jRtdT4EfXhbAEUSxNMOw==X3jRtdT4EfXhbAEUSxNMOw==proof1.7 +Typst 0.15.1en2026-10-01T15:27:18-03:002026-10-01T15:27:18-03:001application/pdfYnMSzIjFZI6/XLNNf530Zw==YnMSzIjFZI6/XLNNf530Zw==proof1.7 endstream endobj 428 0 obj @@ -2018,7 +2018,7 @@ xref 0000109208 00000 n 0000110281 00000 n trailer -<> +<> startxref 110468 %%EOF \ No newline at end of file diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index cf1e758c..f92709e3 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -1,7 +1,7 @@ // 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, glossary, annotated, clip +#import "style.typ": key, keys, btn, chord, word, tag, addr, file, cmd, doc, pairs, glossary, annotated, clip, mode-box Two clicks carry pardes: #word("Look") (right-click) opens `src/bar.c:12`, and #word("Exec") (middle-click) runs `make`. @@ -29,12 +29,10 @@ Two clicks carry pardes: #word("Look") (right-click) opens `src/bar.c:12`, and # Each pane keeps its own mode. The box left of its tag shows it. -// TODO: once style.typ has #mode-box(mark), put the box itself in each -// row's first cell instead of naming its mark. #pairs( - [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.], + [#mode-box(" ") normal], [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").], + [#mode-box("^") insert], [keys type. #keys("i", "a", "o") and the rest enter it.], + [#mode-box("$") 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, @@ -42,9 +40,9 @@ 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")), unlike helix. #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. Either way the terminal stays `$`.], + [#mode-box(" ") normal], [#key("Esc"): back to the previous pane (#word("Last")), unlike helix. #key("Shift-Esc"): the same.], + [#mode-box("^") insert], [#key("Esc"): back to normal. #key("Shift-Esc"): out of insert and back to the previous pane.], + [#mode-box("$") 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 raw.], [a PDF], [#key("Esc"): clears the selection and the search highlights. #key("Shift-Esc"): back to the previous pane.], ) @@ -161,8 +159,8 @@ recent first. = Unsaved panes -#word("Del") on a pane with unsaved text (marked on its grip) refuses -once, saying `1 unsaved pane — Del again to discard`, and lists the pane +#word("Del") on a pane with unsaved text, its box filled +(#mode-box(" ", unsaved: true); a `*` in a terminal), refuses once, saying `1 unsaved pane — Del again to discard`, and lists the pane in `+Unsaved`; #word("Del") again discards it. #word("Exit") (or #key("SPC q")), #word("Restore") and #word("Delcol") refuse once the same way. #key("SPC d") between two panes also asks which @@ -268,4 +266,4 @@ Shell zsh / Does my helix config carry over?: No. The keys are compiled in (`src/config.zig`); `~/.config/helix` is not read. / How do I quit?: #key("SPC q"), or #word("Exit") in any tag. -/ What does "pardes" mean?: TODO(user) +/ What does "pardes" mean?: The name of the four levels of reading a text in rabbinical exegesis (#link("https://en.wikipedia.org/wiki/Pardes_(exegesis)")[Wikipedia]). -- cgit v1.3