<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="margin: 0px;"><span style="color: rgb(51, 51, 51); line-height: 20.4799995422363px; widows: 1;">As far as I know, you cannot execute any code* in .tm_properties.</span><br><div style="widows: 1;"><br></div><div style="widows: 1;">A quick mockup of the script that would turn a .gitignore into a blob, would look like this: </div><div style="widows: 1;"><br></div><div style="widows: 1;"><font face="Courier New"><span class="Apple-tab-span" style="white-space:pre">    </span>paste -d, -s .gitignore</font></div><div style="widows: 1;"></div><div style="widows: 1;"><br></div><div style="widows: 1;">In theory this could be integrated into some build script to update your .tm_properties, but then TextMate would need to be restarted* to pick up the changes.</div><div style="widows: 1;"><br></div><div style="widows: 1;">I suggest this little gem instead:</div><div style="widows: 1;"><br></div><div style="widows: 1;"><ul style="color: rgb(51, 51, 51); box-sizing: border-box; padding: 0px 0px 0px 2em; margin-top: 0px; margin-bottom: 16px; line-height: 20.4799995422363px;"><li style="box-sizing: border-box;"><font face="Helvetica Neue"><span style="font-size: 12px;">If you hold option (⌥) when using the (new) remove button to prune folder search results then the glob will be extended to exclude the undesired path, so that future searches exclude it by default.</span></font></li></ul></div><div style="widows: 1;"><br></div><div style="widows: 1;"><span style="font-family: helvetica, arial; widows: auto;">Graham P Heath</span></div><div style="widows: 1;"><br></div><div style="widows: 1;">*: IIRC / Correct me if I’m wrong</div></div><div id="bloop_sign_1435265008678926848" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px"><br></div></div> <br><p style="color:#000;">On June 25, 2015 at 3:03:31 PM, Carpii UK (<a href="mailto:carpii.uk@gmail.com">carpii.uk@gmail.com</a>) wrote:</p> <blockquote type="cite" class="clean_bq"><span><div><div></div><div>



<title></title>


<div dir="ltr">Is there any mechanism which would allow textmate to
dynamically read my gitignore, and populate it into a variable
ready for us in tm_properties?
<div><br></div>
<div>It would be pretty cool to be able to say...</div>
<div><br></div>
<div>excludeInBrowser =
"{$excludeInBrowser,$git_ignore,.tm_properties}"<br></div>
<div><br></div>
<div><br></div>
</div>



<br>_______________________________________________
<br>textmate mailing list
<br>textmate@lists.macromates.com
<br>http://lists.macromates.com/listinfo/textmate</div></div></span></blockquote></body></html>