Options for letting #chatGPT edit a document:
1) cat + sed (or similar tools)
2) rewrite the whole thing for every edit (so many wa$ted token$)
3) Mouse/keyboard UI automation (sendkeys, selenium, e2e testing frameworks)
I'm working on 1), but there is a huge lack of a good headless editor.