diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-06 21:18:35 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:07 -0300 |
| commit | a373fdda0102a99cde988f87f822fc451e0f4391 (patch) | |
| tree | da16427e6353138dfaf5ed27152adc17f53efb12 /test/snapshots/tag.snap | |
| parent | f442004dcd8e91114765a918201ecabe99f69eeb (diff) | |
| download | pardes-a373fdda0102a99cde988f87f822fc451e0f4391.tar.gz pardes-a373fdda0102a99cde988f87f822fc451e0f4391.zip | |
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.
Diffstat (limited to 'test/snapshots/tag.snap')
| -rw-r--r-- | test/snapshots/tag.snap | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/test/snapshots/tag.snap b/test/snapshots/tag.snap index 0d7be294..449ed2ce 100644 --- a/test/snapshots/tag.snap +++ b/test/snapshots/tag.snap @@ -1,41 +1,42 @@ -# tag editor: click the tag row, edit the tail modally, execute a typed word +# the tag is ALWAYS insert mode: click it and type straight in (no 'i'); +# backspace edits; Esc leaves the tag back to the body's normal mode; Enter +# looks the word at the cursor (Tab executes it). Multi-word execution from +# the tag stays the mouse's job (middle-drag), like anywhere else. file t.txt x start 30 100 -n 3 wait 8000 t.txt stable 700 20000 -# click into the tag tail (after "Del", col past prefix) of pane 0 +# click into the tag tail of pane 0: straight into insert (INS in the prefix) press left 40 2 release left 40 2 stable 400 5000 snap tag-focus -# append a word: A enters insert at end of tail -key A -send \x20echo\x20TAG''OK -key esc +send \x20t.txt settle 700 stable 400 5000 snap tag-typed -# v-select "echo TAG''OK" (col 4 .. line end) and execute it with Tab -key g h -key l l l l -key v -key g l -stable 400 5000 -key tab -wait 10000 TAGOK -stable 700 10000 -snap tag-exec -# v-select a few chars and delete them -key g h -stable 400 5000 -key v l l -stable 400 5000 -snap tag-vsel -snapstyle tag-vsel -key d +key bs +key bs +key bs +key bs stable 400 5000 snap tag-del -# esc: first collapses selection state, then leaves tag editing +send .txt +settle 700 +stable 400 5000 +# Esc: out of the tag, body back in normal mode, typed tail stays as text key esc settle 700 +stable 400 5000 snap tag-exit +# re-enter the tag and look the typed word: Enter opens t.txt as a file pane +press left 40 2 +release left 40 2 +stable 400 5000 +key left +key left +stable 400 5000 +key enter +wait 10000 Save +stable 700 15000 +snap tag-look |
