[TxMt] Re: Changing background colour based on file name

Graham P Heath graham.p.heath at gmail.com
Fri Nov 14 18:08:26 UTC 2014

You could change themes in the editor, this would cause new files to be opened in that theme though.

The .tm_properties file might offer a better solution. See this gist for more info https://gist.github.com/dvessel/1478685. though it seems that as of that doc’s writing the functionality for theme switching wasn’t actually completed. Perhaps you could change fontSize or something else to tip you off?

Graham P Heath

On November 14, 2014 at 11:31:24 AM, Baldwin, Dave (dave.baldwin at intel.com) wrote:
I have the situation where I have files with the same name (and similar content) in different sub folders and it is very easy to edit the incorrect file as the two tabs look the same.  

A few ways to make this more obvious would be to change the background colour (of the edit window) or the colour of the tab (or text in the tab) based on something in the file path. Is there anyway of achieving such a thing?  

I recall you can do something with the window title so this may be one way to help, but using colour would make it easier to see rather than having to read the full path name.  


Intel Corporation (UK) Limited  
Registered No. 1134945 (England)  
Registered Office: Pipers Way, Swindon SN3 1RJ  
VAT No: 860 2173 47  

This e-mail and any attachments may contain confidential material for  
the sole use of the intended recipient(s). Any review or distribution  
by others is strictly prohibited. If you are not the intended  
recipient, please contact the sender and delete all copies.  

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

More information about the textmate mailing list