From f1b8c2acf131a38a85232c5c268b9b900c21d877 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 25 Nov 2026 14:20:01 -0300 Subject: Messages: a message too wide for the notice row gives way by its items, each cut showing `…` (UX D2, E5.4, F2): its cause first (a path from its left down to its name, `…Query.zig`; a command from its right down to its pane, `@p2…`), then each path its words and places name, from its left down to its name, and its words last, from the right, two blanks before the right part as before: noticeRow cut a message's whole left from the right, so a long cause path took the row and the words never showed (S2 08b at 26 px: `· /tmp/…/sources/of/th… 3 messages`, the message itself gone), a path in its words was cut on the right (08a: `saved /tmp/…/to/the/sources…`), and the place an error names was cut into (09a: `… exit 1 /tmp/c…`); causeWord's command cut (64 bytes) ends in `…` too (09a: `argument(s), fo exit 1`); the new giveWay walks an item's cells once from the end it cuts (no width sum per byte); a row that fits is built as before, byte for byte; TEST FIRST: Messages "a message too wide for the notice row gives way by its items ..." (08b, 08a and 09a's rows at 97 cells, and a command pane's cause word: fails on the base at Messages.zig:1735, 08b's left not `· …Query.zig the build in the other column finished`); a user hits it whenever a message and its cause or place are wider than the window's foot row; goldens (process-test, regenerated and every changed row read): the notice row of badutf, shellset, savepane, msg (two rows), lookloaded, lsp-rename-files, wrap, tagpath, tagalign (two rows) and wheeldrift now shows the message's words where the cause path took the row (`· …des-snap/msg/cwd/a.txt hand-written report` for `· /tmp/pardes-snap/msg/cwd/a.txt hand-writte…`, `✗ …cmd.txt Shell: shell "zznosuchshell" not found (a name on the…` for `✗ /tmp/pardes-snap/shellset/cwd/cmd.txt Shell: shell "zznosuchsh…`), a path in the words whole (savepane's `saved …/saved.txt`); wrap gains a frame, its `Wrap ×2` now shown where both frames read `✓ /tmp/pardes-snap/wrap…`; nothing else moved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- test/snapshots/wrap.golden | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/snapshots/wrap.golden') diff --git a/test/snapshots/wrap.golden b/test/snapshots/wrap.golden index 2940bdb2..5c9b085e 100644 --- a/test/snapshots/wrap.golden +++ b/test/snapshots/wrap.golden @@ -31,7 +31,7 @@ |9: |10: |11: -|14: ✓ /tmp/pardes-snap/wrap… 1 message · SPC h m +|14: ✓ …rap/cwd/long.txt Wrap 1 message · SPC h m == snap on-again grid=48x15 cursor=10,7 |4: 1 0---------1---------2---------3---------↩ |5: 4---------5---------6---------7---------↩ @@ -41,6 +41,7 @@ |9: 2 second line |10: 3 third line |11: ~ +|14: ✓ …/cwd/long.txt Wrap ×2 1 message · SPC h m == snap on-wide grid=128x15 cursor=7,3 | Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit | New Term Find Grep Joincol Delcol -- cgit v1.3