Hi, I have an idea for a plugin and I’m trying to figure out if it’s possible to add new snippets programatically. I did find new_snippet
as command in the sublime unofficial documentation but I have no clue on how to use this.
The idea for the plugin is to write snippets inside source files as comments. When you open a file, the plugin read the included source files and adds the relevant snippets to the user’s snippet list. This is why I want to programatically add a snippet from a string. How to do this?