[TxMt] Re: Filetype detection in v2

Graham P Heath graham.p.heath at gmail.com
Thu May 7 21:58:43 UTC 2015

I’ve not done this, but I know the pain.

You say specifically that you want a first line rule, but perhaps setting something like this in your .tm_properties file(s) would suffice?

     [ *.rb~*_spec.rb ]
    fileType = source.ruby.rails

From: http://lists.macromates.com/textmate/2014-October/037983.html

There’s also this document https://gist.github.com/dvessel/1478685 about .tm_properties which might help you understand.

I hope thats helpful!

Graham P Heath

On May 7, 2015 at 4:22:34 PM, Tom Smyth (tom at sassafras.coop) wrote:

This document doesn't quite seem right anymore:


I checked my manual bindings and ruby is not in there, yet my RSpec first line match isn't working.

Does anyone know how to fix this for version 2?


Tom Smyth

Worker-Owner, Sassafras Tech Collective
Specializing in innovative, usable tech for social change 
sassafras.coop · @sassafrastech

Resident, Touchstone Cohousing

textmate mailing list  
textmate at lists.macromates.com  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20150507/aa583f35/attachment.html>

More information about the textmate mailing list