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:


Graham P Heath

*: IIRC / Correct me if I’m wrong


On June 25, 2015 at 3:03:31 PM, Carpii UK (carpii.uk@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@lists.macromates.com
http://lists.macromates.com/listinfo/textmate