I installed the Syncpeople textmate bundle ( http://syncpeople.com/downloads/syncpeople_on_rails_features ) and the commands all work from the menu, but the short-cuts never work for any of the snippets or commands ever work, because the scopes are not being selected properly. If I change the scope to just "source.ruby" it will work fine. But I cannot see why their scope selectors do not work in my file. Their scopes are pretty simple too, here is an example for the controller: { name = ''meta.rails.controller''; comment = ''Uses lookahead to match classes with the Controller suffix; includes ''''source.ruby'''' to avoid infinite recursion''; begin = ''(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)''; end = ''^\1(?=end)\b''; patterns = ( { include = ''source.ruby''; }, { include = ''$self''; } ); } -- Jeremy Huffman http://www.jeremyhuffman.com
I have this same problem. -- -- Tom Mornini On Apr 1, 2006, at 7:12 AM, Jeremy Huffman wrote:> I installed the Syncpeople textmate bundle ( > http://syncpeople.com/downloads/syncpeople_on_rails_features ) and the > commands all work from the menu, but the short-cuts never work for any > of the snippets or commands ever work, because the scopes are not > being selected properly. If I change the scope to just "source.ruby" > it will work fine. But I cannot see why their scope selectors do not > work in my file. > > Their scopes are pretty simple too, here is an example for the > controller: > > { name = ''meta.rails.controller''; > comment = ''Uses lookahead to match classes with the Controller > suffix; includes ''''source.ruby'''' to avoid infinite recursion''; > begin = ''(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s* > [.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)''; > end = ''^\1(?=end)\b''; > patterns = ( > { include = ''source.ruby''; }, > { include = ''$self''; } ); > } > > > -- > Jeremy Huffman > http://www.jeremyhuffman.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Ok, I had a "duh" moment and realized my lang at the bottom was set to Ruby not Ruby on Rails. This fixed the snippets and so forth that look for source.ruby.rails but still no luck with the meta scopes (controllers, views etc for the goto other file commands) On 4/1/06, Tom Mornini <tmornini@infomania.com> wrote:> I have this same problem. > > -- > -- Tom Mornini > > On Apr 1, 2006, at 7:12 AM, Jeremy Huffman wrote: > > > I installed the Syncpeople textmate bundle ( > > http://syncpeople.com/downloads/syncpeople_on_rails_features ) and the > > commands all work from the menu, but the short-cuts never work for any > > of the snippets or commands ever work, because the scopes are not > > being selected properly. If I change the scope to just "source.ruby" > > it will work fine. But I cannot see why their scope selectors do not > > work in my file. > > > > Their scopes are pretty simple too, here is an example for the > > controller: > > > > { name = ''meta.rails.controller''; > > comment = ''Uses lookahead to match classes with the Controller > > suffix; includes ''''source.ruby'''' to avoid infinite recursion''; > > begin = ''(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s* > > [.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)''; > > end = ''^\1(?=end)\b''; > > patterns = ( > > { include = ''source.ruby''; }, > > { include = ''$self''; } ); > > } > > > > > > -- > > Jeremy Huffman > > http://www.jeremyhuffman.com > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Jeremy Huffman http://www.jeremyhuffman.com
I fixed it, the "go to ... " commands all recognize scopes properly I just needed to re-enter the short-cut commands in the bundle window. They were showing the right command but with a little circle character behind them, not sure what that meant but obviously something like they were disabled for some reason. On 4/1/06, Jeremy Huffman <jeremy@jeremyhuffman.com> wrote:> Ok, I had a "duh" moment and realized my lang at the bottom was set to > Ruby not Ruby on Rails. This fixed the snippets and so forth that look > for source.ruby.rails but still no luck with the meta scopes > (controllers, views etc for the goto other file commands) > > On 4/1/06, Tom Mornini <tmornini@infomania.com> wrote: > > I have this same problem. > > > > -- > > -- Tom Mornini > > > > On Apr 1, 2006, at 7:12 AM, Jeremy Huffman wrote: > > > > > I installed the Syncpeople textmate bundle ( > > > http://syncpeople.com/downloads/syncpeople_on_rails_features ) and the > > > commands all work from the menu, but the short-cuts never work for any > > > of the snippets or commands ever work, because the scopes are not > > > being selected properly. If I change the scope to just "source.ruby" > > > it will work fine. But I cannot see why their scope selectors do not > > > work in my file. > > > > > > Their scopes are pretty simple too, here is an example for the > > > controller: > > > > > > { name = ''meta.rails.controller''; > > > comment = ''Uses lookahead to match classes with the Controller > > > suffix; includes ''''source.ruby'''' to avoid infinite recursion''; > > > begin = ''(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s* > > > [.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)''; > > > end = ''^\1(?=end)\b''; > > > patterns = ( > > > { include = ''source.ruby''; }, > > > { include = ''$self''; } ); > > > } > > > > > > > > > -- > > > Jeremy Huffman > > > http://www.jeremyhuffman.com > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Jeremy Huffman > http://www.jeremyhuffman.com >-- Jeremy Huffman http://www.jeremyhuffman.com