From c0ed5f823a37fb1b9b2300f53b23263bfc97a108 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 03:35:02 -0300 Subject: 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 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/typ/reference.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/typ') 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`, ``) 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)], -- cgit v1.3