summaryrefslogtreecommitdiff
path: root/test/snapshots/headersweep.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
committerGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
commit6d8da8721141284cf33bb901168b26135893eb86 (patch)
tree791d63401d4e85fbca1d597a8ce0326e70efd545 /test/snapshots/headersweep.snap
parentefd43a3a2cf03bb741366331158b368abf9ac583 (diff)
parentbf6810a8f9d6cc82050e7d9c0cfb06358301b574 (diff)
downloadpardes-6d8da8721141284cf33bb901168b26135893eb86.tar.gz
pardes-6d8da8721141284cf33bb901168b26135893eb86.zip
Merge latest upstream into the macOS branch for Zig 0.17
Retain the macOS branch history and local Acme selection color while adopting upstream's current core and platform changes. Pin Zig and ZLS to 0.17.0, and fetch the existing zstbi compatibility commit through upstream after its original fork was removed.
Diffstat (limited to 'test/snapshots/headersweep.snap')
-rw-r--r--test/snapshots/headersweep.snap67
1 files changed, 67 insertions, 0 deletions
diff --git a/test/snapshots/headersweep.snap b/test/snapshots/headersweep.snap
new file mode 100644
index 00000000..be070357
--- /dev/null
+++ b/test/snapshots/headersweep.snap
@@ -0,0 +1,67 @@
+# A middle sweep over a column's tag or the workspace's runs what it swept,
+# as it does over a pane's tag: highlighted while the button is held, run
+# when it comes up. Both headers used to run the word under the PRESS, on
+# the press, so a sweep of `echo SWEPT-COL` ran a bare `echo`. A right sweep
+# looks for what it swept the same way, and the other button cancels.
+file hay.txt ZQNEEDLE
+start 21 120 -n 3
+wait 8000 Newcol
+stable 700 20000
+# the column tag: type a command onto it, then sweep the whole command
+press left 50 2
+release left 50 2
+key space
+text echo SW''EPT-COL
+key esc
+settle 100
+press middle @echo 2
+drag middle @echo+8 2
+stable 300 5000
+snapstyle col-sweeping
+drag middle @echo+16 2
+release middle @echo+16 2
+wait 8000 SWEPT-COL
+stable 700 15000
+snap col-swept
+# the workspace tag, the same
+press left 110 1
+release left 110 1
+key space
+text echo SW''EPT-WS
+key esc
+settle 100
+press middle @echo 1
+drag middle @echo+15 1
+release middle @echo+15 1
+wait 8000 SWEPT-WS
+stable 700 15000
+snap ws-swept
+# a right sweep over part of a word looks for the part: `hay.txt` opens,
+# where a click would look for all of `xxhay.txtxx`
+press left 118 1
+release left 118 1
+key space
+text xxhay.txtxx
+key esc
+settle 100
+press right @xxhay.txtxx+2 1
+drag right @xxhay.txtxx+9 1
+release right @xxhay.txtxx+9 1
+wait 8000 ZQNEEDLE
+stable 700 15000
+snap ws-looked
+# the look button tapped during a middle sweep cancels it: nothing runs
+press middle @echo 2
+drag middle @echo+16 2
+press right @echo+16 2
+release right @echo+16 2
+release middle @echo+16 2
+stable 700 15000
+snap cancelled
+# for comparison, a select sweep over the second column's tag selects, in
+# the tag's selection colours, and runs nothing
+press left @Find#2 2
+drag left @Grep#2+4 2
+release left @Grep#2+4 2
+stable 700 15000
+snapstyle selected