Okay, pretty sure it was working but perhaps each time I was editing and tested my .tm_properties it picked up the last one in the list as the new one and so I thought it was working when it probably wasn't.
FWIW:
[ templates/** ] fileType = 'text.html.mustache'
Only picks up for new files in subfolders. I have to do:
[ "templates{/**,}" ] fileType = 'text.html.mustache'
To make it work as desired. But yes, having the :attr.untitled syntax would be perfect for what I'm trying to achieve.
On Wed, 13 Jul 2016 at 12:45 Allan Odgaard mailinglist@textmate.org wrote:
On 13 Jul 2016, at 9:47, George McGinley Smith wrote:
[…] I have the following:
[ "templates/{**/,}*" attr.untitled ] fileType = 'text.html.mustache'
This syntax should never have worked.
You need to either put a .tm_properties in each subfolder (templates, js, scss, and css) which has:
[ attr.untitled ] fileType = «file type»
Or if you don’t mind targeting *all* files in each subfolder, you can leave out the attr.untitled, e.g.:
[ templates/** ] fileType = 'text.html.mustache'
That said, it does seem like it would be nice to target both a file pattern and a scope selector, could possibly be done with : as separator, e.g.:
[ templates/**:attr.untitled ] fileType = 'text.html.mustache'
I will consider such extension for a future update.
P.S. The {**,}/* syntax is redundant and ** should match the same (though this might not have been the case in earlier versions of TextMate’s file pattern matcher).
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate