summaryrefslogtreecommitdiff
path: root/docs/typ/reference.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 03:35:02 -0300
committerGabriel Schneider <[email protected]>2026-11-10 04:08:16 -0300
commitc0ed5f823a37fb1b9b2300f53b23263bfc97a108 (patch)
treec99677eaad7f76b515827ac5c562434902033a92 /docs/typ/reference.typ
parente398c24ba19948727affdc6a29254ac69a6b7699 (diff)
downloadpardes-c0ed5f823a37fb1b9b2300f53b23263bfc97a108.tar.gz
pardes-c0ed5f823a37fb1b9b2300f53b23263bfc97a108.zip
edit: Enter, o and O give the new line helix's indent where the file's grammar has an indent query, its indent_for_newline over the file's tree (indent.zig: the reference's containment engine, every capture and predicate the vendored queries use, the hybrid heuristic), else acme's copy as before; and Enter between a pair puts the closer on a line of its own at that indent and the cursor on one a level in, as helix's insert_newline does, in plain text too
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'docs/typ/reference.typ')
-rw-r--r--docs/typ/reference.typ2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ
index e1c9e263..9afe002c 100644
--- a/docs/typ/reference.typ
+++ b/docs/typ/reference.typ
@@ -1343,7 +1343,7 @@ with Client(sys.argv[1]) as c: # a socket path, or (ip, port)
[`Zerox`], [#word("Zerox"): a second pane on the buffer, one text, undo and unsaved state, its own scroll and cursor; an event reader on one hears no edit made through the other; the twins are kept across #word("Dump") and #word("Restore")],
[`Tab`], [#word("Tab") `N`, 1-16: for every pane, not per window; bare, it says the width, from the root's #file("ctl") as from a pane's #file("exec")],
[`Incl`], [#word("Incl"): for the session, not per window, seeded with `/usr/include` and `/usr/local/include`; it takes absolute (or `~`) directories that exist, and `Incl -` alone clears the list; a name found nowhere else (`stdio.h`, `<stdio.h>`) is tried there],
- [`Indent`], [always on: #key("Enter"), #key("o") and #key("O") keep the line's indent as it is],
+ [`Indent`], [always on: #key("Enter"), #key("o") and #key("O") give the new line helix's indent, from the file's syntax tree and its grammar's indent query where it has one (bash, C, C\#, C++, Clojure, CSS, Elixir, Fortran, Go, HTML, Java, JavaScript, JSON, Kotlin, OCaml, PHP, Python, Ruby, Rust, Scala, Zig), else keep the line's indent as it is; a closer typed on its own line stays where it is typed. #key("Enter") between a pair (`()`, `[]`, `{}`, quotes) puts the closer on a line of its own at that indent and the cursor on one a level in],
[`Snarf`, `Cut`, `Paste`], [refused: the chords, #key("y"), #key("p")],
[`Font`, `Send`, `ID`], [#word("Font"); #word("Repl") and #word("Exec"); `$winid`],
[acme's other builtins], [refused: `Sort`, `Local`, `Abort` (plan9port's debugging word)],