<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 7, 2016 at 11:24 AM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="auto">While I thought I understood what you meant (previous reply), I seem unable to actually reproduce that (i.e. creating a <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">[ templates/** ]</code> with <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">fileType</code> and <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">tabSize</code> works when creating file via file browser, <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">mate</code>, or ⌥⌘N for then <code style="background-color:rgb(247,247,247);border-radius:3px;margin:0px;padding:0px 0.4em" bgcolor="#F7F7F7">templates</code> is the project folder).</p>
<p dir="auto">Can you reformulate this issue in “steps to reproduce” with expected/actual result?</p></blockquote></div><br><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">OK, I put some time into this and here is what I have found.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">I set up a project directory with two subdirectories called src and templates.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Then I created a .tm_properties file in the project directory that contains:<br>[ src/** ]<br>fileType = 'source.ruby'<br><br>[ templates/** ]<br>fileType = 'text.html.basic'<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br>1. When I select a directory in the file browser and the selected directory is not open (ie. the triangle is pointing to the right) and press ^⌘N the file is created not in the selected directory but as a sibling to the selected directory. Perhaps this is by design? So it does not get the assigned type because it is in a different directory. If I configure a type for the parent directory it correctly gets assigned. Good.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">2. When I select a directory in the file browser and the selected directory is open (triangle points down) and press ^⌘N, the file is created in the selected directory and is assigned the correct type. Perfect.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">3. When I select a directory in the file browser and press ⌥⌘N, (regardless of whether the directory is open or closed) I always get an untitled document with type 'text.plain'. When I subsequently save the file it correctly goes into the directory that was selected. <br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">- Seems inconsistent that the open/close state of the directory affects one operation but not the other.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">- I'm guessing that with ⌥⌘N the file type is not being assigned because the untitled doc does not yet actually<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">exist in the directory. But since TextMate knows where it will be saved, perhaps the logic could modified so that this works?<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">- For now the workaround is to make sure the directory is open in the file browser and use ^⌘N.<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)">Hope this helps.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small;color:rgb(0,0,0)"><br></div></div></div>