# Syncpeople Plugin Scope Never Active

**URL:** <https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603>\
**Category:** Rails\
**Created:** [April 1, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603 "2006-04-01T17:14:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [April 1, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603/1 "2006-04-01T17:14:31Z")

</div>

I installed the Syncpeople textmate bundle (  
[http://syncpeople.com/downloads/syncpeople\_on\_rails\_features](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.

> **[Jeremy Huffman, the Website - jeremyhuffman.com](https://jeremyhuffman.com/)**
>
> Jeremy Huffman, the Website
>         
>       
>     
>     
> Getting in Touch
> 
> You can email me if you can guess the addres...

---

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [April 1, 2006, 9:25pm UTC](https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603/2 "2006-04-01T21:25:54Z")

</div>

I have this same problem.

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [April 2, 2006, 1:37am UTC](https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603/3 "2006-04-02T01:37:14Z")

</div>

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](mailto: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](http://www.jeremyhuffman.com)
> > 
> > * * *
> > 
> > Rails mailing list  
> > removed\_email\_address@domain.invalid  
> > [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–  
Jeremy H.

> **[Jeremy Huffman, the Website - jeremyhuffman.com](https://jeremyhuffman.com/)**
>
> Jeremy Huffman, the Website
>         
>       
>     
>     
> Getting in Touch
> 
> You can email me if you can guess the addres...

---

<div class="post-metadata">

**Author:** ![jeremyheiler](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@jeremyheiler](https://www.ruby-forum.com/u/jeremyheiler)\
**Post date:** [April 2, 2006, 3:51am UTC](https://www.ruby-forum.com/t/syncpeople-plugin-scope-never-active/56603/4 "2006-04-02T03:51:30Z")

</div>

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](mailto:removed_email_address@domain.invalid) wrote:

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

–  
Jeremy H.

> **[Jeremy Huffman, the Website - jeremyhuffman.com](https://jeremyhuffman.com/)**
>
> Jeremy Huffman, the Website
>         
>       
>     
>     
> Getting in Touch
> 
> You can email me if you can guess the addres...
