summaryrefslogtreecommitdiff
path: root/test/snapshots
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-07 01:02:25 -0300
committerGabriel Schneider <[email protected]>2026-11-07 01:42:27 -0300
commit6decf23fe8ac1ce6b48dac42a3502900f6e251b7 (patch)
tree5bdad28b45ca43f6494f34057e3211443ec26f50 /test/snapshots
parentf316b46caea6ecf947989114c37af8288b37dbf5 (diff)
downloadpardes-6decf23fe8ac1ce6b48dac42a3502900f6e251b7.tar.gz
pardes-6decf23fe8ac1ce6b48dac42a3502900f6e251b7.zip
follow: `Follow` (SPC c f) is Emacs's follow-mode, one text across a chain of Zerox twins shown in column order as consecutive pages (File.followChain, which syncTwins runs only for a twin group holding a chain): a scroll of any page reflows the others from it, the keyboard's page leaves its inner edges to the cursor, which goes on into the next page rather than scrolling it, the chain's ends scroll it as one pane, `Unfollow` on a follower's tag (or Del) takes a pane out, and the chain is a twin's `follow` flag with each view's `follow_scroll`, so a dump, Restore and replicas carry it; test/behaviour/follow.zig and follow.snap pin it, the reference, guide, changelog and builtins-json say it, and the builtins, leader and ttyhelp goldens list SPC c f
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/snapshots')
-rw-r--r--test/snapshots/builtins.golden8
-rw-r--r--test/snapshots/follow.golden61
-rw-r--r--test/snapshots/follow.snap20
-rw-r--r--test/snapshots/leader.golden7
-rw-r--r--test/snapshots/ttyhelp.golden12
5 files changed, 95 insertions, 13 deletions
diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden
index fd60bc74..7230f9b8 100644
--- a/test/snapshots/builtins.golden
+++ b/test/snapshots/builtins.golden
@@ -14,16 +14,16 @@
|10: 1 pardes builtins under SPC c
|11: 2
|12: 3 SPC c d Delcol
-|13: 4 SPC c j Joincol topbar
-|14: 5 SPC c n Newcol topbar
-|15: 6
+|13: 4 SPC c f Follow
+|14: 5 SPC c j Joincol topbar
+|15: 6 SPC c n Newcol topbar
+|16: 7
== snap docs-group grid=120x67 cursor=7,10
|10: 1 pardes builtins under SPC h
|12: 3 SPC h b Build
|13: 4 SPC h c Changelog topbar
|14: 5 SPC h m Messages
|15: 6 SPC h t Tutor topbar
-|16: 7
== snap tutor-from-index grid=120x67 cursor=7,17
|10: 1 pardes builtins under SPC h Tutor
|16: /tmp/pardes-snap/builtins/cwd/+Tutor Save Term Collapse Del
diff --git a/test/snapshots/follow.golden b/test/snapshots/follow.golden
new file mode 100644
index 00000000..99ef20b9
--- /dev/null
+++ b/test/snapshots/follow.golden
@@ -0,0 +1,61 @@
+== snap three-pages grid=150x30 cursor=7,3
+| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config 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 Save Term Collapse Del /tmp/pardes-snap/follow/cwd/big.txt /tmp/pardes-snap/follow/cwd/big.txt
+| 1 line 1 Follow Save Term Collapse Del Unfollow Save Term Collapse Del Unfollow
+| 2 line 2 28 line 28 54 line 54
+| 3 line 3 29 line 29 55 line 55
+| 4 line 4 30 line 30 56 line 56
+| 5 line 5 31 line 31 57 line 57
+| 6 line 6 32 line 32 58 line 58
+| 7 line 7 33 line 33 59 line 59
+| 8 line 8 34 line 34 60 line 60
+| 9 line 9 35 line 35 61 line 61
+| 10 line 10 36 line 36 62 line 62
+| 11 line 11 37 line 37 63 line 63
+| 12 line 12 38 line 38 64 line 64
+| 13 line 13 39 line 39 65 line 65
+| 14 line 14 40 line 40 66 line 66
+| 15 line 15 41 line 41 67 line 67
+| 16 line 16 42 line 42 68 line 68
+| 17 line 17 43 line 43 69 line 69
+| 18 line 18 44 line 44 70 line 70
+| 19 line 19 45 line 45 71 line 71
+| 20 line 20 46 line 46 72 line 72
+| 21 line 21 47 line 47 73 line 73
+| 22 line 22 48 line 48 74 line 74
+| 23 line 23 49 line 49 75 line 75
+| 24 line 24 50 line 50 76 line 76
+| 25 line 25 51 line 51 77 line 77
+| 26 line 26 52 line 52 78 line 78
+| 27 line 27 53 line 53 79 line 79
+== snap hop grid=150x30 cursor=82,4
+|3: 1 line 1 Save Term Collapse Del Unfollow Save Term Collapse Del Unfollow
+== snap wheel grid=150x30 cursor=82,4
+|3: 2 line 2 Save Term Collapse Del Unfollow Save Term Collapse Del Unfollow
+|4: 3 line 3 29 line 29 55 line 55
+|5: 4 line 4 30 line 30 56 line 56
+|6: 5 line 5 31 line 31 57 line 57
+|7: 6 line 6 32 line 32 58 line 58
+|8: 7 line 7 33 line 33 59 line 59
+|9: 8 line 8 34 line 34 60 line 60
+|10: 9 line 9 35 line 35 61 line 61
+|11: 10 line 10 36 line 36 62 line 62
+|12: 11 line 11 37 line 37 63 line 63
+|13: 12 line 12 38 line 38 64 line 64
+|14: 13 line 13 39 line 39 65 line 65
+|15: 14 line 14 40 line 40 66 line 66
+|16: 15 line 15 41 line 41 67 line 67
+|17: 16 line 16 42 line 42 68 line 68
+|18: 17 line 17 43 line 43 69 line 69
+|19: 18 line 18 44 line 44 70 line 70
+|20: 19 line 19 45 line 45 71 line 71
+|21: 20 line 20 46 line 46 72 line 72
+|22: 21 line 21 47 line 47 73 line 73
+|23: 22 line 22 48 line 48 74 line 74
+|24: 23 line 23 49 line 49 75 line 75
+|25: 24 line 24 50 line 50 76 line 76
+|26: 25 line 25 51 line 51 77 line 77
+|27: 26 line 26 52 line 52 78 line 78
+|28: 27 line 27 53 line 53 79 line 79
+|29: 28 line 28 54 line 54 80 line 80
diff --git a/test/snapshots/follow.snap b/test/snapshots/follow.snap
new file mode 100644
index 00000000..0e5d23a2
--- /dev/null
+++ b/test/snapshots/follow.snap
@@ -0,0 +1,20 @@
+# Follow (SPC c f) twice on a 300-line file: three pages in three columns,
+# each going on the line after the one before ends; Unfollow on the two
+# followers' tags only. Then j past the first page's last row takes the
+# keyboard to the second page without scrolling, and a wheel notch in the
+# last page moves all three.
+lines big.txt 300
+start 30 150 big.txt
+wait 8000 big.txt
+stable 500 15000
+key space c f
+stable 500 8000
+key space c f
+stable 500 8000
+snap three-pages
+text 27j
+stable 500 8000
+snap hop
+wheel down 120 12
+stable 500 8000
+snap wheel
diff --git a/test/snapshots/leader.golden b/test/snapshots/leader.golden
index 932e8a95..1895a833 100644
--- a/test/snapshots/leader.golden
+++ b/test/snapshots/leader.golden
@@ -90,9 +90,10 @@
|6: 1 pardes builtins under SPC c
|7: 2
|8: 3 SPC c d Delcol
-|9: 4 SPC c j Joincol topbar
-|10: 5 SPC c n Newcol topbar
-|11: 6
+|9: 4 SPC c f Follow
+|10: 5 SPC c j Joincol topbar
+|11: 6 SPC c n Newcol topbar
+|12: 7
|34:
|35:
|36:
diff --git a/test/snapshots/ttyhelp.golden b/test/snapshots/ttyhelp.golden
index d0b90887..c3b4d57e 100644
--- a/test/snapshots/ttyhelp.golden
+++ b/test/snapshots/ttyhelp.golden
@@ -34,11 +34,11 @@
|12: 7 SPC R ClipReplace
|13: 8 SPC Y ClipYankMain
|14: 9 SPC c d Delcol
-|15: 10 SPC c j Joincol topbar
-|16: 11 SPC c n Newcol topbar
-|17: 12 SPC d Del
-|18: 13 SPC f c Config topbar
-|19: 14 SPC f f Find topbar
-|20: 15 SPC f g Grep topbar
+|15: 10 SPC c f Follow
+|16: 11 SPC c j Joincol topbar
+|17: 12 SPC c n Newcol topbar
+|18: 13 SPC d Del
+|19: 14 SPC f c Config topbar
+|20: 15 SPC f f Find topbar
== snap leaderworks grid=100x31 cursor=7,6
|3: $