diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/typ/builtins-gui.json | 1 | ||||
| -rw-r--r-- | docs/typ/builtins-tui.json | 1 | ||||
| -rw-r--r-- | docs/typ/cheatsheet.typ | 3 | ||||
| -rw-r--r-- | docs/typ/guide.typ | 8 |
4 files changed, 10 insertions, 3 deletions
diff --git a/docs/typ/builtins-gui.json b/docs/typ/builtins-gui.json index ee7375c8..d846c2b7 100644 --- a/docs/typ/builtins-gui.json +++ b/docs/typ/builtins-gui.json @@ -95,6 +95,7 @@ {"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.\nUnder this pane's tag, previewing where its Enter lands: 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": "Root", "leader": "SPC :", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Run its argument as Exec does, at the project's root.", "text": "Run its argument as Exec does, at the project's root.\nThe root is the nearest directory at or above this pane's holding a `.jj` or a `.git`, else this pane's own. `Root make` runs make there in a command pane; `Root Find` and `Root Grep` (`SPC f F`, `SPC f G`) search from there, their heads `Find root` and `Grep root`, a Grep's leading directory read from the root. Bare (`SPC :`), the `:` line, its head `: root`, whose Enter runs the line there."}, {"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."}, {"name": "SelectRefs", "leader": "SPC l h", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select every reference to the symbol under the cursor.", "text": "Select every reference to the symbol under the cursor."}, diff --git a/docs/typ/builtins-tui.json b/docs/typ/builtins-tui.json index 99e46ac7..57ac63f3 100644 --- a/docs/typ/builtins-tui.json +++ b/docs/typ/builtins-tui.json @@ -90,6 +90,7 @@ {"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.\nUnder this pane's tag, previewing where its Enter lands: 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": "Root", "leader": "SPC :", "also": [], "arg": true, "scope": "pane", "setting": false, "choices": null, "doc": "Run its argument as Exec does, at the project's root.", "text": "Run its argument as Exec does, at the project's root.\nThe root is the nearest directory at or above this pane's holding a `.jj` or a `.git`, else this pane's own. `Root make` runs make there in a command pane; `Root Find` and `Root Grep` (`SPC f F`, `SPC f G`) search from there, their heads `Find root` and `Grep root`, a Grep's leading directory read from the root. Bare (`SPC :`), the `:` line, its head `: root`, whose Enter runs the line there."}, {"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."}, {"name": "SelectRefs", "leader": "SPC l h", "also": [], "arg": false, "scope": "pane", "setting": false, "choices": null, "doc": "Select every reference to the symbol under the cursor.", "text": "Select every reference to the symbol under the cursor."}, diff --git a/docs/typ/cheatsheet.typ b/docs/typ/cheatsheet.typ index 2307db2c..dfc9f71c 100644 --- a/docs/typ/cheatsheet.typ +++ b/docs/typ/cheatsheet.typ @@ -88,6 +88,9 @@ Helix-style: motions *select*, then an edit acts on the selection. Mode box: bla key("SPC f n"), word("New"), key("SPC f f"), word("Find"), key("SPC f g"), word("Grep"), + key("SPC f F"), [#word("Find") at the root], + key("SPC f G"), [#word("Grep") at the root], + key("SPC :"), [`:` at the root], key("SPC f r"), word("Recent"), key("SPC f h"), word("History"), key("SPC f l"), [#word("Lists"): the kept pickers], diff --git a/docs/typ/guide.typ b/docs/typ/guide.typ index 6d14c97c..df78852b 100644 --- a/docs/typ/guide.typ +++ b/docs/typ/guide.typ @@ -135,10 +135,12 @@ Where it runs depends on where you clicked: [any other pane's text or tag], [a command pane in that pane's directory, in the last column], [a column's tag], [a command pane in the session's directory, in that column], [the workspace tag], [a command pane in the session's directory, in the last column], + [#key("SPC :") (#word("Root"))], [a command pane at the project's root: the nearest directory at or above the pane's holding a `.jj` or `.git`], ) 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 +project root is right, from `src/main.c` it is not; #key("SPC :") `make` +runs it at the root from anywhere in the project. The keyboard stays where it was. The command pane's tag ends in `running`, then `exit N`: #tag("Del", path: "/home/me/src (make) exit 0") @@ -208,8 +210,8 @@ Line 1's first word names what it searches, and editing the word changes it: #pairs( [`/pat`], [the pane's own text: a regex, any case unless it has a capital (#key("/"))], - [`Find name`], [the files below the pane's directory, by a fuzzy match of their names (#key("SPC f f"), #word("Find"))], - [`Grep text`], [the lines of those files holding `text`, literally (#key("SPC f g"), #word("Grep")); past 2000 lines #word("More") goes on], + [`Find name`], [the files below the pane's directory, by a fuzzy match of their names (#key("SPC f f"), #word("Find")); #key("SPC f F") from the project's root, the nearest directory above holding a `.jj` or `.git`], + [`Grep text`], [the lines of those files holding `text`, literally (#key("SPC f g"), #word("Grep"); #key("SPC f G") from the project's root); 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 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"))], |
