diff options
Diffstat (limited to 'docs/typ')
| -rw-r--r-- | docs/typ/README | 4 | ||||
| -rw-r--r-- | docs/typ/builtins-gui.json | 18 | ||||
| -rw-r--r-- | docs/typ/builtins-tui.json | 16 | ||||
| -rw-r--r-- | docs/typ/cheatsheet.typ | 14 | ||||
| -rw-r--r-- | docs/typ/guide.typ | 23 | ||||
| -rw-r--r-- | docs/typ/reference.typ | 10 | ||||
| -rw-r--r-- | docs/typ/setup.typ | 6 |
7 files changed, 52 insertions, 39 deletions
diff --git a/docs/typ/README b/docs/typ/README index 88f24343..0f82ae98 100644 --- a/docs/typ/README +++ b/docs/typ/README @@ -65,8 +65,8 @@ new function instead. chord(..bs) a chord: the first button held, each next clicked. #chord("B2", "B1") #chord("B1", "B2", "B3") tag(words, path:) - a whole default tagline; words must be a default tag. - #tag("Save Term Collapse Del", path: "/home/me/notes.txt") + a whole tagline at rest; words must be a tag's own. + #tag("Save Undo Del", path: "/home/me/notes.txt") addr(a) a look address. #addr("file:12:5") file(p) a 9P path. #file("pane/N/addr") cmd(c) a shell line, as a block. #cmd("echo Save > $m/pane/$n/ctl") diff --git a/docs/typ/builtins-gui.json b/docs/typ/builtins-gui.json index 7897295d..02981259 100644 --- a/docs/typ/builtins-gui.json +++ b/docs/typ/builtins-gui.json @@ -9,7 +9,7 @@ {"name": "Callers", "leader": "SPC l c", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the functions that call the one under the cursor, one level up; a single one is a jump.", "text": "List the functions that call the one under the cursor, one level up; a single one is a jump."}, {"name": "Callstack", "leader": "SPC l b", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.", "text": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.\nEach caller with its place to open and its signature, the line of each call under it; callers named for tests after the rest, a recursion marked `↻`. CallstackDepth sets how many levels (8 by default); a deeper tree says where to go on from. `g c` does the same."}, {"name": "CallstackDepth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Caller levels collected by Callstack, 1 through 64; default 8.", "text": "Caller levels collected by Callstack, 1 through 64; default 8. Bare, it says the current limit."}, - {"name": "Changelog", "leader": "SPC h c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, + {"name": "Changelog", "leader": "SPC h c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, {"name": "Changes", "leader": "SPC t c", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.", "text": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.\n`Changes <revset>` pins the revset's changes that touched the file on its pane, or a revision's (`notes.md@main`), and shows them in every view of it: `Changes @-::@`, `Changes trunk()..@`. One set a pane: a later Changes or Compare replaces it. Bare: hidden, or shown again; with none pinned yet, `@`.\nEach change gets a lane after the line number. What the file no longer has stands where it stood as lines of the pane's text with no number, read-only: the cursor, a selection, a search, B2 and B3 work there, and an edit that touches one is refused. After a change's last line comes its description, `id title author age`, its lane ending in an arrow at it; a long one wraps. `] g` and `[ g` step through the changes; B3 on a description's id opens that change's patch at that line (`Diff <id> <path>:<line>`)."}, {"name": "Churn", "leader": "SPC t u", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show how many changes touched each declaration of this file, as a heat lane.", "text": "Show how many changes touched each declaration of this file, as a heat lane.\n`Churn <window>`: a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`). In this view a cell after the line number, from the line numbers' grey to the theme's red on a log scale, and a strip by the scroll thumb. Bare: hidden in this view or shown again; with none counted yet, the file's whole history."}, {"name": "ClipPaste", "leader": "SPC p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard after the selection.", "text": "Paste the system clipboard after the selection."}, @@ -20,9 +20,9 @@ {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker in the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold this pane to its tag, or give it its share of the column again.", "text": "Fold this pane to its tag, or give it its share of the column again."}, {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.", "text": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.\n`Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each one revision (a commit or change id, a bookmark, `master@origin`, `@`): `Compare 9ef6312813 ea63317630 master@origin`. A pair is drawn as one change however many lie between its points; after its last line, its row: the two points, how many changes lie between them, their first and last days. One set a pane: a later Changes or Compare replaces it. Bare: as bare Changes."}, - {"name": "Config", "leader": "SPC f c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, + {"name": "Config", "leader": "SPC f c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, {"name": "CursorBlink", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "The cursor blinks, solid while typing, on or off.", "text": "The cursor blinks, solid while typing, on or off."}, - {"name": "Debug", "leader": "SPC t d", "also": ["topbar"], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, + {"name": "Debug", "leader": "SPC t d", "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, {"name": "Def", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Go to the definition of the symbol under the cursor.", "text": "Go to the definition of the symbol under the cursor.\nWith an argument (a 2-1 chord's selection), of that symbol, asked at its occurrence nearest the cursor. One answer is a jump; several open a list, the keyboard on its current row; none says so. `g d` does the same."}, {"name": "Del", "leader": "SPC d", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane.", "text": "Close the pane.\n`Del k` gives its rows to the pane above it, `Del j` to the one below, each falling back to the other side; bare, from the keyboard between two panes, it asks k or j on the pane's notice band. A docked pane's rows go back to the pane it answers for. Refused once while the pane holds unsaved text (listed in +Unsaved); Del again, nothing edited since, closes it."}, {"name": "DelAbove", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane above it, as `Del k` does.", "text": "Close the pane, giving its rows to the pane above it, as `Del k` does."}, @@ -32,7 +32,7 @@ {"name": "Diagnostics", "leader": "SPC l d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List this file's diagnostics in a +Search.", "text": "List this file's diagnostics in a +Search.\n`] d` and `[ d` step through them in the text, `] D` and `[ D` to the last and the first."}, {"name": "Diff", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.", "text": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.\nBare, on a diff (a .diff, a .patch, a +Pager holding one): its hunks stacked; on a +Diff: the diff itself, as text. `Diff <file>`: that .diff's or .patch's hunks. `Diff <hash>` (7 to 40 hex digits): `git show` of that commit, in its own `+Diff-<hash>`. `Diff <change> [path[:line]]` (a jj change id): its patch, its header and whole message on top, the cursor at that place. `Diff <from>..<to> [path[:line]]`: the difference between two points, the changes between them on top.\nEach hunk stands under its `path:line` and the declarations around it, a + or - before each line, the words a changed line changed tinted. `SPC j n` and `SPC j p` step through the hunks; B3 on a place opens it."}, {"name": "Down", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane below, or off a tag onto the pane under it.", "text": "Move the keyboard to the pane below, or off a tag onto the pane under it."}, - {"name": "Dump", "leader": "SPC s d", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, + {"name": "Dump", "leader": "SPC s d", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, {"name": "DumpConfig", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.", "text": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.\nThe startup file's path with them; a line run there is that setting."}, {"name": "DumpDir", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The directory of the state file, where Dump writes and Recent is kept.", "text": "The directory of the state file, where Dump writes and Recent is kept. A relative Restore name is looked for there too; bare, the default."}, {"name": "DumpThemes", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Write the bundled themes into the configuration directory's themes, to edit.", "text": "Write the bundled themes into the configuration directory's themes, to edit.\nThemeFile loads one back."}, @@ -43,18 +43,18 @@ {"name": "Find", "leader": "SPC f f", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the files below this pane's directory whose names match its argument.", "text": "List the files below this pane's directory whose names match its argument.\nA query pane under this pane, its line 1 `Find <name>`, the files under it by a fuzzy match of their names: with a word, listed, the keyboard left where it was; bare (`SPC f f`), typed into. Enter or B3 on a row opens that file. A script's Find that finds nothing fails, `not found`."}, {"name": "Follow", "leader": "SPC c f", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show one text across a chain of panes as consecutive pages, scrolled as one.", "text": "Show one text across a chain of panes as consecutive pages, scrolled as one.\nAs Emacs's follow-mode: each page goes on where the one before ends. Each Follow adds a page, a Zerox of the text, at the end of the column right of the chain's last, or in a new column there; its tag has Unfollow."}, {"name": "Font", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The body font, by name or path, and its size after a colon: `Font Mono:14`.", "text": "The body font, by name or path, and its size after a colon: `Font Mono:14`. Fonts lists them."}, - {"name": "Fonts", "leader": "SPC t f", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run.", "text": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run."}, + {"name": "Fonts", "leader": "SPC t f", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run.", "text": "List this machine's fonts in a +Fonts, each a `Font <name>` line to run."}, {"name": "Forward", "leader": "SPC j i", "also": ["C-i"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Go one step forward again in the jump history, up to where Back started.", "text": "Go one step forward again in the jump history, up to where Back started."}, {"name": "Get", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.", "text": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.\n`Get <file>` loads that file into the pane instead, the pane taking its name. In a directory's pane, it reads the directory again."}, {"name": "Grep", "leader": "SPC f g", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the lines of the files below this pane's directory that hold its argument.", "text": "List the lines of the files below this pane's directory that hold its argument.\nThe text is matched as it is, not as a pattern, in a query pane under this pane, its line 1 `Grep <text>`: with a word, listed, the keyboard left where it was; bare (`SPC f g`), typed into. Past 2000 lines it stops, and More goes on. A script's Grep that finds nothing fails, `not found`."}, {"name": "GripWidth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The grip and scrollbar width, as a percent of the theme's rail.", "text": "The grip and scrollbar width, as a percent of the theme's rail."}, {"name": "Help", "leader": "SPC ?", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Show every builtin with its keys and documentation, or one builtin's alone.", "text": "Show every builtin with its keys and documentation, or one builtin's alone.\n`Help <name>`: that builtin alone, its keys spelled out, what it acts on and its line for a shell (`Help Diff`); a setting or an addon's word the same. `Help <keys>`: the builtins under SPC and those keys (`Help l`, as `SPC l ?` shows them). Each fills the one +Help: a second Help replaces its text."}, - {"name": "History", "leader": "SPC f h", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, + {"name": "History", "leader": "SPC f h", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, {"name": "Hover", "leader": "SPC l k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Ask the language server about the symbol under the cursor, its answer in a +Hover.", "text": "Ask the language server about the symbol under the cursor, its answer in a +Hover."}, {"name": "InactiveDim", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off.", "text": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off."}, {"name": "Incl", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).", "text": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).\n`Incl <dir> ...` adds them, each absolute or from `~`; bare, it lists them; `Incl -` empties the list. The list is the session's."}, {"name": "Index", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Run the file's language indexer at its project root, writing its index.scip.", "text": "Run the file's language indexer at its project root, writing its index.scip.\nThe language words ask the nearest index.scip above a file first, and its language server only when the index has nothing to say; an index older than the file still answers, and says so once."}, - {"name": "Joincol", "leader": "SPC c j", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, + {"name": "Joincol", "leader": "SPC c j", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, {"name": "JumpTrail", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A jump of the cursor leaves a short trail that fades, on or off.", "text": "A jump of the cursor leaves a short trail that fades, on or off."}, {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from in a +Jumps, each a place to go.", "text": "List the places jumped from in a +Jumps, each a place to go."}, {"name": "Jumps", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "walk, new-pane", "doc": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane).", "text": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane)."}, @@ -108,10 +108,10 @@ {"name": "Term", "leader": "SPC n t", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.", "text": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.\n`Term fish` runs that shell instead of the Shell setting's, as a terminal's own tag word `Term+fish` says; a shell that is not there is said. A directory that is not there makes no terminal."}, {"name": "Theme", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Switch to the theme named: `Theme atelier`.", "text": "Switch to the theme named: `Theme atelier`. Themes lists them, NextColor steps through them."}, {"name": "ThemeFile", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.", "text": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.\nDumpThemes writes the bundled ones out to start from."}, - {"name": "Themes", "leader": "SPC t t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, + {"name": "Themes", "leader": "SPC t t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, {"name": "Togglettymode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Switch this terminal between raw mode, its keys the program's, and normal mode.", "text": "Switch this terminal between raw mode, its keys the program's, and normal mode."}, {"name": "TreeContext", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show, at the pane's head, the declarations its top row is in.", "text": "Show, at the pane's head, the declarations its top row is in.\n`TreeContext on` or `off` sets it; bare, it flips. Only a source file the parser knows has them."}, - {"name": "Tutor", "leader": "SPC h t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, + {"name": "Tutor", "leader": "SPC h t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, {"name": "Undo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Step the pane's text back one edit.", "text": "Step the pane's text back one edit.\nWith no step left, it says so and changes nothing (a ctl write of it still succeeds, as acme's Undo is silent there). A file keeps 256 steps."}, {"name": "Undock", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.", "text": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.\nThe next search from that pane opens another under it."}, {"name": "Unfollow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Take this pane out of its Follow chain.", "text": "Take this pane out of its Follow chain.\nIt stays, a Zerox twin with the scroll it has, and the chain closes up behind it."}, diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json index 91757231..e73396ae 100644 --- a/docs/typ/builtins-tui.json +++ b/docs/typ/builtins-tui.json @@ -9,7 +9,7 @@ {"name": "Callers", "leader": "SPC l c", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the functions that call the one under the cursor, one level up; a single one is a jump.", "text": "List the functions that call the one under the cursor, one level up; a single one is a jump."}, {"name": "Callstack", "leader": "SPC l b", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.", "text": "Show the callers of the function under the cursor as a tree, outermost first, in a +Callstack.\nEach caller with its place to open and its signature, the line of each call under it; callers named for tests after the rest, a recursion marked `↻`. CallstackDepth sets how many levels (8 by default); a deeper tree says where to go on from. `g c` does the same."}, {"name": "CallstackDepth", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Caller levels collected by Callstack, 1 through 64; default 8.", "text": "Caller levels collected by Callstack, 1 through 64; default 8. Bare, it says the current limit."}, - {"name": "Changelog", "leader": "SPC h c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, + {"name": "Changelog", "leader": "SPC h c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show this build's version and what changed to reach it, in a +Changelog.", "text": "Show this build's version and what changed to reach it, in a +Changelog."}, {"name": "Changes", "leader": "SPC t c", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.", "text": "Draw jj's changes to this file on its own pane: a lane each, and what they took away.\n`Changes <revset>` pins the revset's changes that touched the file on its pane, or a revision's (`notes.md@main`), and shows them in every view of it: `Changes @-::@`, `Changes trunk()..@`. One set a pane: a later Changes or Compare replaces it. Bare: hidden, or shown again; with none pinned yet, `@`.\nEach change gets a lane after the line number. What the file no longer has stands where it stood as lines of the pane's text with no number, read-only: the cursor, a selection, a search, B2 and B3 work there, and an edit that touches one is refused. After a change's last line comes its description, `id title author age`, its lane ending in an arrow at it; a long one wraps. `] g` and `[ g` step through the changes; B3 on a description's id opens that change's patch at that line (`Diff <id> <path>:<line>`)."}, {"name": "Churn", "leader": "SPC t u", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show how many changes touched each declaration of this file, as a heat lane.", "text": "Show how many changes touched each declaration of this file, as a heat lane.\n`Churn <window>`: a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`). In this view a cell after the line number, from the line numbers' grey to the theme's red on a log scale, and a strip by the scroll thumb. Bare: hidden in this view or shown again; with none counted yet, the file's whole history."}, {"name": "ClipPaste", "leader": "SPC p", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Paste the system clipboard after the selection.", "text": "Paste the system clipboard after the selection."}, @@ -20,8 +20,8 @@ {"name": "CodeAction", "leader": "SPC l a", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List the language server's code actions for the cursor, to apply one.", "text": "List the language server's code actions for the cursor, to apply one.\nTyped where jumps walk, they are a picker in the pane's tag, the one under the cursor shown as its edit, applied by Enter or its digit; else a +Lsp lists them."}, {"name": "Collapse", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Fold this pane to its tag, or give it its share of the column again.", "text": "Fold this pane to its tag, or give it its share of the column again."}, {"name": "Compare", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.", "text": "Draw the file's difference between each two jj revisions as one change, as Changes draws one.\n`Compare <rev> <rev> [<rev> ...]`: two points or more in their order, each one revision (a commit or change id, a bookmark, `master@origin`, `@`): `Compare 9ef6312813 ea63317630 master@origin`. A pair is drawn as one change however many lie between its points; after its last line, its row: the two points, how many changes lie between them, their first and last days. One set a pane: a later Changes or Compare replaces it. Bare: as bare Changes."}, - {"name": "Config", "leader": "SPC f c", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, - {"name": "Debug", "leader": "SPC t d", "also": ["topbar"], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, + {"name": "Config", "leader": "SPC f c", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the startup file, `init` in the configuration directory, in a pane.", "text": "Open the startup file, `init` in the configuration directory, in a pane.\nIts pane when it is open, else the file; not there yet, a pane of that name, which Save makes, its directory too."}, + {"name": "Debug", "leader": "SPC t d", "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A small box of frame statistics at the top right, on or off.", "text": "A small box of frame statistics at the top right, on or off."}, {"name": "Def", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Go to the definition of the symbol under the cursor.", "text": "Go to the definition of the symbol under the cursor.\nWith an argument (a 2-1 chord's selection), of that symbol, asked at its occurrence nearest the cursor. One answer is a jump; several open a list, the keyboard on its current row; none says so. `g d` does the same."}, {"name": "Del", "leader": "SPC d", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane.", "text": "Close the pane.\n`Del k` gives its rows to the pane above it, `Del j` to the one below, each falling back to the other side; bare, from the keyboard between two panes, it asks k or j on the pane's notice band. A docked pane's rows go back to the pane it answers for. Refused once while the pane holds unsaved text (listed in +Unsaved); Del again, nothing edited since, closes it."}, {"name": "DelAbove", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Close the pane, giving its rows to the pane above it, as `Del k` does.", "text": "Close the pane, giving its rows to the pane above it, as `Del k` does."}, @@ -31,7 +31,7 @@ {"name": "Diagnostics", "leader": "SPC l d", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "List this file's diagnostics in a +Search.", "text": "List this file's diagnostics in a +Search.\n`] d` and `[ d` step through them in the text, `] D` and `[ D` to the last and the first."}, {"name": "Diff", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.", "text": "Show a diff's hunks stacked in a +Diff, each under its place, as a diff viewer shows them.\nBare, on a diff (a .diff, a .patch, a +Pager holding one): its hunks stacked; on a +Diff: the diff itself, as text. `Diff <file>`: that .diff's or .patch's hunks. `Diff <hash>` (7 to 40 hex digits): `git show` of that commit, in its own `+Diff-<hash>`. `Diff <change> [path[:line]]` (a jj change id): its patch, its header and whole message on top, the cursor at that place. `Diff <from>..<to> [path[:line]]`: the difference between two points, the changes between them on top.\nEach hunk stands under its `path:line` and the declarations around it, a + or - before each line, the words a changed line changed tinted. `SPC j n` and `SPC j p` step through the hunks; B3 on a place opens it."}, {"name": "Down", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Move the keyboard to the pane below, or off a tag onto the pane under it.", "text": "Move the keyboard to the pane below, or off a tag onto the pane under it."}, - {"name": "Dump", "leader": "SPC s d", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, + {"name": "Dump", "leader": "SPC s d", "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Write the session's panes and layout to the state file, for Restore.", "text": "Write the session's panes and layout to the state file, for Restore.\n`Dump export <path>` writes them to a file of their own instead (`~` the home directory). The workspace tag then holds a `Restore <path>` word that brings them back."}, {"name": "DumpConfig", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.", "text": "Show the settings in effect in a +DumpConfig, as lines the startup file takes.\nThe startup file's path with them; a line run there is that setting."}, {"name": "DumpDir", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "The directory of the state file, where Dump writes and Recent is kept.", "text": "The directory of the state file, where Dump writes and Recent is kept. A relative Restore name is looked for there too; bare, the default."}, {"name": "DumpThemes", "leader": null, "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Write the bundled themes into the configuration directory's themes, to edit.", "text": "Write the bundled themes into the configuration directory's themes, to edit.\nThemeFile loads one back."}, @@ -45,12 +45,12 @@ {"name": "Get", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.", "text": "Read this pane's file again from disk; refused once over unsaved edits, as Del is.\n`Get <file>` loads that file into the pane instead, the pane taking its name. In a directory's pane, it reads the directory again."}, {"name": "Grep", "leader": "SPC f g", "also": ["topbar"], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "List the lines of the files below this pane's directory that hold its argument.", "text": "List the lines of the files below this pane's directory that hold its argument.\nThe text is matched as it is, not as a pattern, in a query pane under this pane, its line 1 `Grep <text>`: with a word, listed, the keyboard left where it was; bare (`SPC f g`), typed into. Past 2000 lines it stops, and More goes on. A script's Grep that finds nothing fails, `not found`."}, {"name": "Help", "leader": "SPC ?", "also": ["topbar"], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Show every builtin with its keys and documentation, or one builtin's alone.", "text": "Show every builtin with its keys and documentation, or one builtin's alone.\n`Help <name>`: that builtin alone, its keys spelled out, what it acts on and its line for a shell (`Help Diff`); a setting or an addon's word the same. `Help <keys>`: the builtins under SPC and those keys (`Help l`, as `SPC l ?` shows them). Each fills the one +Help: a second Help replaces its text."}, - {"name": "History", "leader": "SPC f h", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, + {"name": "History", "leader": "SPC f h", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the state file's dumps, newest first, each with the Restore that brings it back.", "text": "List the state file's dumps, newest first, each with the Restore that brings it back.\nThose Dump made and those every session's end left, in a +History: each a `Restore <label>` line, its date, size and pane count, the panes' names indented under it. B2 on the Restore, or a Look at its line, is that Restore."}, {"name": "Hover", "leader": "SPC l k", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Ask the language server about the symbol under the cursor, its answer in a +Hover.", "text": "Ask the language server about the symbol under the cursor, its answer in a +Hover."}, {"name": "InactiveDim", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off.", "text": "Fade the unfocused panes' text by a percentage, 0 through 100, 0 off."}, {"name": "Incl", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).", "text": "Add directories where a Look tries a name it finds nowhere else (`stdio.h`, `<foo.h>`).\n`Incl <dir> ...` adds them, each absolute or from `~`; bare, it lists them; `Incl -` empties the list. The list is the session's."}, {"name": "Index", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Run the file's language indexer at its project root, writing its index.scip.", "text": "Run the file's language indexer at its project root, writing its index.scip.\nThe language words ask the nearest index.scip above a file first, and its language server only when the index has nothing to say; an index older than the file still answers, and says so once."}, - {"name": "Joincol", "leader": "SPC c j", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, + {"name": "Joincol", "leader": "SPC c j", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Fold the keyboard's column into the one on its right, keeping its panes.", "text": "Fold the keyboard's column into the one on its right, keeping its panes.\nRefused for the last column, and where the joined column could not give each pane its tag and 2 rows."}, {"name": "JumpTrail", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "on, off", "doc": "A jump of the cursor leaves a short trail that fades, on or off.", "text": "A jump of the cursor leaves a short trail that fades, on or off."}, {"name": "Jumplist", "leader": "SPC j l", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the places jumped from in a +Jumps, each a place to go.", "text": "List the places jumped from in a +Jumps, each a place to go."}, {"name": "Jumps", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": "walk, new-pane", "doc": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane).", "text": "A jump steps its pane or that pane's reader (walk), or opens a pane for each file (new-pane)."}, @@ -102,10 +102,10 @@ {"name": "Term", "leader": "SPC n t", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.", "text": "Open a terminal below this pane, in its directory, raw: its keys the shell's at once.\n`Term fish` runs that shell instead of the Shell setting's, as a terminal's own tag word `Term+fish` says; a shell that is not there is said. A directory that is not there makes no terminal."}, {"name": "Theme", "leader": null, "also": [], "arg": true, "scope": "root", "setting": true, "choices": null, "doc": "Switch to the theme named: `Theme atelier`.", "text": "Switch to the theme named: `Theme atelier`. Themes lists them, NextColor steps through them."}, {"name": "ThemeFile", "leader": null, "also": [], "arg": true, "scope": "root", "setting": false, "choices": null, "doc": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.", "text": "Load a theme from a .zon file: `ThemeFile ~/themes/mine.zon`.\nDumpThemes writes the bundled ones out to start from."}, - {"name": "Themes", "leader": "SPC t t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, + {"name": "Themes", "leader": "SPC t t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "List the bundled themes in a +Themes, each a `Theme <name>` line to run.", "text": "List the bundled themes in a +Themes, each a `Theme <name>` line to run."}, {"name": "Togglettymode", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Switch this terminal between raw mode, its keys the program's, and normal mode.", "text": "Switch this terminal between raw mode, its keys the program's, and normal mode."}, {"name": "TreeContext", "leader": null, "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Show, at the pane's head, the declarations its top row is in.", "text": "Show, at the pane's head, the declarations its top row is in.\n`TreeContext on` or `off` sets it; bare, it flips. Only a source file the parser knows has them."}, - {"name": "Tutor", "leader": "SPC h t", "also": ["topbar"], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, + {"name": "Tutor", "leader": "SPC h t", "also": [], "arg": false, "scope": "root", "setting": false, "choices": null, "doc": "Open the tutor, a document to work through.", "text": "Open the tutor, a document to work through."}, {"name": "Undo", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Step the pane's text back one edit.", "text": "Step the pane's text back one edit.\nWith no step left, it says so and changes nothing (a ctl write of it still succeeds, as acme's Undo is silent there). A file keeps 256 steps."}, {"name": "Undock", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.", "text": "Undock a pane from the pane it answers for: it stays where it is, a pane of its own.\nThe next search from that pane opens another under it."}, {"name": "Unfollow", "leader": null, "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Take this pane out of its Follow chain.", "text": "Take this pane out of its Follow chain.\nIt stays, a Zerox twin with the scroll it has, and the chain closes up behind it."}, diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index ba65fcad..2307db2c 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -24,11 +24,13 @@ Over a program that takes the mouse, Shift swaps: #btn("B1", shift: true) select One button: Alt/Option-click is #btn("B2"), Cmd/Super-click #btn("B3"), sweeps too (a terminal passes only Alt); Ctrl-click is a definition; a program that takes the mouse gets the plain click. == Tags -#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit") -#tag("New Term Find Grep Joincol Delcol") -#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt") -#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src") -#tag("Term PdfSections PdfTint PdfFit Collapse Del", path: "[1/12] … manual.pdf") +#tag("Find Grep Newcol Help Exit") +#tag("New Term Joincol Delcol") +#tag("Save Undo Del", path: "/home/me/notes.txt") +#tag("Del Term+bash", path: "/home/me/src") +#tag("PdfSections PdfTint PdfFit Del", path: "[1/12] … manual.pdf") +- A tag's first words act now (#word("Save") and #word("Undo") once the text changes); what you type goes after them. The rest of its kind's words run from `:`, listed for this pane, and typed anywhere. +- One column: its #word("New") #word("Term") sit at the window row's left; a second column brings the column tags' row. - #word("Del") over unsaved text refuses once; again discards. #word("Del") `j`: rows below. #key("SPC d") between two panes takes #key("k") (rows above) or #key("j") (below), asking only if you pause. - #word("Undo") #word("Redo") #word("Edit") #word("Mode") work typed anywhere. #doc("tags") @@ -116,7 +118,7 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla == Terminals and commands - #key("Ctrl-b"): raw (`$`) or normal. #word("Mode") cycles raw, normal, insert. #word("Filter"), #word("Term+bash"). -- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") +- #btn("B2") on a non-builtin line runs it in a *command pane*: #tag("Del", path: "/home/me/src (make) exit 0") - #word("Kill") `make` stops it; #word("Exit") quits. #word("Repl") `python`: `.py` clicks go to it. == Reviewing diffs diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 66d3bb00..6d14c97c 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -103,13 +103,18 @@ the registers. #key("SPC y") and #key("SPC p") use the system clipboard. = Tags <tags> -#tag("Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Fonts Config History Debug Exit") -#tag("New Term Find Grep Joincol Delcol") -#tag("Save Term Collapse Follow Del", path: "/home/me/notes.txt") +#tag("Find Grep Newcol Help Exit") +#tag("New Term Joincol Delcol") +#tag("Save Undo Del", path: "/home/me/notes.txt") -A tag is text with undo. Type `make` into one and #word("Exec") it, or -delete the words you never use. Any word runs from any tag: #word("Exit") -in a pane's tag quits too. +A tag is text with undo. Its first words are the ones that act now, made +again as the pane changes: #word("Save") and #word("Undo") come with an +edit, #word("Keep") while a file reads. What you type goes after them and +stays: type `make` into one and #word("Exec") it. Any word runs from any +tag: #word("Exit") in a pane's tag quits too. The words a tag does not +show run from `:`, listed for this pane, and typed anywhere. With one +column its #word("New") #word("Term") sit at the window row's left; a +second column brings a row of column tags. #pairs( [#key(":")], [the keyboard to the tag, on #word("Save") the first time; #key("Tab") runs it, #key(":") comes back], @@ -136,7 +141,7 @@ A file's text and tag run in its directory: `make` from `README` at the project root is right, from `src/main.c` it is not. The keyboard stays where it was. The command pane's tag ends in `running`, then `exit N`: -#tag("Kill Save Collapse Del", path: "/home/me/src (make) exit 0") +#tag("Del", path: "/home/me/src (make) exit 0") Click into the command pane: #key("n") selects the next `file:line`, #key("Enter") opens it, and #key("n") from there goes on to the next error. @@ -207,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], ) @@ -242,7 +247,7 @@ do nothing. = Terminals <terminals> -#tag("Term+bash Save Mode Filter Collapse Del", path: "/home/me/src") +#tag("Del Term+bash", path: "/home/me/src") - #word("Term") opens a terminal in the pane's directory, #key("Alt-n") one in the session's directory; #word("Term+bash") picks the shell. diff --git a/docs/typ/reference.typ b/docs/typ/reference.typ index 42b44fc9..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 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`)], |
