I made something similar for emacs and it unlocks what I think of as “semantic macros” — being able to interface with GPT-3 makes actions that are a tiny complexity level above what I usually use kbd macros for (like smart capitalization) easily possible to automate!
Screenshot - https://twitter.com/samarthrawal/status/1591527892386734081
Code - https://github.com/samrawal/gpt-emacs-macro