summaryrefslogtreecommitdiff
path: root/docs/typ/guide.typ
diff options
context:
space:
mode:
Diffstat (limited to 'docs/typ/guide.typ')
-rw-r--r--docs/typ/guide.typ8
1 files changed, 5 insertions, 3 deletions
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"))],