Repository navigation
Add a VHS demo, and sync positions before jumping - #1
Merged
Merged
Conversation
demo/demo.tape records annotating a selection and a line, jumping between annotations, editing above them and previewing the export, using a minimal config on a throwaway git repo. A workflow renders it and uploads the GIF. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UziUydFCq3bTmV3VrX2Keo
jump() read line numbers from the store, which only learns about moved annotations on write or buffer leave, so after unsaved edits [a and ]a landed on the old positions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UziUydFCq3bTmV3VrX2Keo
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.
VHS demo
demo/demo.taperecords the main workflow:r.Client.Update(ctx, obj))[a/]a:Annotate previewof what the agent getsIt runs Neovim with
demo/init.lua(plugin from the repo, a temporary annotation store, demo keymaps) on a copy ofdemo/reconcile.goin a throwaway git repo, so sources come out aspkg/controller/reconcile.go:…and real annotations are untouched..github/workflows/demo.ymlrenders the tape onworkflow_dispatchand on PRs touchingdemo/, and uploadsdemo.gifas an artifact.demo/demo.gifand explains how to regenerate it.demo/demo.gif(the README image is broken until then).Fix:
[a/]aafter unsaved editsjump()read line numbers from the store, which only learns about moved annotations on write orBufLeave, so after unsaved edits it jumped to the old positions. It now callsrender.sync()first, likeadd()does. New test: "jump follows unsaved edits".Tests not run here (no Neovim); please run:
nvim --headless -u NONE -c "luafile tests/run.lua"Generated by Claude Code