UI & themes
panto-rsvp
Rapid serial presentation for assistant replies. It presents the latest assistant text one newline-delimited paragraph at a time, omitting fenced code; it does not change ordinary transcript rendering.
RSVP is an optional focus mode, not a comprehension or speed promise.
Install
- Add the rock to a layered
config.toml:[extensions] rocks = ["panto-rsvp"]For a local checkout, use
paths = ["/path/to/panto-rsvp"]instead. Panto's own LuaRocks tree must already provideluv, which ships with panto. - Bind activation to Ctrl+S:
[keys] "ctrl+s" = "/rsvp" - Restart panto. Run
/rsvpor Ctrl+S while idle to open the focus view. Playback does not start on activation; press Ctrl+S again to start the next unread paragraph.
If [extensions] or [keys] already exists, add these entries to the existing tables rather than declaring them twice.
Controls
- Ctrl+S: enter the focus view when idle; once open, start the next unread paragraph. Ignored during playback.
- Space: pause or resume. Resume gives the current word a fresh interval.
-/+: adjust speed; changes apply to the next word interval and are saved toext.statewhen changed.- Esc: leave. An unfinished paragraph remains unread and restarts on the next activation.
The view opens idle, with stationary | markers above and below the focus column; no playback timer runs until the second Ctrl+S. The focus column is floor(viewport width / 2) + 1, fixed for idle and playback.
Word length excludes ASCII and common Unicode punctuation, which stays visible and still counts toward visual offset:
| Letters in the word | Focused character |
|---|---|
| 1 | 1 |
| 2–5 | 2 |
| 6–9 | 3 |
| 10–13 | 4 |
| 14+ | 5 |
Punctuation-only tokens fall back to their first visible character. The buckets follow the Spritz-style rule documented by Stanford; the Spritz patent, Table I, also excludes punctuation when counting word characters. It is an alignment heuristic, not a demonstrated comprehension benefit.
ANSI styling is ignored for counting and retained for display, and combining marks do not add a character. Host display widths account for Unicode glyph widths and clipping, but Unicode punctuation recognition and complex grapheme clusters are approximate, and rendering stays bounded in narrow viewports.
The current word stays above the input, with speed and paragraph progress. Text arriving while a paragraph is playing does not change that paragraph's word snapshot. Progress resets on session replacement and is not persisted.
Settings
Optional settings live in [rsvp]:
[rsvp]
wpm = 250
wpm_step = 25
min_wpm = 50| Setting | Default | Meaning |
|---|---|---|
wpm | 250 | Fallback words per minute. A saved rsvp.wpm value overrides it when finite and positive. |
wpm_step | 25 | Change per - or +. |
min_wpm | 50 | Lowest speed; - stops here. Values below it start at the bound. |
All three values must be finite positive numbers.
Speed is restored and saved through extension state, never by touching state files directly:
local speed = ext.state.get("rsvp.wpm") -- nil, or a saved number
ext.state.set("rsvp.wpm", speed)A missing or invalid saved value uses the configured wpm, and a restored speed is clamped to min_wpm. Read and write failures show in the focus view without stopping playback or discarding an in-memory speed change. Theme changes re-render the active paragraph in the current Markdown display style.
Development
mise run check # panto lua _selfcheck.lua