<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 16 Jul 2016, at 17:16, Curt Sellmer wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">Would be nice to specify that new files created in various directories in
</div><div dir="auto">the project each have a given fileType based on their location.
</div></blockquote></div>
<div style="white-space:normal">

<p dir="auto">Did you see this thread: <a href="http://lists.macromates.com/textmate/2016-July/039679.html" style="color:#3983C4">http://lists.macromates.com/textmate/2016-July/039679.html</a></p>

<p dir="auto">Basically to target untitled files you must match <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">attr.untitled</code> but right now the sections in <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">.tm_properties</code> are either file patterns <em>or</em> scope selectors, not both.</p>

<p dir="auto">But as mentioned in that thread, it should be supported.</p>

<p dir="auto">We should probably let <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">[ templates/** ]</code> match untitled files created under <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">templates/</code> (w/o the need for <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">attr.untitled</code>) but in practice I don’t think you want to set <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">fileType</code> for everything in a specific folder, because then even a <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">ReadMe.txt</code> would be matched.</p>
</div>
</div>
</body>
</html>