blob: 42148f6c57cbdaf252da7f5ff0d5f4a0fa1952c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# 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
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` (it 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 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: play the next unread paragraph while waiting; ignored during playback.
- Space: pause or resume. Resume gives the current word a fresh interval.
- `-` / `+`: adjust speed; changes apply to the next word interval.
- Esc: leave. An unfinished paragraph remains unread and restarts on the next activation.
The current word stays centered 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
```
| Setting | Default | Meaning |
| --- | ---: | --- |
| `wpm` | `250` | Initial words per minute; values below `min_wpm` start at the lower bound. |
| `wpm_step` | `25` | Change per `-` or `+`. |
| `min_wpm` | `50` | Lowest speed; `-` stops here. |
All three values must be finite positive numbers. Theme changes re-render the active paragraph using the current Markdown display style.
## Development
```sh
mise run check # panto lua _selfcheck.lua
```
|