summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-28 19:59:47 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:15 -0300
commit1f8de151e382755c1ce597f166ea4552e7f7e8d1 (patch)
tree1ed05b6c528dd9db099a249504fdc3b4083fb72f /test
parent16fe974c7426925f1b7ffc516f149cc1f4ffa390 (diff)
downloadpardes-1f8de151e382755c1ce597f166ea4552e7f7e8d1.tar.gz
pardes-1f8de151e382755c1ce597f166ea4552e7f7e8d1.zip
A look with a blank in its pattern addresses, file:N selects the line, and a miss is said, logged and reads back empty
Round 6: look calc.py:/return a/ was a word search, since a blank ended the address; calc.py:99 past the end focused the file and said nothing; and /look still read back the pane before a miss. A pattern after the colon may now hold blanks; file:N selects the line, newline included, as acme's does; a line past the end opens and focuses nothing; and every miss (no match, a bad address, a line past the end) says so, logs err <serial> look: why, keeps the selection, and leaves look reading back empty. Documented, with file:0/re/ for the first match, since acme evaluates the address from the file's dot. Five goldens change: a look at file:N now selects the line. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/snapshots/look-center.golden6
-rw-r--r--test/snapshots/look-file-1col.golden2
-rw-r--r--test/snapshots/look-file.golden4
-rw-r--r--test/snapshots/lookloaded.golden4
-rw-r--r--test/snapshots/rsearch.golden2
5 files changed, 9 insertions, 9 deletions
diff --git a/test/snapshots/look-center.golden b/test/snapshots/look-center.golden
index 3eaa819b..e5db101e 100644
--- a/test/snapshots/look-center.golden
+++ b/test/snapshots/look-center.golden
@@ -1,4 +1,4 @@
-== snap center-open grid=150x31 cursor=7,12
+== snap center-open grid=150x31 cursor=15,12
|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit
| New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol
| /tmp/pardes-snap/look-center/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/look-center/cwd Tty+bash Save Mode Filter Collapse Del
@@ -19,7 +19,7 @@
| /tmp/pardes-snap/look-center/cwd Tty+bash Save Mode Filter Collapse Del
| ls
| big.txt
-== snap center-dedup grid=150x31 cursor=7,12
+== snap center-dedup grid=150x31 cursor=15,12
|7: 145 line 145
|8: 146 line 146 big.txt:150 big.txt:2
|9: 147 line 147
@@ -30,7 +30,7 @@
|14: 152 line 152
|15: 153 line 153
|16: 154 line 154
-== snap center-clamp grid=150x31 cursor=7,8
+== snap center-clamp grid=150x31 cursor=13,8
|7: 1 line 1
|8: 2 line 2 big.txt:150 big.txt:2
|9: 3 line 3
diff --git a/test/snapshots/look-file-1col.golden b/test/snapshots/look-file-1col.golden
index f70f787b..45f9f20f 100644
--- a/test/snapshots/look-file-1col.golden
+++ b/test/snapshots/look-file-1col.golden
@@ -1,4 +1,4 @@
-== snap file-open-1col grid=100x31 cursor=7,19
+== snap file-open-1col grid=100x31 cursor=14,19
|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit
| New Tty Find Grep Joincol Delcol
| /tmp/pardes-snap/look-file-1col/cwd Tty+bash Save Mode Filter Collapse Del
diff --git a/test/snapshots/look-file.golden b/test/snapshots/look-file.golden
index 19b7899d..f0690264 100644
--- a/test/snapshots/look-file.golden
+++ b/test/snapshots/look-file.golden
@@ -1,4 +1,4 @@
-== snap file-open grid=150x31 cursor=7,12
+== snap file-open grid=150x31 cursor=14,12
|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit
| New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol
| /tmp/pardes-snap/look-file/cwd Tty+bash Save Mode Filter Collapse Del /tmp/pardes-snap/look-file/cwd Tty+bash Save Mode Filter Collapse Del
@@ -32,7 +32,7 @@
|9: 0-0 d,#152019, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-13 #e5eee5,#0d1410, 14-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
|10: 0-0 d,#152019, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-13 #e5eee5,#0d1410, 14-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
|11: 0-0 d,#152019, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-13 #e5eee5,#0d1410, 14-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
-|12: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #616f64,#0d1410,b 7-13 #e5eee5,#0d1410, 14-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
+|12: 0-0 d,#608269, 1-1 d,#0d1410, 2-6 #616f64,#0d1410,b 7-14 #f5f7ee,#3c614a, 15-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
|13: 0-0 d,#152019, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-13 #e5eee5,#0d1410, 14-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
|14: 0-0 d,#152019, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-13 #e5eee5,#0d1410, 14-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
|15: 0-0 d,#152019, 1-1 d,#0d1410, 2-6 #59675c,#0d1410, 7-13 #e5eee5,#0d1410, 14-74 d,#0d1410, 75-75 d,#608269, 76-76 d,#0d1410, 77-149 #e5eee5,#0d1410,
diff --git a/test/snapshots/lookloaded.golden b/test/snapshots/lookloaded.golden
index 8883609a..48dffe49 100644
--- a/test/snapshots/lookloaded.golden
+++ b/test/snapshots/lookloaded.golden
@@ -1,4 +1,4 @@
-== snap file-open grid=100x31 cursor=7,12
+== snap file-open grid=100x31 cursor=14,12
|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Exit
| New Tty Find Grep Joincol Delcol New Tty Find Grep Joincol Delcol
| /tmp/pardes-snap/lookloaded/cwd Tty+bash Save M /tmp/pardes-snap/lookloaded/cwd Tty+bash Save M
@@ -22,7 +22,7 @@
== snap removed grid=100x31 cursor=54,7
|5: rm big.txt; echo GO''NE
|6: /tmp/pardes-snap/lookloaded/cwd/big.txt Save Tt GONE
-== snap look-noFS grid=100x31 cursor=7,12
+== snap look-noFS grid=100x31 cursor=14,12
|7: 5 line 5
|8: 6 line 6 big.txt:10
|9: 7 line 7
diff --git a/test/snapshots/rsearch.golden b/test/snapshots/rsearch.golden
index 8312e1bc..ccf8067b 100644
--- a/test/snapshots/rsearch.golden
+++ b/test/snapshots/rsearch.golden
@@ -18,7 +18,7 @@
|23: /tmp/pardes-snap/rsearch/cwd/+Search Save Tty Collapse Del LocationsConfig
|24: 1 code.txt:4:1-8
|25: 2 pick two words
-== snap path-open grid=210x31 cursor=7,16
+== snap path-open grid=210x31 cursor=16,16
|13: /tmp/pardes-snap/rsearch/cwd/sub/dep.txt Save Tty Collapse Del
|14: 1 d1
|15: 2 d2