diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 21:58:59 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:17 -0300 |
| commit | 78e01b9da2090c7c626640fd9103b6e97d4644b5 (patch) | |
| tree | a830e9b1f1d53af7a22909e63496098f42e134f2 | |
| parent | ad7781f065ba3bbda1041d187c53f220da243131 (diff) | |
| download | pardes-78e01b9da2090c7c626640fd9103b6e97d4644b5.tar.gz pardes-78e01b9da2090c7c626640fd9103b6e97d4644b5.zip | |
Docs say how a look resolves a relative path: the looking pane's directory, then each jump-list pane's, most recent first
fs.md's look section and tags.md said nothing of where a relative path
is looked for, so a look that found a file in a directory visited an
hour ago, or not in an open pane never visited, was a surprise. The
order is written as look.zig's resolveLookTarget has it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
| -rw-r--r-- | docs/fs.md | 6 | ||||
| -rw-r--r-- | docs/tags.md | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -227,6 +227,12 @@ go. An `exec` line's blanks at either end are trimmed. nothing is: said on the message row and logged as an `err`, the write still answered. A file that is there but will not open (no permission to read it, say) fails the write, with why. +- a relative path is resolved where the click was, then where you have + been: first against the looking pane's own directory, then against the + directory of each pane in the jump list, most recent first, each + directory tried once; the first that names a file (or a pane open on + that path) wins. A pane never visited (not in the jump list) is not + searched. `./x` and `../x` are the looking pane's directory's alone. - `@p<serial>:<addr>` addresses a pane by serial, a terminal's logical lines too. - a directory types `ls` into a terminal idle there, else opens one there. diff --git a/docs/tags.md b/docs/tags.md index 81ae99a7..5d5bfab2 100644 --- a/docs/tags.md +++ b/docs/tags.md @@ -143,6 +143,9 @@ there Tab executes the word under the cursor (or the selection); Enter looks it up in a pane's tag and runs it in a column or workspace tag. Executing gives the keyboard back to the body first. Paste goes to the focused tag. +A look at a relative path is tried in this pane's directory, then in the +directories of places you've visited (the jump list). + `:` in a body's normal mode focuses its tag (the first time, on `Save`); `:` in a tag goes back. The window keys (`Ctrl-w`, `SPC w` with `h/j/k/l`) move between panes; up from the top pane reaches its column's tag, then the |
