diff options
Diffstat (limited to 'docs/typ/reference.typ')
| -rw-r--r-- | docs/typ/reference.typ | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index 996906ac..126330fa 100644 --- a/docs/typ/reference.typ +++ b/docs/typ/reference.typ @@ -290,12 +290,13 @@ A line written to #file("exec") is #word("Exec"): runtime depth (1–64, default 8) for subsequent queries. #word("Callers") and #word("Callees") keep their short lists and single-result jumps. - #word("Diagnostics") and #word("Symbols") list the file's in `+Search`; + #word("Diagnostics") and #word("Symbols") list the file's in `+Search` + (its symbols marked and in the order #key("SPC s s") lists them); #word("Lspinfo") fills `+Lsp`, the pane its write answers, with the index the file asks (`scip: <path>, <size>, <documents>, <symbols>, indexed <when>, <n> files newer`, or `scip: no index.scip above <dir>; Index runs <indexer>`), which server serves it and its state (`not - started yet` until its first query starts it, `<server> failed recently; + started yet` until a file of its opened starts it, `<server> failed recently; retry in Ns` while it backs off), and what answered each query lately (`scip`, or the server); #word("Lspwhy") narrates the last query step by step (in `+Lsp`). The @@ -958,7 +959,10 @@ at 200, ending in `…`. Control characters become spaces. - #file("/kbdin") (write only), rio's: each rune written is a key typed at the pane with the keyboard, done before the write is answered, so a - script that writes keys then reads a file sees what they did. Control + script that writes keys then reads a file sees what they did. What they + start on a worker, as the keyboard's keys do, comes after the answer: a + picker's listing or search, a file's declarations, a language server's + answer; a script reads again until it is there. Control runes are Ctrl and a letter, but for Plan 9's keys (`keyboard.h`): `\n` or `\r` #key("Enter"), `\t` #key("Tab"), `\b` Backspace, `0x7f` Delete, `0x1b` #key("Esc"), and the @@ -1318,6 +1322,31 @@ for that directory reuses a finished one (from a column tag, only one in that column); one still running, one a background job still prints to, or one a #file("exec") open still holds is never reused. In a command pane, #key("n") walks that pane's own `file:line` places first (make's errors), whichever pane was walked last, then on through the others. += Back to a picker <back> + +The last eight pickers are kept, each as it was left: its query, +refinements, cursor and marks. Three ways reach them. A pane's walk is a +stack, its words left to right: #key("Ctrl-o") steps one word back, +#key("Ctrl-i") one on; onto a place it goes there, onto a list's word it +unrolls that picker again, previewing in the pane (#key("Enter") lands as +the word's, dropping the steps after it; #key("Esc") leaves the pane as it +was; #key("Ctrl-o"), #key("Ctrl-i") and Backspace on its empty field +walk on), onto a search's word it puts the caret where the search began, +its places lit; a held pane walks its own search and recipe words; past +the walk, the jump history. After a picker's or a search's #key("Enter") +the notice row says what #key("Ctrl-o") reaches. #word("Resume") +(#key("SPC '")) reopens the newest picker, and again after its +#key("Esc"), nothing typed between, the one before; in one it opened +#key("Ctrl-o") and #key("Ctrl-i") step to the older and newer, its head +`Resume 2/5`. #word("Lists") (#key("SPC f l"), `'` among a picker's +sources) lists them newest first, where each last landed at its right, +the body previewing its current row; #key("Enter") reopens it. Reopened +or landed, a picker is the newest; the least used goes for a ninth. In a +picker, `Ctrl-r` unrolls its source's earlier queries (the last 16 each, a +query kept as its picker lands or is left typed; Lists keeps none), +filtered by the field: #key("Enter") puts one in the field, #key("Esc") +rolls them up. + = Find and Grep <find-grep> Both fill the asking pane's query pane (#doc("guide", section: "search")), |
