From 802de4f12f125abc261c58bdb5385f6be3ad469a Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 09:43:37 -0300 Subject: Shift-Esc always backs out: in every mode and pane it goes to the previous pane, as Esc does from normal, and a raw program never sees it; Ctrl-b alone toggles raw Shift-Esc switched a terminal in normal or insert mode into raw, so the one key meant to get out of anything got a script or a person into a program instead. It is now handled before any mode: an open prompt is closed, insert mode left, a pending count dropped, and Last runs, the pane keeping its mode (a raw terminal stays raw). Ctrl-b is the only switch between raw and normal. The keymap's two chords become one, back_out; the cheatsheet row, the guide's mode table and the tutor say so, and the tty and builtins goldens are re-recorded. Co-Authored-By: Claude Opus 5.5 --- src/tutor.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tutor.txt') diff --git a/src/tutor.txt b/src/tutor.txt index 37938574..bd79d5a4 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -43,9 +43,9 @@ Esc and Shift-Esc, by mode: NORMAL Esc back to the previous pane (`Last`, SPC j j) - Shift-Esc the same; in a terminal it switches to RAW + Shift-Esc the same INSERT Esc back to NORMAL - Shift-Esc the same; in a terminal it switches to RAW + Shift-Esc out of INSERT and back to the previous pane RAW Esc goes to the program, except at an idle, EMPTY shell prompt: back to the previous pane Shift-Esc always back to the previous pane @@ -447,8 +447,8 @@ typed MODES blank NORMAL, ^ INSERT, $ RAW; each pane keeps its own Esc: back to the previous pane (RAW: only at an empty prompt; INSERT: back to NORMAL) - Shift-Esc: out of RAW always; in a terminal's NORMAL, - into RAW; Ctrl-b toggles RAW and NORMAL + Shift-Esc: back to the previous pane from any mode, + RAW included; Ctrl-b toggles RAW and NORMAL MOUSE L select/focus M execute R look 1-2 cut 1-3 paste 1-2 then 1-3 copy -- cgit v1.3