summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-25 14:20:01 -0300
committerGabriel Schneider <[email protected]>2026-11-25 14:32:15 -0300
commitf1b8c2acf131a38a85232c5c268b9b900c21d877 (patch)
treeccb3f5f68d58ef2635dea8bdbac6fdd90bd6224b /test
parent89fb37907f34c0a55b85da44ea8f016b3e41081d (diff)
downloadpardes-f1b8c2acf131a38a85232c5c268b9b900c21d877.tar.gz
pardes-f1b8c2acf131a38a85232c5c268b9b900c21d877.zip
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
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test')
-rw-r--r--test/snapshots/badutf.golden2
-rw-r--r--test/snapshots/lookloaded.golden2
-rw-r--r--test/snapshots/lsp-rename-files.golden2
-rw-r--r--test/snapshots/msg.golden4
-rw-r--r--test/snapshots/savepane.golden2
-rw-r--r--test/snapshots/shellset.golden2
-rw-r--r--test/snapshots/tagalign.golden4
-rw-r--r--test/snapshots/tagpath.golden2
-rw-r--r--test/snapshots/wheeldrift.golden2
-rw-r--r--test/snapshots/wrap.golden3
10 files changed, 13 insertions, 12 deletions
diff --git a/test/snapshots/badutf.golden b/test/snapshots/badutf.golden
index 02a6a159..fc04cca5 100644
--- a/test/snapshots/badutf.golden
+++ b/test/snapshots/badutf.golden
@@ -61,4 +61,4 @@
|
|
|
-| ✓ /tmp/pardes-snap/badutf… 1 message · SPC h m
+| ✓ …adutf/cwd/wide.txt Wrap 1 message · SPC h m
diff --git a/test/snapshots/lookloaded.golden b/test/snapshots/lookloaded.golden
index ff90c6eb..b406d639 100644
--- a/test/snapshots/lookloaded.golden
+++ b/test/snapshots/lookloaded.golden
@@ -34,7 +34,7 @@
|6: rm big.txt; echo GO''NE
|7: GONE
|21: */tmp/pardes-snap/lookloaded/cwd/big.txt Save Ter
-|30: · /tmp/pardes-snap/lookloaded/cwd/big.txt deleted on disk (Save writes it … 2 messages · SPC h m
+|30: · …ardes-snap/lookloaded/cwd/big.txt deleted on disk (Save writes it again) 2 messages · SPC h m
== snap look-noFS grid=100x31 cursor=14,26
|8: big.txt:40 big.txt:10 big.txt:10
|23: 7 line 7
diff --git a/test/snapshots/lsp-rename-files.golden b/test/snapshots/lsp-rename-files.golden
index 52b8829c..95b1ca1e 100644
--- a/test/snapshots/lsp-rename-files.golden
+++ b/test/snapshots/lsp-rename-files.golden
@@ -33,4 +33,4 @@
|20: 5 main.rs:5:13-15
|21: 6 sum
|22: ~
-|24: · /tmp/pardes-snap/lsp-rename-files/cwd/lib.rs Rename: 3 edit(s) across fi… 2 messages · SPC h m
+|24: · …-files/cwd/lib.rs Rename: 3 edit(s) across files, previewed, not applied 2 messages · SPC h m
diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden
index 834d2219..529b3ad9 100644
--- a/test/snapshots/msg.golden
+++ b/test/snapshots/msg.golden
@@ -58,8 +58,8 @@
|2: */tmp/pardes-snap/msg/cwd/a.txt Save Term Collapse Follow Del
|4: 2
|5: 3 Msg hand-written report
-|16: · /tmp/pardes-snap/msg/cwd/a.txt hand-writte… 7 messages · SPC h m
+|16: · …des-snap/msg/cwd/a.txt hand-written report 7 messages · SPC h m
== snap msgtail grid=70x17 cursor=32,7
|6: 4 Msg 0123456789 0123456789 0123456789 0123456789 0123456789 012↩
|7: 3456789 0123456789 THE-END
-|16: · /tmp/pardes-snap/msg/cwd/a.txt 0123456789 … 9 messages · SPC h m
+|16: · …a.txt 0123456789 0123456789 0123456789 01… 9 messages · SPC h m
diff --git a/test/snapshots/savepane.golden b/test/snapshots/savepane.golden
index 41c7ca3e..c434bd40 100644
--- a/test/snapshots/savepane.golden
+++ b/test/snapshots/savepane.golden
@@ -36,7 +36,7 @@
== snap saved grid=100x31 cursor=20,17
|16: /tmp/pardes-snap/savepane/cwd/saved.txt Keep Save Term Collapse Follow Del
|17: 1 scratch bytes
-|30: · /tmp/pardes-snap/savepane/cwd/+New saved /tmp/pardes-snap/savepane/cwd/s… 3 messages · SPC h m
+|30: · …des-snap/savepane/cwd/+New saved /tmp/pardes-snap/savepane/cwd/saved.txt 3 messages · SPC h m
== file bytes
scratch bytes
== end file
diff --git a/test/snapshots/shellset.golden b/test/snapshots/shellset.golden
index 2a59619f..8fb2abed 100644
--- a/test/snapshots/shellset.golden
+++ b/test/snapshots/shellset.golden
@@ -22,7 +22,7 @@
| /tmp/pardes-snap/shellset/cwd/cmd.txt:1
== snap builtin-ran grid=90x21 cursor=25,3
|2: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep Save Term Collapse Follow Del
-|20: ✗ /tmp/pardes-snap/shellset/cwd/cmd.txt Shell: shell "zznosuchsh… 3 messages · SPC h m
+|20: ✗ …cmd.txt Shell: shell "zznosuchshell" not found (a name on the… 3 messages · SPC h m
== snap fallback-shell grid=90x21 cursor=49,6
|1: New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol
|2: ✗/tmp/pardes-snap/shellset/cwd/cmd.txt Keep /tmp/pardes-snap/shellset/cwd Term+bash Sav
diff --git a/test/snapshots/tagalign.golden b/test/snapshots/tagalign.golden
index e64d7297..f42ce294 100644
--- a/test/snapshots/tagalign.golden
+++ b/test/snapshots/tagalign.golden
@@ -157,7 +157,7 @@
|
|
|
-| · /tmp/pardes-snap/tagalign/cwd/deep/nested-p… 1 message · SPC h m
+| · …document.txt name drafted: Enter renames t… 1 message · SPC h m
== snap alone grid=70x31 cursor=4,6
|2: /tmp/pardes-snap/tagalign/cwd Term+bash Save Mode Filter Collapse De
|3: l
@@ -168,4 +168,4 @@
|8:
|9:
|10:
-|30: ✓ /tmp/pardes-snap/tagalign/cwd/deep/nested-… 3 messages · SPC h m
+|30: ✓ …/nested-project-directory/document.txt Del 3 messages · SPC h m
diff --git a/test/snapshots/tagpath.golden b/test/snapshots/tagpath.golden
index 9ec3d963..df331438 100644
--- a/test/snapshots/tagpath.golden
+++ b/test/snapshots/tagpath.golden
@@ -77,6 +77,6 @@
|30: ✓ /tmp/pardes-snap/tagpath/cwd/c.txt Last 1 message · SPC h m
== snap name-cancelled grid=100x31 cursor=41,3
|2: */tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del
-|30: · /tmp/pardes-snap/tagpath/cwd/c.txt name drafted: Enter renames the buffe… 2 messages · SPC h m
+|30: · …th/cwd/c.txt name drafted: Enter renames the buffer, Esc drops the draft 2 messages · SPC h m
== snap name-committed grid=100x31 cursor=41,3
|2: */renamed/tmp/pardes-snap/tagpath/cwd/c.txt Save Term Collapse Follow Del
diff --git a/test/snapshots/wheeldrift.golden b/test/snapshots/wheeldrift.golden
index 30d0f6ab..7cb647d4 100644
--- a/test/snapshots/wheeldrift.golden
+++ b/test/snapshots/wheeldrift.golden
@@ -15,7 +15,7 @@
| 10 line 10_0123456789_abcdefghij_ZEND
| 11 line 11_0123456789_abcdefghij_ZEND
| 12 line 12_0123456789_abcdefghij_ZEND
-| ✓ /tmp/pardes-snap/wheeldrift/cwd/drift.txt W… 1 message · SPC h m
+| ✓ …p/pardes-snap/wheeldrift/cwd/drift.txt Wrap 1 message · SPC h m
== snap drifted grid=70x17 cursor=hidden
|4: 6 line 6_0123456789_abcdefghij_ZEND
|5: 7 line 7_0123456789_abcdefghij_ZEND
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