summaryrefslogtreecommitdiff
path: root/test/snapshots/follow.golden
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 00:03:50 -0300
committerGabriel Schneider <[email protected]>2026-11-26 02:04:52 -0300
commit13d234f431a98bf97fcc1caec812f59eff711aa0 (patch)
treedb88980c1cd3fafb4e56e66ea6387f1f2bdd6eb4 /test/snapshots/follow.golden
parent94f00e966c908d370e34ed5e0496a86b33de26d6 (diff)
downloadpardes-13d234f431a98bf97fcc1caec812f59eff711aa0.tar.gz
pardes-13d234f431a98bf97fcc1caec812f59eff711aa0.zip
tagline, edit, dump, layout: a pane tag reads its path, then its computed words, the words that act now, read-only and made again from its state as the path is, then the user's text (UX DESIGN K'1, K'3, binding; the user: "pardes looked so cramped and full of information with the taglines compared to the other editors", "I liked C and D"); THE OLD WAY: a tag's words were its own text (`tag.own`, or until edited its kind's default `*_tail`: `Save Term Collapse Follow Del`, a speaking file's `Def Refs`, `TreeContext`, `LocationsConfig`, a terminal's `Term Save Mode Filter Collapse Del`), the same in every state, so a file tag held 5 to 9 command words, wrapped to a second row at 84 columns, and `Save` stood there clean; THE CHANGE: tagline.computedWords per K'3's table (a file reading `Keep Del`, `Keep` its walk's word after the path as before; held `Del`, `Undo` while its journal has a step back with something in it (insert mode's `i` alone marks a step of none: a behaviour test caught `Undo` coming, and a 24-column tag wrapping, before a key was typed), `Redo` while it has one forward; unsaved, gone from disk too, `Save Undo Del`; `Diff` first for a diff, a +Pager holding one and the Diff view; `Filter` for a +Pager; a +New never `Save` (the table's `Del; Undo once typed into`); a directory `Get Del`; a command pane `Kill Del` running, `Del` done; queries and the preview unchanged; a kind its own words then `Del` (Kind.reopen, `Term` and `Collapse` gone); a terminal `Del`, its shell's word after it as its text, `Term` until the shell says its name, then `Term+fish`, as before), a comptime table of the 32 file combinations, no allocation; restPrefix = path, computed words and a blank, the prefix every edit must leave as it is (edit.setEditTextSpan, which compared the path alone) and the 9P cleartag's caret goes after; `tag.own` holds only what the user typed (curTail: own, else a terminal's shell word, else none), shown after the computed words and never regenerated; enterTag puts the caret at the start of the user's text, no longer on `Save`; a question waiting at rest (TagState.asks, the test TagState.asking used) replaces the computed words with the own text, as out of rest (D13, D1 unchanged: prefixIn gives the path alone, sync keeps the tag's offsets at rest); `:` lists the computed words, then the own text's, `in the tag`; Follow's `Unfollow` goes in the new page's own text with no second blank; RESTORE: dump.dropOldTags drops an own text equal to its kind's tag before K' (tagline.kindTail, the old defaults kept for it) where a Restore, a start from a dump and an Upgrade load (loadAndRevive; a replica's join loads its authority's, dropped there; a Restore replays through the same path), any other kept whole as the user's text; THE LAYOUT (two faults the lean tags let the random placements find, ninep/tree.zig "random placements ... leave no pane under its tag and two rows"): (1) seed 273 (core-test): `Edit =` gave a full column's +Errors an undo step, `Undo` wrapped its 16-cell tag onto a 5th row, the pane under its minimum, no row to give: layout.minRows now counts a tag with the widest computed words its pane can come to show (tagline.widestWords: `Save Undo Redo` where it saves, a query's frozen words; a reading pane's own, its first edit holds it), so an edit never takes a row its placement did not leave; (2) seed 162 and 192 (shell-test): a walk step in a 12-cell tag whose basename did not fit beside its newest step (`test.txt:1 › …f.txt Keep Del`), the fold had nothing left to cut: tagline.folded then folds that step into the `+N` too (D2's basename stays whole; a hunk in the fold W4 touches); TESTS (FIRST): tagline.zig "a pane tag's computed words are the words that act now, its own text after them (UX K'1, K'3)" (reading, held, typed twice, undone, saved, a .patch, a pager, a pager's diff, a +New before and after typing, a kind), "typing in a tag goes after its computed words, and stays the user's text through a change of state" (`Mine` typed after `Del`, a Backspace on the blank before it refused, the body typed into: `Save Undo Del Mine`, the caret still on `M`), "a dump of a build before UX K' restores a tag's old default own text as none, any other as the user's"; TESTS CHANGED, each for a word gone from a tag: lsp/Ask.zig Def/Refs (the 2-1 chord now on `Def Refs` typed into the tag's own text, kindTail asserts the kind's words), Effect.zig "Save is a word of every pane with text behind it and no other" (kindTail, computedWords `Del` while clean), Core.zig TreeContext (kindTail, the tag holds no TreeContext), Filter (computedWords `Filter Del`), pane-tag Exec (`Term+sh` the text; `Theme dark` and the fallback word found where they are), compact tag commands (`Del Term`), Term+ paths (`Term+/bin/sh`, `Term+sh`), the command pane's and REPL's prefixes (pathPrefix), Dir (`Get Del`), Stream (`More Del`), jj At (pathPrefix), Pipe (`| tr` on the own text `Look here`), Command.zig `:` (typed into first: `Save Undo Del` its tag's rows, 14 commands), Trail.zig (W4's file: tags `/test.txt Del `, `rank.zig Del `; the Fixture 120 to 200 columns, as its 85-cell tmp paths beside a short tag folded the walks these tests read; "too short to halve" 24 to 20 rows), TagState and Band (a tag of two rows: own text given), Messages (the question test at 200 columns, the tag at rest one row), dev/tui/tui.zig (a terminal view's wrapped tag read on across its rows: the shorter prefix cut `w19`), test/mode.zig (`Mode` typed into the terminal tag's own text, kindTail has it), test/panes.zig (an image's pathPrefix); BEHAVIOUR (a helper's edits, each a word moved): tags.zig (a tag's keyboard starts on its own text, so `Save Term`, `Save`, `JumpTrail` are written into the own text where a test clicked or edited them; expected tags `/test.txt Del ...`), keys.zig (a scratch's Save prompt by `SPC f s`, was `::` Tab), modes.zig, mouse.zig (`Keep Del`, the own text swept), panes.zig ("an unsaved file's tag ... Save and Undo come into its words", Collapse by `C-w c`), placement.zig, terminals.zig (`Del Term`), addons_pdf.zig (`PdfSections PdfTint PdfFit Del`), columns_and_tags.zig; addons/fake/fake.out and addons/life/life.out re-recorded (a tag one row shorter: one more body row); PROCESS (a helper's edits): 11 cases clicked a word gone or a row a shorter tag moved (lookpanes, selarg, tagnav, tag, images, collapse, layout-open, ghostty-mid, look-fd-deep, respawn, ttylook: each to the word's new place, the own text or the row it moved to) and 5 more whose clicks had silently stopped doing what their comments say (shrinktag, windowops, ttyedit, tagcmd, chordcut); GOLDENS: 101 re-recorded, every change one of: a tag's words (`Term+bash Save Mode Filter Collapse Del` to `Del Term+bash`), a tag no longer wrapping (its body a row taller, the rows under it up one, one more line at the foot), splits a row smaller where a tag above stopped wrapping, a click at a fixed row landing a body row lower, the computed words' ink in style rows; three now do what their comments say where the old golden recorded a miss (chordcut's end, jumps' look-row, wrap's logical-j); ttyhelp.golden left as the merge's placeholder (M1's; this change moves it too); core-test 1126/1299 (173 skipped: +3), shell-test 1347/1350 (3 skipped), pane-test 183/184 (1 skipped), behaviour-test 280/280 and --replay 20 seeds of 70 steps 0 failures, process-test 1 of 147 failed (ttyhelp, the placeholder; 3 skipped), term-test 17/17, kitty-test 45/45, the gui unit-test 1949/1954 (4 skipped; its one failure colors.zig's whole-ring CPU timing at a load of 8.7, L1's, passing in core-test, and the known BaselineHarnessMismatch); the soak `replicas -- --clients 5 --rtt 30,80,207`: diverged 0, unequal 0, agree/differ 451/0 420/0 623/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak; no dump field changes (no fuzz); no frame/perf gate (moved to the programme's end); load 2.6 to 10.5
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'test/snapshots/follow.golden')
-rw-r--r--test/snapshots/follow.golden110
1 files changed, 55 insertions, 55 deletions
diff --git a/test/snapshots/follow.golden b/test/snapshots/follow.golden
index 56de4eb4..91bcdd3d 100644
--- a/test/snapshots/follow.golden
+++ b/test/snapshots/follow.golden
@@ -1,59 +1,59 @@
== snap three-pages grid=150x30 cursor=7,3
| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config History Debug Exit
| New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol New Term Find Grep Joincol Delcol
-| /tmp/pardes-snap/follow/cwd/big.txt Keep Save Term Collapse Follow Del /tmp/pardes-snap/follow/cwd/big.txt /tmp/pardes-snap/follow/cwd/big.txt
-| 1 line 1 Keep Save Term Collapse Follow Del U Keep Save Term Collapse Follow Del
-| 2 line 2 nfollow Unfollow
-| 3 line 3 27 line 27 51 line 51
-| 4 line 4 28 line 28 52 line 52
-| 5 line 5 29 line 29 53 line 53
-| 6 line 6 30 line 30 54 line 54
-| 7 line 7 31 line 31 55 line 55
-| 8 line 8 32 line 32 56 line 56
-| 9 line 9 33 line 33 57 line 57
-| 10 line 10 34 line 34 58 line 58
-| 11 line 11 35 line 35 59 line 59
-| 12 line 12 36 line 36 60 line 60
-| 13 line 13 37 line 37 61 line 61
-| 14 line 14 38 line 38 62 line 62
-| 15 line 15 39 line 39 63 line 63
-| 16 line 16 40 line 40 64 line 64
-| 17 line 17 41 line 41 65 line 65
-| 18 line 18 42 line 42 66 line 66
-| 19 line 19 43 line 43 67 line 67
-| 20 line 20 44 line 44 68 line 68
-| 21 line 21 45 line 45 69 line 69
-| 22 line 22 46 line 46 70 line 70
-| 23 line 23 47 line 47 71 line 71
-| 24 line 24 48 line 48 72 line 72
-| 25 line 25 49 line 49 73 line 73
-| 26 line 26 50 line 50 74 line 74
+| /tmp/pardes-snap/follow/cwd/big.txt Keep Del /tmp/pardes-snap/follow/cwd/big.txt /tmp/pardes-snap/follow/cwd/big.txt
+| 1 line 1 Keep Del Unfollow Keep Del Unfollow
+| 2 line 2 27 line 27 52 line 52
+| 3 line 3 28 line 28 53 line 53
+| 4 line 4 29 line 29 54 line 54
+| 5 line 5 30 line 30 55 line 55
+| 6 line 6 31 line 31 56 line 56
+| 7 line 7 32 line 32 57 line 57
+| 8 line 8 33 line 33 58 line 58
+| 9 line 9 34 line 34 59 line 59
+| 10 line 10 35 line 35 60 line 60
+| 11 line 11 36 line 36 61 line 61
+| 12 line 12 37 line 37 62 line 62
+| 13 line 13 38 line 38 63 line 63
+| 14 line 14 39 line 39 64 line 64
+| 15 line 15 40 line 40 65 line 65
+| 16 line 16 41 line 41 66 line 66
+| 17 line 17 42 line 42 67 line 67
+| 18 line 18 43 line 43 68 line 68
+| 19 line 19 44 line 44 69 line 69
+| 20 line 20 45 line 45 70 line 70
+| 21 line 21 46 line 46 71 line 71
+| 22 line 22 47 line 47 72 line 72
+| 23 line 23 48 line 48 73 line 73
+| 24 line 24 49 line 49 74 line 74
+| 25 line 25 50 line 50 75 line 75
+| 26 line 26 51 line 51 76 line 76
| ✓ /tmp/pardes-snap/follow/cwd/big.txt Follow ×2 1 message · SPC h m
-== snap hop grid=150x30 cursor=82,6
-== snap wheel grid=150x30 cursor=82,5
-|3: 2 line 2 Keep Save Term Collapse Follow Del U Keep Save Term Collapse Follow Del
-|4: 3 line 3 nfollow Unfollow
-|5: 4 line 4 28 line 28 52 line 52
-|6: 5 line 5 29 line 29 53 line 53
-|7: 6 line 6 30 line 30 54 line 54
-|8: 7 line 7 31 line 31 55 line 55
-|9: 8 line 8 32 line 32 56 line 56
-|10: 9 line 9 33 line 33 57 line 57
-|11: 10 line 10 34 line 34 58 line 58
-|12: 11 line 11 35 line 35 59 line 59
-|13: 12 line 12 36 line 36 60 line 60
-|14: 13 line 13 37 line 37 61 line 61
-|15: 14 line 14 38 line 38 62 line 62
-|16: 15 line 15 39 line 39 63 line 63
-|17: 16 line 16 40 line 40 64 line 64
-|18: 17 line 17 41 line 41 65 line 65
-|19: 18 line 18 42 line 42 66 line 66
-|20: 19 line 19 43 line 43 67 line 67
-|21: 20 line 20 44 line 44 68 line 68
-|22: 21 line 21 45 line 45 69 line 69
-|23: 22 line 22 46 line 46 70 line 70
-|24: 23 line 23 47 line 47 71 line 71
-|25: 24 line 24 48 line 48 72 line 72
-|26: 25 line 25 49 line 49 73 line 73
-|27: 26 line 26 50 line 50 74 line 74
-|28: 27 line 27 51 line 51 75 line 75
+== snap hop grid=150x30 cursor=82,5
+== snap wheel grid=150x30 cursor=82,4
+|3: 2 line 2 Keep Del Unfollow Keep Del Unfollow
+|4: 3 line 3 28 line 28 53 line 53
+|5: 4 line 4 29 line 29 54 line 54
+|6: 5 line 5 30 line 30 55 line 55
+|7: 6 line 6 31 line 31 56 line 56
+|8: 7 line 7 32 line 32 57 line 57
+|9: 8 line 8 33 line 33 58 line 58
+|10: 9 line 9 34 line 34 59 line 59
+|11: 10 line 10 35 line 35 60 line 60
+|12: 11 line 11 36 line 36 61 line 61
+|13: 12 line 12 37 line 37 62 line 62
+|14: 13 line 13 38 line 38 63 line 63
+|15: 14 line 14 39 line 39 64 line 64
+|16: 15 line 15 40 line 40 65 line 65
+|17: 16 line 16 41 line 41 66 line 66
+|18: 17 line 17 42 line 42 67 line 67
+|19: 18 line 18 43 line 43 68 line 68
+|20: 19 line 19 44 line 44 69 line 69
+|21: 20 line 20 45 line 45 70 line 70
+|22: 21 line 21 46 line 46 71 line 71
+|23: 22 line 22 47 line 47 72 line 72
+|24: 23 line 23 48 line 48 73 line 73
+|25: 24 line 24 49 line 49 74 line 74
+|26: 25 line 25 50 line 50 75 line 75
+|27: 26 line 26 51 line 51 76 line 76
+|28: 27 line 27 52 line 52 77 line 77