From 78e01b9da2090c7c626640fd9103b6e97d4644b5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 30 Sep 2026 21:58:59 -0300 Subject: 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 --- docs/fs.md | 6 ++++++ docs/tags.md | 3 +++ 2 files changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/fs.md b/docs/fs.md index 43980973..85be803d 100644 --- a/docs/fs.md +++ b/docs/fs.md @@ -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:` 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 -- cgit v1.3