mineo / yatemplate

File templates for Emacs with YASnippet
https://github.com/mineo/yatemplate
GNU General Public License v3.0
70 stars 11 forks source link

Integrate better with YASnippet #32

Open piknik opened 1 year ago

piknik commented 1 year ago

I found the file-based regexp to be too limiting. In my case I needed to specify specific paths but forward-slash characters cannot be used in filenames.

So rather than come up with a new system, we'll just use yasnippet itself to specify the regexp. As a bonus, we can have regexps be auto-generated. For usage see documentation additions.

Added code to scan yasnippet tables and use snippets from that system. yatemplate will auto-reload along with yasnippet. Documentation is modified and added to reflect new change. Previous file-based mechanism unchanged for backwards compatibility.