It’s a super interesting problem space.
It’s a super interesting problem space.
I think that could be the key to making structured editing feel less “clunky”.
I've moved on to another (private) repo, but it should be shareable soon.
I think this could work reasonably well in Vim. You could have a shortcut in normal mode 'av' (add variable) which would let you create a new variable and possibly set its type and the same every other construct in the language (structs, functions...).
The AI could probably even give you better suggestions in this workflow because it would have a better understanding of what you are trying to do.
If you really think about it, a plugin like this would be a more 'strict' snippets engine. After the LLM revolution we kinda forgot about the idea of using snippets to insert text into our files. But maybe its time to bring this idea back?
I'm not a Mathematica user, but isn't their editor also a structural editor? I wonder if anyone has any thoughts about how well that works.