[TxMt] Re: how to set attr.file.unknown-encoding

 Yuan Jiang sleetdrop at gmail.com
Thu Mar 8 15:55:16 UTC 2012


Finally I find out that there should be spaces on either side of = 

It works when I changed it as below, thanks a lot for your help



[ attr.file.unknown-type ]
fileType = text

[ attr.file.unknown-encoding ]
encoding = gbk



Yuan Jiang
http://blog.vetcafe.net
http://twitter.com/sleetdrop

在 2012-3-8,下午9:56, David Howden 写道:

> It works for me (at least for unknown-type) i.e. the "What type of file is x" sheet doesn't appear if I have the property set and files are set to be plain text, removing the property forces the sheet to ask for unknown file types.
> 
> 
> 
> it doesn't work either.
> 
> 
> Yuan Jiang
> http://blog.vetcafe.net
> http://twitter.com/sleetdrop
> 
> 在 2012-3-8,下午6:05, David Howden 写道:
> 
>> Try:
>> 
>> [ attr.file.unknown-type ]
>> fileType=text
>> 
>> [ attr.file.unknown-encoding ]
>> encoding=gbk
>> 
>> 
>> 2012/3/8 Yuan Jiang <sleetdrop at gmail.com>
>> I saw the following in changelog
>> 
>> Introduce attr.file.unknown-type and attr.file.unknown-encoding. You can use this in .tm_properties files to set fileType andencoding to provide default values only for files where TextMate was unable to find the proper type/encoding (which normally results in a dialog asking the user).
>> 
>> 
>> But When I set it in  .tm_properties as below, it doesn't work for me 
>> 
>> attr.file.unknown-type=text
>> attr.file.unknown-encoding=gbk
>> 
>> 
>> 
>> Yuan Jiang
>> http://blog.vetcafe.net
>> http://twitter.com/sleetdrop
>> 
>> 
>> 
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>> 
>> 
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
> 
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20120308/96b8e474/attachment-0001.html>


More information about the textmate mailing list