Skip to content

Commit 7fe8af8

Browse files
committed
Document draft window following and Sidekick draft lifecycle
1 parent 52284e3 commit 7fe8af8

2 files changed

Lines changed: 22 additions & 9 deletions

File tree

‎examples/xmd-profile/README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,10 @@ typing comparison in ReplBench still supplies milliseconds.
182182
[scrolling.md](baselines/scrolling.md) measures entry-reading wheel bursts at sparse,
183183
full, long-history and long-entry sizes, plus spaced notches at the full size.
184184
[scrolling-draft.md](baselines/scrolling-draft.md) measures arrow keys with a still
185-
window, a window moved by warm-up, and a longer draft. The wheel does not move
186-
the draft; caret keys move its reading window.
185+
window, a window moved by warm-up, and a longer draft. Its `draft-wheel` case
186+
measures bursts that move the draft window three rows per notch without moving
187+
the caret. It records
188+
[scrolling-draft-wheel.baseline.md](baselines/scrolling-draft-wheel.baseline.md).
187189

188190
## Profile a REPL session
189191

‎specs/repl-spec.md‎

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,10 @@ Terminal.app's Shift+Return insert a newline; releasing a key inserts nothing.
12571257
Control-C in a focused Message that holds text clears it, as described under
12581258
Message below.
12591259

1260+
The Round editor retains its first visible row when the caret moves within the
1261+
window. A caret move beyond the window scrolls only far enough to reveal it.
1262+
Resizing follows the same rule unless a manually wheeled position is held.
1263+
12601264
While the screen is open it enables bracketed paste. A framed paste inserts one
12611265
text value at the caret, preserving blank lines, indentation, tabs and Unicode.
12621266
CR, LF and CRLF line separators become LF in the value; framing markers never
@@ -1283,10 +1287,14 @@ using the existing recovery rules.
12831287
The wheel scrolls the reading beneath your pointer without moving keyboard
12841288
focus. Each decoded tick requests three displayed rows: up moves toward
12851289
preceding content and down toward following content. Content edges stop movement
1286-
without wrapping or moving another reading. When the focused control is inside
1287-
that reading, the wheel stops before hiding it. Use keyboard navigation to
1290+
without wrapping or moving another reading. Outside the Round editor, when the
1291+
focused control is inside that reading, the wheel stops before hiding it. Use keyboard navigation to
12881292
reveal further controls, or move focus elsewhere to scroll farther with the
1289-
wheel. A reading anchor belongs to its viewport rather than a particular row.
1293+
wheel. The Round editor can scroll past its focused caret without moving it.
1294+
Its manually wheeled position survives repaints and resizing while the draft
1295+
text and caret are unchanged. The next caret move or text change resumes caret
1296+
following from that position. A reading anchor belongs to its viewport rather
1297+
than a particular row.
12901298

12911299
## Every drawer is a window
12921300

@@ -1721,8 +1729,9 @@ conversation and unsent Message remain available.
17211729

17221730
The bar shows `✎ draft`, **Send** and **X**. Send is dim and admits nothing
17231731
while the draft is empty. X discards the draft and returns focus to
1724-
**+ New Round**. A refused submission leaves the text in the editor. When
1725-
Send admits a round, the live work replaces the editor and the bar shows
1732+
**+ New Round**. A refused submission leaves the text in the editor. Admission
1733+
through Send or the Sidekick consumes the submitted draft, closes its editor
1734+
and reveals the admitted entry's work. After Send admits a round, the bar shows
17261735
`● running · user` and offers **Stop** for that exact round while it runs.
17271736
History highlights the draft with `✎` while the editor is open and shows
17281737
the running round with a spinner glyph after admission. Unfiltered Transcript
@@ -4320,8 +4329,10 @@ submission.
43204329

43214330
Filling the shared draft starts nothing, and submitting is a separate request. A
43224331
fill is applied by the loop that owns the draft and the request waits for it, so
4323-
a submission after one reserves the text the fill put there. While a person has
4324-
taken the draft over, a fill refuses and stays refused until they ask the
4332+
a submission after one reserves the text the fill put there. A nonempty
4333+
Sidekick fill opens the Round editor without taking keyboard focus or changing
4334+
the unsent Message. An empty fill does not open a closed editor. While a person
4335+
has taken the draft over, a fill refuses and stays refused until they ask the
43254336
Sidekick for something.
43264337

43274338
A pause request is the root's, as process-local state on the exact reservation it

0 commit comments

Comments
 (0)