summaryrefslogtreecommitdiff
path: root/test/snapshots/msg.golden
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-22 02:21:03 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:14 -0300
commit43b9d696f9e25ad7589527b91a74666e71ff0472 (patch)
tree52ed8573c53a7a6f6ca956b4f473035126a15354 /test/snapshots/msg.golden
parent760448928186382da4ef9d942af1a2b7546ef54c (diff)
downloadpardes-43b9d696f9e25ad7589527b91a74666e71ff0472.tar.gz
pardes-43b9d696f9e25ad7589527b91a74666e71ff0472.zip
Notices become tagline bands at the top of the body
A message, a leader chord and a prompt used to share one row of body text at the bottom of a pane, wearing the tagline font and nothing else about a tagline. Now each one is a TagLayer of its own, emitted through the same renderHeaderLayer the pane and column tags go through, so it gets the tagline height, the small-font metrics, the band offset and the border for free -- none of which a body-grid row can have by changing its font role. The text is right aligned. The prompt stays on the canonical grid because it owns a cursor, and a cursor has to sit on a real cell. The body starts BELOW the bands rather than under them, the way tree-sitter context rows already worked. Pane.body_offset is how many rows they took and Pardes.bodyTop(pane, rect) is the one place that answers "where does the body begin" -- replacing fifteen copies of `if (tag_bottom) r.y else r.y + BOX_H` spread across the paint, hit-test, scroll, PDF and image paths, which is what let the bands and the text under them come adrift. Every notice is painted on the grid as well, because the grid is what a terminal client draws and a band it cannot see is a message it never gets; the GUI skips grid cells a tag layer covers, so nothing is drawn twice. Three bugs the bands exposed, fixed here: - a prompt band flush with the right edge put its caret one column past the pane, which the detached wire refuses -- so every frame was dropped for as long as the prompt was open. The band now reserves that column. - a click on a band mapped to Sel row 0, which is the TAG row: clicking chrome expanded a word out of the tagline and ran it as a builtin. - a watched file reloading under the editor changed the core without going through update, so needs_frame was never set and the reload was never drawn. Pardes.invalidate() is the name for that, and the file and theme reloads call it. A session can now drive its own 9P namespace instead of being refused one: ownMountSuffix answers what a path names inside this editors own tree and resolve, readLimit and write serve it from memory rather than making the syscall that never returns. The match is anchored to whole components under the registrys 9p/pardes/<name>, because a bare /pardes/<name> anywhere in a string would claim ~/src/pardes/<name>/README -- and, before write learned the same trick, write the trees bytes over the real file. readFileLimit and writeFile refuse instead, having no core to answer from. A toggle setting SETS when given `on` or `off` and only flips when it is bare, so the report LocationsConfig prints can be fed back as configuration and mean what it says. Snapshots: 97/98, from 0/98. The goldens were several commits stale and 17 scripts had stopped running; `config <line>` is a new script command that appends to the per-script startup config, so a script that clicks body coordinates pins `Verbose off` instead of counting the rows an announcement moves. nested-optout is left failing on purpose: two levels of nesting prepend vaxis F3 codepoints to typed lines, which is a real bug and is written down in docs/divergences.md with a repro. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Diffstat (limited to 'test/snapshots/msg.golden')
-rw-r--r--test/snapshots/msg.golden93
1 files changed, 61 insertions, 32 deletions
diff --git a/test/snapshots/msg.golden b/test/snapshots/msg.golden
index 9da23117..197d01d9 100644
--- a/test/snapshots/msg.golden
+++ b/test/snapshots/msg.golden
@@ -1,7 +1,7 @@
== snap opened grid=70x15 cursor=7,3
|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kil
-|New Tty Find Grep Joincol
-| /tmp/pardes-snap/msg/cwd/a.txt Save Tty Del Collapse
+| New Tty Find Grep Joincol Delcol
+| /tmp/pardes-snap/msg/cwd/a.txt Save Tty Collapse Del
| 1 line 1
| 2 line 2
| 3 line 3
@@ -9,12 +9,20 @@
| 5 line 5
| 6 line 6
| 7
-== snap saved grid=70x15 cursor=7,3
-|14: --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt
-== snap repainted grid=70x17 cursor=7,3
+== snap saved grid=70x15 cursor=7,4
+|3: --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt
+|4: 1 line 1
+|5: 2 line 2
+|6: 3 line 3
+|7: 4 line 4
+|8: 5 line 5
+|9: 6 line 6
+|10: 7
+== snap repainted grid=70x17 cursor=7,4
|Newcol Joincol Find Grep Help Changelog Tutor Dump NextColor Debug Kil
-|New Tty Find Grep Joincol
-| /tmp/pardes-snap/msg/cwd/a.txt Save Tty Del Collapse
+| New Tty Find Grep Joincol Delcol
+| /tmp/pardes-snap/msg/cwd/a.txt Save Tty Collapse Del
+| --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt
| 1 line 1
| 2 line 2
| 3 line 3
@@ -22,35 +30,56 @@
| 5 line 5
| 6 line 6
| 7
-|
-|
-|
-|
-|
-|
-| --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt
== snap keycleared grid=70x17 cursor=7,4
-|16:
-== snap saved-again grid=70x17 cursor=7,4
-|16: --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt
+|3: 1 line 1
+|4: 2 line 2
+|5: 3 line 3
+|6: 4 line 4
+|7: 5 line 5
+|8: 6 line 6
+|9: 7
+|10:
+== snap saved-again grid=70x17 cursor=7,5
+|3: --:--:-- saved /tmp/pardes-snap/msg/cwd/a.txt
+|4: 1 line 1
+|5: 2 line 2
+|6: 3 line 3
+|7: 4 line 4
+|8: 5 line 5
+|9: 6 line 6
+|10: 7
== snap mousecleared grid=70x17 cursor=7,4
-|16:
-== snap reloaded grid=70x17 cursor=7,4
-|3: 1 EXTERNAL
-|4: 2
-|5:
+|3: 1 line 1
+|4: 2 line 2
+|5: 3 line 3
+|6: 4 line 4
+|7: 5 line 5
+|8: 6 line 6
+|9: 7
+|10:
+== snap reloaded grid=70x17 cursor=7,5
+|3: --:--:-- reloaded /tmp/pardes-snap/msg/cwd/a.txt
+|4: 1 EXTERNAL
+|5: 2
|6:
|7:
|8:
|9:
-|16: --:--:-- reloaded /tmp/pardes-snap/msg/cwd/a.txt
-== snap prompt grid=70x17 cursor=7,16
-|16: /EXT
-== snap prompt-wins grid=70x17 cursor=7,16
-|3: 1 AGAIN
+== snap prompt grid=70x17 cursor=69,3
+|3: /EXT
+== snap prompt-wins grid=70x17 cursor=69,4
+|3: --:--:-- reloaded /tmp/pardes-snap/msg/cwd/a.txt
+|4: /EXT
+|5: 1 AGAIN
+|6: 2
== snap esc grid=70x17 cursor=7,4
-|16:
-== snap msgbuiltin grid=70x17 cursor=29,5
-|2: /tmp/pardes-snap/msg/cwd/a.txt * Save Tty Del Collapse
-|5: 3 Msg hand-written report
-|16: hand-written report
+|3: 1 AGAIN
+|4: 2
+|5:
+|6:
+== snap msgbuiltin grid=70x17 cursor=29,6
+|2: /tmp/pardes-snap/msg/cwd/a.txt * Save Tty Collapse Del
+|3: hand-written report
+|4: 1 AGAIN
+|5: 2
+|6: 3 Msg hand-written report