Skip to content

Screencasts - #78

Merged
daler merged 23 commits into
masterfrom
screencasts-clean
Nov 25, 2026
Merged

daler merged 23 commits into
masterfrom
screencasts-clean

Conversation

@daler

@daler daler commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

This PR is about improving the docs and discoverability of nvim functionality. It's hard to read a giant page of plugins and imagine what it might look like to use them. So this adds screencasts.

This was the result of a lot of back-and-forth with LLMs to come up with a system. I'm pretty happy with where it ended up. You write a series of instructions, and it's handed off to the built docker container to record the execution of those instructions, resulting in an asciinema screencast. Those instructions include setup commands, captions to write to the screen, nvim commands to run, text to expect, and text to type one character at a time.

Within the screencast, captions and keys pressed are shown directly onscreen via a custom caption.lua plugin that is injected into the nvim session used by the screencast. This basically lets you annotate what's happening in a configurable way.

One nice touch is that in the instructions you also include "dwell times" (how long to wait after a command, usually after showing a caption). Recording ignores those, but over the course of recording a log is kept of what they should have been, and the asciinema screencast is patched after the fact with the dwell times. This also makes it trivial to modify timings without having to re-record.

Once you have a screencast you're happy with, a new docs plugin lets you add it to the docs with an asciinema player (under a folded <details> so they don't clutter the docs).

The end result is a lot of screencasts demonstrating the functionality that can be modified (and, importantly, maintained) in a scripted manner.

The docs/screencasts/README.md has the details. Point an LLM at that file and ask it to make a screencast to demonstrate plugin xyz -- you can quickly get a prototype to modify.

This PR also includes:

  • some other docs cleanup and style updates
  • improved tab completion config
  • r.nvim and toggleterm play nicer together
  • always enter insert mode when moving to toggleterm (now configured using toggleterm itself)
  • better toggleterm gx and gxx for python -> ipython

@daler
daler merged commit e1d4ba3 into master Nov 25, 2026
2 checks passed
@daler
daler deleted the screencasts-clean branch November 26, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant