diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-29 00:17:45 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 15ddd805905f785f4dde463d4d6b91e1d2c41e26 (patch) | |
| tree | d812a922785101f0b14f672ca47be6fd67b49833 /test | |
| parent | 64b6a0dbdaab4b314ccbce667709d71a8561daf0 (diff) | |
| download | pardes-15ddd805905f785f4dde463d4d6b91e1d2c41e26.tar.gz pardes-15ddd805905f785f4dde463d4d6b91e1d2c41e26.zip | |
A pane's last row of text is no resize handle; the grip is, and the GUI's rule
A press on a pane's last row began a seam drag, so the row could not be
clicked or swept like the rest of the text (rsearch dragged the handle out
of the way first). Now no row of text is a handle: in the GUI a press on
the 2 px rule between two panes drags their seam, and anywhere the grip
does, as acme's button moves a window -- dragged up or down its own column
it moves the pane's top, either pane down to its tag alone (acme's
coldragwin), dragged down inside itself too. The hover hint over a last row
is gone; column edges resize as they did. Scripts that dragged a seam drag
a grip instead and match their goldens; six goldens lost the hint or moved a
cursor to the clicked text, re-recorded by name.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/snapshots/builtins.golden | 1 | ||||
| -rw-r--r-- | test/snapshots/lookrange.golden | 1 | ||||
| -rw-r--r-- | test/snapshots/lsprelpath.golden | 1 | ||||
| -rw-r--r-- | test/snapshots/rsearch.golden | 17 | ||||
| -rw-r--r-- | test/snapshots/rsearch.snap | 9 | ||||
| -rw-r--r-- | test/snapshots/shrinktag.snap | 37 | ||||
| -rw-r--r-- | test/snapshots/splitparent.snap | 9 | ||||
| -rw-r--r-- | test/snapshots/tagbottom.golden | 4 | ||||
| -rw-r--r-- | test/snapshots/tagbottom.snap | 18 | ||||
| -rw-r--r-- | test/snapshots/windowops.golden | 3 | ||||
| -rw-r--r-- | test/snapshots/windowops.snap | 13 |
11 files changed, 51 insertions, 62 deletions
diff --git a/test/snapshots/builtins.golden b/test/snapshots/builtins.golden index 00f53a1b..f40d563e 100644 --- a/test/snapshots/builtins.golden +++ b/test/snapshots/builtins.golden @@ -27,7 +27,6 @@ |16: == snap tutor-from-index grid=120x67 cursor=7,16 |10: 1 pardes builtins under SPC h Tutor -|14: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ |15: /Tutor Save Tty Collapse Del |16: 1 |17: 2 PARDES TUTOR diff --git a/test/snapshots/lookrange.golden b/test/snapshots/lookrange.golden index 7d802b0b..f070a953 100644 --- a/test/snapshots/lookrange.golden +++ b/test/snapshots/lookrange.golden @@ -62,7 +62,6 @@ |12: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #616f64,#0d1410,b 7-9 #f5f7ee,#3c614a, 10-10 #e5eee5,#0d1410, 11-149 d,#0d1410, |14: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-18 #e5eee5,#0d1410, 19-149 d,#0d1410, == snap stale grid=150x31 cursor=10,16 -|6: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ == style stale grid=150x31 |10: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-15 #e5eee5,#0d1410, 16-149 d,#0d1410, |11: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-10 #e5eee5,#0d1410, 11-149 d,#0d1410, diff --git a/test/snapshots/lsprelpath.golden b/test/snapshots/lsprelpath.golden index c8121b5a..4cc687ab 100644 --- a/test/snapshots/lsprelpath.golden +++ b/test/snapshots/lsprelpath.golden @@ -117,4 +117,3 @@ |33: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-99 d,#0d1410, |34: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-99 d,#0d1410, == snap clicked grid=100x35 cursor=16,16 -|12: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ diff --git a/test/snapshots/rsearch.golden b/test/snapshots/rsearch.golden index efbd81c9..89c4f7bd 100644 --- a/test/snapshots/rsearch.golden +++ b/test/snapshots/rsearch.golden @@ -18,13 +18,11 @@ |15: 4 count_x again |16: 5 == snap select grid=210x31 cursor=14,10 -|10: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ |16: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig |17: 1 code.txt:4:1-8 |18: 2 pick two words |19: 3 == snap path-open grid=210x31 cursor=16,22 -|10: 4 pick two words |19: /tmp/pardes-snap/rsearch/cwd/sub/dep.txt Save Tty Collapse Del |20: 1 d1 |21: 2 d2 @@ -36,13 +34,8 @@ == snap step2 grid=210x31 cursor=13,9 == snap step3 grid=210x31 cursor=13,9 == snap selclick grid=210x31 cursor=14,10 -|11: -|12: -|13: -|14: -|15: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig -== snap outside grid=210x31 cursor=14,10 -|10: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig -|11: 1 code.txt:4:10-14 -|12: 2 pick two words -|13: 3 +== snap outside grid=210x31 cursor=20,10 +|25: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig +|26: 1 code.txt:4:10-14 +|27: 2 pick two words +|28: 3 diff --git a/test/snapshots/rsearch.snap b/test/snapshots/rsearch.snap index 0ce257bd..8c81db1d 100644 --- a/test/snapshots/rsearch.snap +++ b/test/snapshots/rsearch.snap @@ -74,13 +74,8 @@ press right 10 10 release right 10 10 stable 700 15000 snap step3 -# acme sized code.txt to its four lines, so line 4 is on its last row, and a -# pane's last row is its resize handle: a press there would drag the seam, not -# sweep text. Drag that handle down four rows first. -press left 40 11 -drag left 40 15 -release left 40 15 -stable 700 15000 +# acme sized code.txt to its four lines, so line 4 is on its last row: a +# pane's last row is text like any other, never a resize handle. # A LEFT sweep over `pick two` (line 4, cols 8..15) and then a right CLICK # INSIDE it: the click takes the whole selection — the search is for the # two-word span (`4:1-8`), which the file-ish word expansion could never diff --git a/test/snapshots/shrinktag.snap b/test/snapshots/shrinktag.snap index f17c402f..31edad14 100644 --- a/test/snapshots/shrinktag.snap +++ b/test/snapshots/shrinktag.snap @@ -1,6 +1,8 @@ -# a pane can shrink to just its tagline: border-drag the handle to the tag row -# (0 body rows), the gutter box still grabs a move, and dragging back down -# restores the body intact (the hidden pane's pty/vt is never resized) +# a pane can shrink to just its tagline: the pane below dragged by its grip up +# to the tag row (0 body rows) -- a terminal has no rule between panes, so +# the grip is the handle, as acme's button is -- the gutter box still grabs a +# move, and dragging back down restores the body intact (the hidden pane's +# pty/vt is never resized) file w.txt x start 31 100 -n 3 wait 8000 w.txt @@ -16,16 +18,15 @@ key esc settle 100 stable 400 5000 snap before -# drag pane 0's bottom handle (its last row) up to its tag row: tag-only pane -press left 20 17 -drag left 20 3 -release left 20 3 +# drag the lower pane's grip up under pane 0's tag row: tag-only pane +press left 1 18 +drag left 1 3 +release left 1 3 motion 40 25 stable 500 8000 snap shrunk -# the shrunk pane's single row is now the pair's resize handle, but the gutter -# box must still win: grab it, preview a move into the right column, abort by -# releasing over the pane itself +# the shrunk pane's gutter box grabs a move: preview one into the right +# column, abort by releasing over the pane itself press left 1 3 drag left 70 9 stable 400 5000 @@ -33,17 +34,17 @@ snap move-preview drag left 20 3 release left 20 3 stable 400 5000 -# re-enlarge: the tag row doubles as the drag handle, pull it back down -press left 20 3 -drag left 20 17 -release left 20 17 +# re-enlarge: the lower pane's grip, now under pane 0's tag, pulled back down +press left 1 4 +drag left 1 18 +release left 1 18 motion 40 25 stable 500 8000 snap restored -# the bottom pane can shrink to ITS tag too: drag past the bottom, clamp holds -press left 20 17 -drag left 20 31 -release left 20 31 +# the bottom pane can shrink to ITS tag too: its grip dragged past the bottom +press left 1 18 +drag left 1 31 +release left 1 31 motion 40 25 stable 500 8000 snap bottom-shrunk diff --git a/test/snapshots/splitparent.snap b/test/snapshots/splitparent.snap index 3ec42b14..b9038af2 100644 --- a/test/snapshots/splitparent.snap +++ b/test/snapshots/splitparent.snap @@ -5,10 +5,11 @@ config Placement pardes start 31 100 -n 3 stable 700 20000 -# shrink pane 0 (top-left) to just its tagline -press left 20 17 -drag left 20 3 -release left 20 3 +# shrink pane 0 (top-left) to just its tagline: the pane below's grip dragged +# up under it (a terminal has no rule between panes; the grip is the handle) +press left 1 18 +drag left 1 3 +release left 1 3 motion 40 25 stable 500 8000 snap shrunk diff --git a/test/snapshots/tagbottom.golden b/test/snapshots/tagbottom.golden index a86bb8fb..d5f1f720 100644 --- a/test/snapshots/tagbottom.golden +++ b/test/snapshots/tagbottom.golden @@ -131,8 +131,8 @@ |27: |30: /tmp/pardes-snap/tagbottom/cwd/bottom.txt Save Tty Collapse Del == snap body-cursor grid=100x31 cursor=9,6 -== snap seam-noop grid=100x31 cursor=9,6 -== snap seam-dragged grid=100x31 cursor=9,6 +== snap seam-noop grid=100x31 cursor=12,16 +== snap seam-dragged grid=100x31 cursor=12,12 |11: /tmp/pardes-snap/tagbottom/cwd/top.txt Save Tty Collapse Del bottom.txt |12: 1 ZZONE |13: 2 ZZTWO diff --git a/test/snapshots/tagbottom.snap b/test/snapshots/tagbottom.snap index a70ace1f..68b79fc7 100644 --- a/test/snapshots/tagbottom.snap +++ b/test/snapshots/tagbottom.snap @@ -67,19 +67,21 @@ press left 10 7 release left 10 7 stable 400 8000 snap body-cursor -# The h-resize seam. With top taglines it is the upper pane's LAST row; here -# that row is the upper pane's TAG, so the handle is the lower pane's FIRST row -# (grid 16, click row 17). A no-drag click on it must leave both sizes alone. +# No row of text is a resize handle: a click on the lower pane's FIRST row +# (grid 16, click row 17), where the seam used to be, is a click in its text, +# and both sizes stay. press left 40 17 release left 40 17 motion 40 25 stable 500 8000 snap seam-noop -# ...and the real drag, four rows up: the upper pane keeps 10 rows, the lower -# grows to 19. Both taglines follow their own pane's bottom. -press left 40 17 -drag left 40 13 -release left 40 13 +# A terminal has no rule between panes, so the grip resizes them, as acme's +# button moves a window: the lower pane's, on its tag at the bottom, dragged up +# to row 13. The upper pane keeps 10 rows, the lower grows to 19. Both +# taglines follow their own pane's bottom. +press left 1 31 +drag left 1 13 +release left 1 13 motion 40 25 stable 500 8000 snap seam-dragged diff --git a/test/snapshots/windowops.golden b/test/snapshots/windowops.golden index 965486d3..38450ac2 100644 --- a/test/snapshots/windowops.golden +++ b/test/snapshots/windowops.golden @@ -112,7 +112,7 @@ |9: |10: |11: -|12: ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ +|12: |13: /tmp/pardes-snap/windowops/cwd Tty+ba |14: sh Save Mode Filter Collapse Del |15: ls @@ -132,7 +132,6 @@ |29: |30: == snap move-preview grid=100x31 cursor=4,17 -|12: == snap moved grid=100x31 cursor=4,17 == snap altn grid=100x31 cursor=4,22 |18: /tmp/pardes-snap/windowops/cwd Tty+ba diff --git a/test/snapshots/windowops.snap b/test/snapshots/windowops.snap index 32d8c83b..8166f663 100644 --- a/test/snapshots/windowops.snap +++ b/test/snapshots/windowops.snap @@ -1,4 +1,4 @@ -# hover resize hints, border drags, move drag, Alt-n, Ctrl-w focus (routed through the Right builtin), Debug box +# hover resize hints, border drags, grip resize, move drag, Alt-n, Ctrl-w focus (routed through the Right builtin), Debug box file w.txt x start 31 100 -n 3 wait 8000 w.txt @@ -7,7 +7,7 @@ stable 700 20000 motion 50 10 stable 400 5000 snap hover-v -# hover over the top-left pane's last row: horizontal dash hint +# hover over the top-left pane's last row: no hint, a row of text is no handle motion 20 16 stable 400 5000 snap hover-h @@ -19,10 +19,11 @@ snap border-drag release left 40 11 stable 500 8000 snap border-done -# drag the horizontal border up 4 rows (pane 0's new last row) -press left 20 17 -drag left 20 13 -release left 20 13 +# resize the left pair by the lower pane's grip, 4 rows up (a terminal has no +# rule between panes; pane 0's last row is now 13) +press left 1 18 +drag left 1 14 +release left 1 14 stable 500 8000 snap hborder-done # move pane 1 (its gutter box) into the right column |
