From a1f26fc4977b185cbd603749157360c011452e5e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 26 Jul 2026 23:50:25 -0300 Subject: window navigation builtins: SPC w h/j/k/l focus, SPC w t file<->terminal Left/Down/Up/Right run the existing focusDir (now taking the pane the builtin ran on, so an executed name acts on ITS pane); the Ctrl-w prefix routes through the same four builtins instead of calling focusDir itself. Toggleterm hops between the most recently focused document and terminal off focus_hist, the MRU the core already rebuilds each sync. Ctrl-w stays: a tty-mode pane never sees SPC, so it is the only keyboard way out of one. Its snapshot step now moves focus somewhere (c-w l), which the old c-w h in that layout did not. --- src/tutor.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/tutor.txt') diff --git a/src/tutor.txt b/src/tutor.txt index f2954667..8124cd42 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -450,7 +450,9 @@ Ctrl-f full page down. (Ctrl-b pages up on a file pane; on a terminal it is the default tty toggle. If you start with --tty-toggle=g, Ctrl-g takes that role.) - Ctrl-w h/j/k/l focus the pane left/down/up/right + Ctrl-w h/j/k/l focus the pane left/down/up/right (SPC w h/j/k/l + does the same; Ctrl-w also reaches a tty pane, + where SPC belongs to the shell) Alt-n new terminal below the active one Alt-c move the active terminal into a fresh column @@ -473,6 +475,9 @@ SPC c n / c d Newcol / Delcol SPC t d/c/n/r Debug / Colors / NextColor / Crt toggles SPC s d / s r Dump / Restore the session + SPC w h/j/k/l Left/Down/Up/Right: focus the pane that way + SPC w t Toggleterm: hop between the last document you + looked at and the last terminal, and back `?` works at ANY depth: SPC ? lists everything, SPC h ? lists only what the "h" group holds. Help writes into a "+Help" OUTPUT BUFFER, @@ -504,7 +509,8 @@ : = the tag as a command line (motions, Enter, back) zt zz zb Ctrl-d/u Ctrl-f Ctrl-w hjkl Alt-n/c SPC = the leader: a key path runs a builtin (SPC ? lists - them; SPC k Kill, SPC d Del, SPC f s Save, SPC f f Find) + them; SPC k Kill, SPC d Del, SPC f s Save, SPC f f Find, + SPC w hjkl focus, SPC w t file <-> terminal) vs Helix: no multi-cursor; selection is LINE-first (x), plus v chars. vs Vim: no verb+noun (dw); motions only move; Esc never reaches tty. -- cgit v1.3