[TxMt] Re: best example for user-configurable bundle-specific preferences

Allan Odgaard mailinglist at textmate.org
Wed Mar 27 10:49:06 UTC 2013


On 27 Mar 2013, at 11:29, Allan Odgaard wrote:

> E.g. to read the LaTeX bundle’s ‘Viewer’ setting, from shell:
>
>    defaults read "$TM_APP_IDENTIFIER" latexViewer

To offer the same 1.x backward compatibility that I did in the ruby 
example, it should have been:

     defaults read "${TM_APP_IDENTIFIER:-com.macromates.textmate}" 
latexViewer

That said, for the bundles under https://github.com/textmate/ we dropped 
1.x compatibility some time ago.


More information about the textmate mailing list