From a373fdda0102a99cde988f87f822fc451e0f4391 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 6 Jul 2026 21:18:35 -0300 Subject: insert vs normal cursor shape (all pane types) + the tag is always insert mode. Surface.cursor grew a bar flag: the core sets it from the active pane mode (insert -> bar; normal/tty -> block) for both the modal/file cursor and the vt-tracking terminal cursor, and unconditionally for the tag cursor. tty shell: DECSCUSR via vaxis setCursorShape (beam for insert, the terminal default otherwise). gui shell: the insert cursor draws the left-eighth-block glyph in cell colors instead of the reverse-video block (ponytail: it hides the char under it; a dedicated quad if that ever matters). Tag editing: enterTagEdit goes straight to insert, Esc (or anything that exits the tag) restores the body normal mode; Enter looks / Tab executes the word at the cursor from inside the tag (tagChordText kept); the whole normal-mode tag machinery — handleTagKey motions, v/x selection, d/c/y/p, tagEnterInsert/tagDelete/tagYank/tagPaste — deleted as unreachable (~120 lines; multi-word tag execution stays the mouse middle-drag). tag.snap rewritten: INS on click, type/backspace straight in, Esc exit with the text persisting, Enter-look opens the file. Tutor documents it. Cursor SHAPE is not capturable by the harness (position only) — verify by eye: bar in insert/tags, block elsewhere, both shells. 30/30. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tutor.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/tutor.txt') diff --git a/src/tutor.txt b/src/tutor.txt index 94a2a20e..4c162b97 100644 --- a/src/tutor.txt +++ b/src/tutor.txt @@ -73,7 +73,10 @@ THE TAG: each pane has a one-line tag: its MODE (NOR/INS/TTY) + directory or file path + builtins. File panes show "Save Del" by default; Save - writes the current file to disk, Del closes the window. Terminal and + writes the current file to disk, Del closes the window. Clicking a tag + edits it, ALWAYS in insert mode (a one-line tag has no use for normal + mode): type straight in, Enter looks / Tab executes the word at the + cursor, Esc hands focus back to the body. Terminal and image panes show "Del". "Delcol" still exists as a command: type it in a tag or body and execute it to close the whole column. A SEPARATE bar across the top of the screen holds the window-agnostic builtins: -- cgit v1.3