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

support simpler filename convention? #7

Closed fommil closed 9 years ago

fommil commented 9 years ago

Supporting full regexes is great and all, but having config files with special characters is really stressing out my config-sync scripts :smile:

Can you think of a simpler way of defining the templates? Maybe the filename only gives a suffix (string, not regex) match, unless the name contains the character * (in which case its interpreted as a regex)?

mineo commented 9 years ago

I've made it so a dollar sign is added to the regular expression automatically, since this is what the user wants in 99% of all cases (I think).

The condition of auto-insert-alists elements can only be either a regular expression or a mode symbol, so treating the file names as regular strings is not really an option.

fommil commented 9 years ago

:smile: