[TxMt] Coloured diff display?

Allan Odgaard throw-away-1 at macromates.com
Wed Jul 25 22:22:03 UTC 2007


On 25. Jul 2007, at 16:43, Brad Miller wrote:

> [...]
> It seems like coming up with some standard extension to use for these
> temporary diff files would be a reasonable way to get consistent  
> behavior...

We do always color “.diff” files as diff. In addition to that, we  
have a first-line match which catches most diff variants.

The problem is when the file has a .txt extension *and* TM has  
recorded an explicit preference for .txt files (like in your case,  
where they are assigned to reStructuredText).

The various commands that produce diff files shouldn’t use .txt as an  
extension for these (as it will fail in the above case), the reason  
is mainly that they just do: ‘svn diff …|mate’ and then it is mate  
which puts .txt on the temporary file resulting from this --  
something I’d rather fix, than change all those commands :)






More information about the textmate mailing list