[TxMt] Re: import git ignore into tm_properties

Graham P Heath graham.p.heath at gmail.com
Thu Jun 25 20:54:20 UTC 2015

As far as I know, you cannot execute any code* in .tm_properties.

A quick mockup of the script that would turn a .gitignore into a blob, would look like this: 

	paste -d, -s .gitignore

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.

I suggest this little gem instead:

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.

Graham P Heath

*: IIRC / Correct me if I’m wrong

On June 25, 2015 at 3:03:31 PM, Carpii UK (carpii.uk at gmail.com) wrote:

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?

It would be pretty cool to be able to say...

excludeInBrowser = "{$excludeInBrowser,$git_ignore,.tm_properties}"

textmate mailing list  
textmate at lists.macromates.com  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20150625/1aba7bbd/attachment.html>

More information about the textmate mailing list