summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/typ/builtins-gui.json3
-rw-r--r--docs/typ/builtins-tui.json3
-rw-r--r--docs/typ/cheatsheet.typ4
-rw-r--r--docs/typ/guide.typ2
-rw-r--r--docs/typ/reference.typ35
-rw-r--r--docs/typ/setup.typ6
6 files changed, 44 insertions, 9 deletions
diff --git a/docs/typ/builtins-gui.json b/docs/typ/builtins-gui.json
index f129215a..02981259 100644
--- a/docs/typ/builtins-gui.json
+++ b/docs/typ/builtins-gui.json
@@ -63,6 +63,7 @@
{"name": "Kill", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Stop the commands pardes started that are still running.", "text": "Stop the commands pardes started that are still running.\nThey are the lines pardes typed into a terminal (from an exec, a middle click, a pty/run) and its command panes. Bare, every one; `Kill make ls`, those whose line starts with one of the words. Each gets SIGTERM: a command pane's whole command, a terminal's foreground job, never its shell, which stays."},
{"name": "Last", "leader": "SPC j j", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Go back to the last place jumped from in another pane.", "text": "Go back to the last place jumped from in another pane.\nWith none, to the pane beside this one."},
{"name": "Left", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the left.", "text": "Move the keyboard to the pane, or column tag, to the left."},
+ {"name": "Lists", "leader": "SPC f l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Pick from the last pickers kept, newest first: Enter reopens one as it was left.", "text": "Pick from the last pickers kept, newest first: Enter reopens one as it was left.\nA row each: its source, query, cursor and marks, where it last landed at its right. The body previews its current row; beside the rows, its first rows. `SPC f l`, or `'` in a picker's sources (M-h)."},
{"name": "LocationsConfig", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Set how a list's location rows are drawn: `LocationsConfig layout:inline context:2`.", "text": "Set how a list's location rows are drawn: `LocationsConfig layout:inline context:2`.\nIts fields: `context:<lines>` around each, `tscontext:on|off`, `tslocations:on|off`, `layout:inline|stacked`; those not given stay. Bare, it shows them in a +LocationsConfig."},
{"name": "Look", "leader": null, "also": ["enter", "right-click"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Look at its argument as B3 does: open the file or address it names, else find the word.", "text": "Look at its argument as B3 does: open the file or address it names, else find the word.\n`Look notes.txt:12` opens the file at line 12, or goes to the pane already showing it; an address may be a line, `:12:5`, `/re/`, a directory (a pane listing it) or a URL (the browser, by a plumbing rule). A relative path is found in the directory of the pane looked from, then of each pane on the jump list. Bare (Enter): the selection, else what is under the cursor."},
{"name": "LookNext", "leader": "SPC j n", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select the next thing a Look would open: a place in a list, a word that names a file.", "text": "Select the next thing a Look would open: a place in a list, a word that names a file.\nThe walk goes on through the panes in order, the keyboard with it; Enter opens what it selected."},
@@ -92,7 +93,7 @@
{"name": "Rename", "leader": "SPC l r", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Rename the symbol under the cursor to its argument, wherever the language server finds it.", "text": "Rename the symbol under the cursor to its argument, wherever the language server finds it.\nBare, it asks for the new name. Within this file it is done at once, saying how many places changed; one that reaches other files changes nothing and lists its edits in a +Search to look over."},
{"name": "Repl", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.", "text": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.\n`Repl python` binds it (the language named as a code fence names it: `py`, `Python`, `sh`); `Repl -` unbinds it; bare, it says what it is bound as. An exec made on the body of a file in that language (a middle click, the execute key, a single word like `ls` as much as a selection), and one made on this terminal's own body, is typed into it (bracketed paste if its program asked for that, else line by line, then Enter) instead of run. With several bound for a language, the exec asks which.\nStill commands, whatever is bound: a word in a tag, `Exec <text>`, a ctl line, and a command word @`cmd` in the text, looked at or clicked."},
{"name": "Restore", "leader": "SPC s r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Replace every pane with those of a dump.", "text": "Replace every pane with those of a dump.\n`Restore <label>`: the state file's dump of that label (History lists them); `Restore <file>`: a dump file's, a path, or the name of a file in the DumpDir or the directory pardes runs in. Bare: the last one this session made, else the newest. A file that is not a dump is said first; then, as Exit, it is refused once while a pane holds unsaved text."},
- {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nIn the tag of the pane its Enter lands in from this one: this pane if it reads, else its reader. `SPC '`."},
+ {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nIn the tag of the pane its Enter lands in from this one: this pane if it reads, else its reader. `SPC '`; again after its Esc, nothing typed between, the one before it; Ctrl-o and Ctrl-i in it, the older and newer."},
{"name": "Right", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the right.", "text": "Move the keyboard to the pane, or column tag, to the right."},
{"name": "Save", "leader": "SPC f s", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Write the pane's text to its file, or to the file its argument names.", "text": "Write the pane's text to its file, or to the file its argument names.\n`Save <path>` writes it there. Bare, a pane with no file of its own (a +New, a list, a terminal) asks for a path; a file at a revision is read-only, written only to a path. Over a file changed on disk since it was read, it warns once."},
{"name": "Search", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search in a query pane under this pane, its line 1 the argument.", "text": "Search in a query pane under this pane, its line 1 the argument.\nLine 1's first word names what it searches: `/re` this pane's text, `Find`, `Grep`, `Recent`, `Panes`, `Symbols`, `All` (every open pane's text), `Refs`, `Def`, `Impl`, `Diagnostics`; a line with none of them is a `/`: `Search lay` is `/lay`. Bare, `/`, typed into. `SPC b b`, `SPC s s` and `SPC /` open it with Panes, Symbols and All."},
diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json
index 67c461bb..e73396ae 100644
--- a/docs/typ/builtins-tui.json
+++ b/docs/typ/builtins-tui.json
@@ -59,6 +59,7 @@
{"name": "Kill", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Stop the commands pardes started that are still running.", "text": "Stop the commands pardes started that are still running.\nThey are the lines pardes typed into a terminal (from an exec, a middle click, a pty/run) and its command panes. Bare, every one; `Kill make ls`, those whose line starts with one of the words. Each gets SIGTERM: a command pane's whole command, a terminal's foreground job, never its shell, which stays."},
{"name": "Last", "leader": "SPC j j", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Go back to the last place jumped from in another pane.", "text": "Go back to the last place jumped from in another pane.\nWith none, to the pane beside this one."},
{"name": "Left", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the left.", "text": "Move the keyboard to the pane, or column tag, to the left."},
+ {"name": "Lists", "leader": "SPC f l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Pick from the last pickers kept, newest first: Enter reopens one as it was left.", "text": "Pick from the last pickers kept, newest first: Enter reopens one as it was left.\nA row each: its source, query, cursor and marks, where it last landed at its right. The body previews its current row; beside the rows, its first rows. `SPC f l`, or `'` in a picker's sources (M-h)."},
{"name": "LocationsConfig", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Set how a list's location rows are drawn: `LocationsConfig layout:inline context:2`.", "text": "Set how a list's location rows are drawn: `LocationsConfig layout:inline context:2`.\nIts fields: `context:<lines>` around each, `tscontext:on|off`, `tslocations:on|off`, `layout:inline|stacked`; those not given stay. Bare, it shows them in a +LocationsConfig."},
{"name": "Look", "leader": null, "also": ["enter", "right-click"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Look at its argument as B3 does: open the file or address it names, else find the word.", "text": "Look at its argument as B3 does: open the file or address it names, else find the word.\n`Look notes.txt:12` opens the file at line 12, or goes to the pane already showing it; an address may be a line, `:12:5`, `/re/`, a directory (a pane listing it) or a URL (the browser, by a plumbing rule). A relative path is found in the directory of the pane looked from, then of each pane on the jump list. Bare (Enter): the selection, else what is under the cursor."},
{"name": "LookNext", "leader": "SPC j n", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select the next thing a Look would open: a place in a list, a word that names a file.", "text": "Select the next thing a Look would open: a place in a list, a word that names a file.\nThe walk goes on through the panes in order, the keyboard with it; Enter opens what it selected."},
@@ -87,7 +88,7 @@
{"name": "Rename", "leader": "SPC l r", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Rename the symbol under the cursor to its argument, wherever the language server finds it.", "text": "Rename the symbol under the cursor to its argument, wherever the language server finds it.\nBare, it asks for the new name. Within this file it is done at once, saying how many places changed; one that reaches other files changes nothing and lists its edits in a +Search to look over."},
{"name": "Repl", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.", "text": "Bind this terminal as a language's REPL: an exec on that language's files is typed into it.\n`Repl python` binds it (the language named as a code fence names it: `py`, `Python`, `sh`); `Repl -` unbinds it; bare, it says what it is bound as. An exec made on the body of a file in that language (a middle click, the execute key, a single word like `ls` as much as a selection), and one made on this terminal's own body, is typed into it (bracketed paste if its program asked for that, else line by line, then Enter) instead of run. With several bound for a language, the exec asks which.\nStill commands, whatever is bound: a word in a tag, `Exec <text>`, a ctl line, and a command word @`cmd` in the text, looked at or clicked."},
{"name": "Restore", "leader": "SPC s r", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Replace every pane with those of a dump.", "text": "Replace every pane with those of a dump.\n`Restore <label>`: the state file's dump of that label (History lists them); `Restore <file>`: a dump file's, a path, or the name of a file in the DumpDir or the directory pardes runs in. Bare: the last one this session made, else the newest. A file that is not a dump is said first; then, as Exit, it is refused once while a pane holds unsaved text."},
- {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nIn the tag of the pane its Enter lands in from this one: this pane if it reads, else its reader. `SPC '`."},
+ {"name": "Resume", "leader": "SPC '", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Reopen the last picker as it was: its rows, marks, cursor and query.", "text": "Reopen the last picker as it was: its rows, marks, cursor and query.\nIn the tag of the pane its Enter lands in from this one: this pane if it reads, else its reader. `SPC '`; again after its Esc, nothing typed between, the one before it; Ctrl-o and Ctrl-i in it, the older and newer."},
{"name": "Right", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane, or column tag, to the right.", "text": "Move the keyboard to the pane, or column tag, to the right."},
{"name": "Save", "leader": "SPC f s", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Write the pane's text to its file, or to the file its argument names.", "text": "Write the pane's text to its file, or to the file its argument names.\n`Save <path>` writes it there. Bare, a pane with no file of its own (a +New, a list, a terminal) asks for a path; a file at a revision is read-only, written only to a path. Over a file changed on disk since it was read, it warns once."},
{"name": "Search", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Search in a query pane under this pane, its line 1 the argument.", "text": "Search in a query pane under this pane, its line 1 the argument.\nLine 1's first word names what it searches: `/re` this pane's text, `Find`, `Grep`, `Recent`, `Panes`, `Symbols`, `All` (every open pane's text), `Refs`, `Def`, `Impl`, `Diagnostics`; a line with none of them is a `/`: `Search lay` is `/lay`. Bare, `/`, typed into. `SPC b b`, `SPC s s` and `SPC /` open it with Panes, Symbols and All."},
diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ
index 3b815592..2307db2c 100644
--- a/docs/typ/cheatsheet.typ
+++ b/docs/typ/cheatsheet.typ
@@ -76,7 +76,7 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla
[#key("Ctrl-w")], [window mode: #keys("h", "j", "k", "l") move the outline, #key("d") deletes it (then #key("k")/#key("j") between two), #key("c") collapses it, #key("Enter")/#key("Esc") or a pane's letter focuses (not in insert or raw `$`)],
[#key("Esc")], [back to the previous pane (insert: to normal; a PDF: its selection and search highlights go first)],
[#key("Shift-Esc")], [back to the previous pane from any mode but raw, where it is the program's Esc; needs the kitty keyboard protocol or the GUI, elsewhere a plain Esc],
- [#keys("Ctrl-o", "Ctrl-i")], [jump history back, forward; this file first. #key("Ctrl-i") is #key("Tab") without the kitty protocol: #key("SPC j i")],
+ [#keys("Ctrl-o", "Ctrl-i")], [back, forward a word of the walk (a place; a list, reopened as left; a search, from where it began), then the jump history; this file first. #key("Ctrl-i") is #key("Tab") without the kitty protocol: #key("SPC j i")],
[#key("Alt-n")], [new terminal below],
[#key("Alt-c")], [move the pane to a new column],
)
@@ -90,6 +90,8 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla
key("SPC f g"), word("Grep"),
key("SPC f r"), word("Recent"),
key("SPC f h"), word("History"),
+ key("SPC f l"), [#word("Lists"): the kept pickers],
+ key("SPC '"), [#word("Resume"); again, the one before],
key("SPC b b"), word("Panes"),
key("SPC s s"), [declarations],
key("SPC f c"), word("Config"),
diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ
index f528d8a2..6d14c97c 100644
--- a/docs/typ/guide.typ
+++ b/docs/typ/guide.typ
@@ -212,7 +212,7 @@ Line 1's first word names what it searches, and editing the word changes it:
[`Grep text`], [the lines of those files holding `text`, literally (#key("SPC f g"), #word("Grep")); past 2000 lines #word("More") goes on],
[`Recent name`], [the files opened lately, in any window (#key("SPC f r"), #word("Recent"))],
[`Panes name`], [the open panes, then the ones closed this session, `(closed)` and dimmer: #key("Enter") (or a #word("Look") at its `@pN`) brings one back where it was, its text with it (#key("SPC b b"), #word("Panes"))],
- [`Symbols name`], [the text's declarations (#key("SPC s s"))],
+ [`Symbols name`], [the text's symbols, a row each: its kind's mark (`t` type, `f` function, `m` field, `c` const, `v` var, `n` module, `·` other), its name in the ones it is in (`Counts.lines`), what its line says after the name; types, functions, fields, then the rest, each in the text's order, and so while typed, the best match current (#key("SPC s s"))],
[`All pat`], [every open pane's text, its rows under each pane (#key("SPC /"))],
[`Refs`, `Def`, `Impl`, `Diagnostics`], [the language server's lists (#key("g r"), #key("g d"), #key("g i"), #key("SPC l d")): one answer is a jump, none a message; several open the list with the keyboard on its current row in normal mode (#keys("j", "k", "n", "N") step it, #key("Enter") lands, #key("Esc") goes back), the diagnostics' keeping it in the text for `]d`; their places in the text tinted as a `/`'s are],
)
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")),
diff --git a/docs/typ/setup.typ b/docs/typ/setup.typ
index c9556c61..3ef67da5 100644
--- a/docs/typ/setup.typ
+++ b/docs/typ/setup.typ
@@ -119,8 +119,10 @@ script on that `PATH` is a word you can click.
= Language servers <language-servers>
-pardes starts a language server for a file it knows, searching `PATH` first
-and then `~/.local/bin` (desktop launchers may leave it out of `PATH`):
+pardes starts a language server when a file it knows opens in a pane (a
+picker's preview starts none), searching `PATH` first and then
+`~/.local/bin` (desktop launchers may leave it out of `PATH`), so the
+file's first question finds it ready:
#pairs(
[`.zig`], [`zls` (`PARDES_LSP_ZIG`)],