changing filetype/language association was: Re: [TxMt] best practice for changing markdown back as default for .txt?

Tom Lazar tom at tomster.org
Sat May 7 20:17:24 UTC 2005


On May 7, 2005, at 8:08 PM, Allan Odgaard wrote:

> Currently it uses only the last extension of the filename.

ah, ok.

> I can probably change it to a prefix match.

that woud be great! (at least for all the Zope developers among the  
TM users...)

> Don't know if just using “dtml” would suffice for your purpose?

come to think of it: for this particular project: yes... (in fact,  
that's what i'll do for now...) but otherwise: no...

> Btw: OakLanguageFileBindings is an array, so you'd need either to  
> list all your associations: '( { name = ...; }, { name = ...} )' or  
> use the “-array-add” option to defaults.

yeah, I realized that, when my CSS binding 'kicked out' my previous  
markdown binding... but thanks for mentioning the -array-add option -  
I didn't know about that one.

> E.g.: defaults write com.macromates.textmate  
> OakLanguageFileBindings -array-add '{name = "CSS"; fileTypes =  
> (dtml); language = "4675F24E-6227-11D9-BFB1-000D93589AF6";}'

sometimes I feel guilty for stealing so much of your coding time ;-)

thanks again,

tom


Tom Lazar
http://tomster.org





More information about the textmate mailing list