Closed AgatZan closed 1 week ago
This is a nice idea but defeats the purpose of templating (imho). I thought of it when i started developing this plugin, but decided going against it since it would mean I could simply have a snippets manager with the complete template inside it. I prefer having templates and snippets separated, as they can be involved in different things and have different workflows.
The idea of having variable transformation is interesting, I could look into implementing that.
Closing since I won't implement this
There is a snippet API for inserting templates, which will allow you to add a little more freedom to create skeletons, since it will rely on the specification
Usage example:
$1
,$2
...${TM_FILENAME/[\\.]/_/}
toexample-123_456-TEST.js
Replace the first . with _