From c79612b523c1526202335302e1e49c078ca317cf Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 27 Jul 2026 10:20:19 -0300 Subject: look resolves against every open pane's directory: clicked pane first, then most-recently-focused, search only when all fail --- src/tutor.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/tutor.txt') diff --git a/src/tutor.txt b/src/tutor.txt index 80a67c57..195173c6 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -65,6 +65,9 @@ R look open the word under the cursor as a path: a directory opens/focuses a terminal there and ls's it; a file opens a file pane (scrolled to a ":line" suffix if present). + A bare name is tried in THIS pane's directory first, then + in every other open pane's, most recently used first — a + name none of them holds is what becomes a search. WEB TOUCH (one finger): a tap is LOOK, the same action as R; a drag past a small movement threshold is natural scrolling. @@ -137,8 +140,8 @@ That is an OUTPUT BUFFER: a file pane with no file behind it, so it has no Save, but everything else about it is an ordinary buffer you can read, edit, select and look in. `n`/`N` step the rows and look each one, so the - view follows along. Right-clicking a word that names no file searches for - it the same way — acme's button 3 — everywhere except a shell in tty mode, + view follows along. Right-clicking a word that names no file in ANY open + pane's directory searches for it — acme's button 3 — except in tty mode, where the click belongs to the program on the other end. On a shell with no search armed, n/N instead step the lookable tokens in its output. A hit in a file reads `path:LINE:COL`, the ordinary look target. A hit in -- cgit v1.3