From 42c0524b94d67caebbf71cd8a82d7690380195fa Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 27 Jul 2026 01:03:46 -0300 Subject: trim the taglines: image renderer toggles and Colors/Crt become leader-only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The image tag spelled out `Petscii Ascii` and actOnSelection matched those words by hand before the builtin dispatch. They are three real Builtins now (SPC t p/l/a), so the by-word matching is gone, the tag is a plain `img Del`, and with nothing live left in it the image early-returns in curTail, enterTagEdit and the tag-click guard go too — an image tag edits like every other pane's. Colors and Crt leave the topbar for SPC t c / SPC t r: set-once display switches should not spend width in a bar you read every frame. NextColor stays, it is the one you cycle repeatedly. Both remain full builtins. The snap scripts that clicked those words now press the leader instead, and images.snap finally exercises the palette and ascii toggles for real: its old clicks at x=57 landed on the neighbouring shell's tag, so that toggle had never been covered. The test PPM grew to 512x512 with LCG noise so the ASCII bitmaps actually win cells and dropping them visibly changes the art. --- test/snapshots/syntax.snap | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'test/snapshots/syntax.snap') diff --git a/test/snapshots/syntax.snap b/test/snapshots/syntax.snap index e39eb6c9..0aa85b71 100644 --- a/test/snapshots/syntax.snap +++ b/test/snapshots/syntax.snap @@ -1,5 +1,5 @@ # tree-sitter: open a .zig file, keyword/string/number/comment colors on; -# Colors off clears them; edit re-highlights +# Colors off (SPC t c) clears them; edit re-highlights file demo.zig const std = @import("std"); // greet\npub fn main() void {\n var x: u32 = 42;\n _ = x;\n} start 30 150 -n 3 wait 8000 demo.zig @@ -17,11 +17,13 @@ wait 10000 @import stable 700 15000 snap zig-open snapstyle zig-open -press middle 25 1 -release middle 25 1 +key space +key t +key c stable 500 10000 snapstyle colors-off -press middle 25 1 -release middle 25 1 +key space +key t +key c stable 500 10000 snapstyle colors-on -- cgit v1.3