UI & themes

panto-rsvp

rock 0.1.1-1Source

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

  1. Add the rock to a layered config.toml:
    TOML
    [extensions]
    rocks = ["panto-rsvp"]

    For a local checkout, use paths = ["/path/to/panto-rsvp"] instead. Panto's own LuaRocks tree must already provide luv, which ships with panto.

  2. Bind activation to Ctrl+S:
    TOML
    [keys]
    "ctrl+s" = "/rsvp"
  3. Restart panto. Run /rsvp or 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 to ext.state when 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 wordFocused character
11
2–52
6–93
10–134
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]:

TOML
[rsvp]
wpm = 250
wpm_step = 25
min_wpm = 50
SettingDefaultMeaning
wpm250Fallback words per minute. A saved rsvp.wpm value overrides it when finite and positive.
wpm_step25Change per - or +.
min_wpm50Lowest 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:

LUA
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

SH
mise run check    # panto lua _selfcheck.lua