Repository navigation
Screencasts - #78
Merged
Merged
Screencasts#78
Conversation
this is after multiple iterations of running and testing: - lib.sh, recorder.sh: better error handling - preview.sh: simplify - add substantial documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.luaplugin 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.mdhas 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:
gxandgxxfor python -> ipython