From a4a2a96d023a5977ae7a7d07c7ee9e4fe38e9c60 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 26 Jul 2026 17:47:39 -0300 Subject: Small ux improvements, : tagline focus --- test/snapshots/tagcmd.snap | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 test/snapshots/tagcmd.snap (limited to 'test/snapshots/tagcmd.snap') diff --git a/test/snapshots/tagcmd.snap b/test/snapshots/tagcmd.snap new file mode 100644 index 00000000..d7d002ff --- /dev/null +++ b/test/snapshots/tagcmd.snap @@ -0,0 +1,40 @@ +# `:` — vim's command line with acme's vocabulary. It focuses the pane's OWN +# tag in NORMAL mode (block cursor, NOR in the prefix), parked at the tail's +# START — always the start, so `:w` is the same two keystrokes every time. +# Motions walk the tag's words (w selects the "Save" span, exactly like a body +# word motion), the execute chord runs the one under the cursor and hands the +# body back in normal mode — same keys as the body, so Tab by default (see +# swap_enter_tab). Esc backs out instead, leaving the tail as it was. +lines c.txt 6 +start 30 100 c.txt +wait 8000 Kill Newcol +wait 8000 c.txt +stable 700 20000 +# edit line 1 so Save has something to write +key i +text ZZEDIT +key esc +settle 700 +stable 400 5000 +snap edited +# `:` -> the tag, in normal mode, cursor on the tail's first cell +key : +stable 400 5000 +snap colon +# w -> the "Save" span (selected, like the body's word motion) +key w +stable 400 5000 +snap word +# Tab executes it: c.txt is written and focus is back in the body +key tab +settle 800 +stable 400 5000 +snap saved +snapfile written /tmp/pardes-snap/tagcmd/cwd/c.txt +# `:` then Esc: back to the body with the tail untouched, nothing run +key : +stable 400 5000 +key esc +settle 700 +stable 400 5000 +snap escaped -- cgit v1.3