[TxMt] Re: does .tm_properties actually work?
Matt Neuburg
matt at tidbits.com
Mon Dec 16 19:38:11 UTC 2013
Very helpful, thank you! - A significant issue here is that there is no definitive current documentation about this, and the Internet is now filled with false information giving the very clear impression that what I tried should have worked. m.
On Dec 13, 2013, at 8:47 PM, Allan Odgaard <mailinglist at textmate.org> wrote:
> On 14 Dec 2013, at 1:53, Matt Neuburg wrote:
>
>> […] as a test I created this: […]
>>
>> I figured if I open an asciidoc file I should be able to tell if it's suddenly Georgia 18. I don't actually *want* that setting, I just want to see that .tm_properties is functioning! But it isn't. I've put this file in my home folder, in the project containing folder, all over the place. But nothing is changing. m.
>
> A current limitation is that the settings: theme, fontName, fontSize, and showInvisibles can only be set globally (that is, in ~/.tm_properties and not targeting a path/scope). We do however recommend all four things to be set via the UI (not ~/.tm_properties).
>
> Additionally, when you change certain settings via the UI (like tab size) they are stored for the current file scope (e.g. text.asciidoc) in ~/Library/Application Support/TextMate/Global.tmProperties and when settings are collected, scoped settings rank higher than more local file name settings (or more local less specific scoped settings).
>
> What this means is that in your local settings you should use [ text.asciidoc ] instead of [ *.asciidoc ] to ensure that less local (learned) settings for the “text.asciidoc” scope are not eclipsing your extension-based settings (and it then also works for untitled files).
>
> I have been meaning to look into how scoped and globbed settings are ranked so that a local extension match would trump a less local scope match, since this is what most users expect / are not aware of the learned scoped settings.
>
--
matt neuburg, phd = matt at tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
More information about the textmate
mailing list