summaryrefslogtreecommitdiff
path: root/src/deck.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-06 20:58:04 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit49f8c696ea208d2653521699d77d7e8f48cac183 (patch)
tree522a74735b2507399c2fc913a8bdc4287584f98f /src/deck.zig
parent513938c1cfb216a3bc4a3559cf7731b8e44a952f (diff)
downloadpardes-49f8c696ea208d2653521699d77d7e8f48cac183.tar.gz
pardes-49f8c696ea208d2653521699d77d7e8f48cac183.zip
rework tty n/N: a pure token MOTION (normal mode only) — select the next/prev whitespace-separated token that look.resolve can open (several per line: the greet ls row hops big.txt -> plain.txt -> sub), park the cursor at the token start, open NOTHING. Enter's existing normal-mode handler does the look on the selection (dir -> shell+ls there, file -> pane), so navigation continues with n/N+Return inside whatever opened. Wraps when nothing lies in the motion direction (first n out of tty mode starts at the prompt row and lands on the first token — lookStep pins the cursor first). vsel anchors the token end, cursor at its start (vselText is end-inclusive). File-pane search n/N untouched. ttylook.snap rewritten for the new semantics: token hops with selection styling, insert-mode n still types, Return-opens-dir, empty-dir no-op, cursor-word Enter opens a file. 29/29.
Diffstat (limited to 'src/deck.zig')
0 files changed, 0 insertions, 0 deletions