<div dir="ltr">I use this so I have the full project path in the title bar:<div><br></div><div><div>windowTitleFile    = '${TM_DIRECTORY:+${TM_DIRECTORY/\/path\/to\/project\///}}/$TM_DISPLAYNAME '</div><div>windowTitle        = '$windowTitleFile$windowTitleSCM'</div></div><div><br></div><div>I'd love it if I could make the path/to/project use the $TM_PROJECT_DIRECTORY though…</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 1 Nov 2016 at 20:16 Igor Kozlov <<a href="mailto:me@igorkozlov.me">me@igorkozlov.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg">
<blockquote type="cite" class="gmail_msg">
<div class="gmail_msg">That would require the tabs to track and compare filenames, which I imagine can be expensive. And also, what if the parent directory also matches with the parent of a different file? With an option like windowTitle (I suggest tabTitle), TextMate doesn't have to make a best guess.</div>
</blockquote>
<div class="gmail_msg"><br class="gmail_msg"></div>
</div><div class="gmail_msg"><div class="gmail_msg">Getting the name of the directory the moment tab opens and keeping it in the memory is not expensive at all.</div>
<div class="gmail_msg">Then it's just comparing strings and deciding whether to show the directory name or not.</div>
<div class="gmail_msg">Since TM renders usually around 10 tabs max it should not affect performance.</div>
<div class="gmail_msg"><br class="gmail_msg"></div>
<div class="gmail_msg">I don't like the tabTitle option, because the majority of files are still pretty unique and don't need any additional detailing.</div>
</div>
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
textmate mailing list<br class="gmail_msg">
<a href="mailto:textmate@lists.macromates.com" class="gmail_msg" target="_blank">textmate@lists.macromates.com</a><br class="gmail_msg">
<a href="http://lists.macromates.com/listinfo/textmate" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.macromates.com/listinfo/textmate</a></blockquote></div>