Interactive Edit

Use when a skill needs the user to interactively edit a file in Neovim mid-workflow, then read their changes back. Takes a window name and the file to edit.

LandonSchropp Updated 1 repo stars

File contents

Interactive Edit

Run scripts/interactive-edit.sh --file <file> --name <name>. It opens <file> in Neovim in a new herdr tab, blocks until the tab closes, and prints the user's saved edits to stdout — no separate read needed.

Run it in the background; it blocks until the tab closes. To present generated content for editing, write it to a scratch file first and pass that as <file>.

LandonSchropp/agent-toolkit/tree/main/plugins/ls-interactivity/skills/interactive-edit commit e068f26ccf

Frequently asked questions

npx skillmds@latest add landonschropp/interactive-edit