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

templates with name XX:*.html not working on Mac OS X #28

Closed bigfish closed 3 years ago

bigfish commented 3 years ago

Hi,

Just struggled to figure out why my template wasn't working, and I found that they do not work if the file buffer part begins directly with a *. This tripped me up as I expected it to work. See terminal screenshot below (I restarted Emacs after renaming the file, and opened a new .html file to test it.)

Screen Shot 2021-06-22 at 10 39 07 AM

I'm on Mac OS X 11.4. GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, Carbon Version 158 AppKit 1671.6) of 2021-03-27

I can workaround by not using * and just having the extension, eg. "00:.html" but I wonder if it should be documented if this is by design, as it might trip up others as well.

bigfish commented 3 years ago

Ugh. nevermind, I was confused between globs and regex... this makes sense for regex, as just indicated repetition, so . indicates any characters.