Syncpeople Plugin Scope Never Active


#1

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 H.
http://www.jeremyhuffman.com


#2

I have this same problem.


– Tom M.


#3

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 M. removed_email_address@domain.invalid wrote:

of the snippets or commands ever work, because the scopes are not
begin = '(^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s*
http://www.jeremyhuffman.com


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Jeremy H.
http://www.jeremyhuffman.com


#4

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 H. removed_email_address@domain.invalid wrote:

Their scopes are pretty simple too, here is an example for the
{ include = ‘$self’; } );


Jeremy H.
http://www.jeremyhuffman.com