Hi
The instructions at http://blog.macromates.com/2007/file-type-detection-rspec-rails/ obviously don't apply to TM2 as written, but does anybody have an equivalent?
I'm getting all .rb files coming up as either RSpec or Ruby on Rails, regardless of whether the filename ends in _spec.rb, and it's making things a bit awkward, to say the least. (It probably worked fine out of the box and I've done something to break it, but I can't see how to get back without nuking TM2 and all its prefs…)
Thanks
BTW, should Select > Current Scope select an entire "describe ... end" block in RSpec? It either selects one word or the whole file when I try it.
On 05/01/2012, at 22.33, John Yeates wrote:
The instructions at http://blog.macromates.com/2007/file-type-detection-rspec-rails/ obviously don't apply to TM2 as written, but does anybody have an equivalent?
To read TM2’s stored file type associations do:
defaults read com.macromates.Avian FileTypeBindings
And to clear them:
defaults delete com.macromates.Avian FileTypeBindings
Other than that, the instructions I think should hold.
BTW, should Select > Current Scope select an entire "describe ... end" block in RSpec? It either selects one word or the whole file when I try it.
Current scope is defined by the grammar — if it doesn’t setup a scope for a “describe … end”-block, then TM will not select it when using the action.
On Thu, Jan 5, 2012 at 4:17 PM, Allan Odgaard mailinglist@textmate.org wrote:
To read TM2’s stored file type associations do:
defaults read com.macromates.Avian FileTypeBindings
$ defaults read com.macromates.Avian FileTypeBindings 2012-01-05 16:18:53.293 defaults[47392:707] The domain/default pair of (com.macromates.Avian, FileTypeBindings) does not exist
$ defaults read com.macromates.Avian 2012-01-05 16:21:15.035 defaults[47584:707] Domain com.macromates.Avian does not exist
I've seen mention of Avian elsewhere. E.g., someone (blog post, tweet, I can't recall) referred to...
$ ls -l ~/Library/Application\ Support/Avian ls: /Users/dboyd/Library/Application Support/Avian: No such file or directory
(there's no /Library/Application Support/Avian either)
Am I missing something?
On 06/01/2012, at 07.23, Darren Boyd wrote:
To read TM2’s stored file type associations do:
defaults read com.macromates.Avian FileTypeBindings
$ defaults read com.macromates.Avian FileTypeBindings 2012-01-05 16:18:53.293 defaults[47392:707] The domain/default pair of (com.macromates.Avian, FileTypeBindings) does not exist
Sorry, the domain should be com.macromates.TextMate.preview
On Friday January 06 2012, Allan Odgaard mailinglist@textmate.org wrote:
To read TM2’s stored file type associations do:
defaults read com.macromates.Avian FileTypeBindings
$ defaults read com.macromates.Avian FileTypeBindings 2012-01-05 16:18:53.293 defaults[47392:707] The domain/default pair of (com.macromates.Avian, FileTypeBindings) does not exist
Sorry, the domain should be com.macromates.TextMate.preview
Thanks — sanity has been restored!