Home Download Buy Blog Forum Support

Sorting CTRL-R

Re: Sorting CTRL-R

Postby bizoo on Mon Nov 28, 2011 2:14 pm

loremipsum wrote:Yes, that's interesting. I assume I could develop a cross-languages version of my plugin...

Actually, what I mean is that you probably don't need any plugin.
Just set showInSymbolList settings for your file syntax and the ctrl+r will be populated with what you want.
But your tmLanguage must clearly identify what you want with a scope name.

And you couldn't change the order of the items in the list, what the OP asked.

Using syntax scope searching is way more generic than using regexp, take a look at this post (http://www.sublimetext.com/forum/viewtopic.php?p=15061#p15061) for a small example.
bizoo
 
Posts: 879
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Sorting CTRL-R

Postby loremipsum on Mon Nov 28, 2011 2:21 pm

You're right, but I like the fact that I can choose whether the QuickPanel display properties or methods. Can I do such a distinction with the built-in got_to command ?
loremipsum
 
Posts: 19
Joined: Tue Nov 22, 2011 12:10 pm

Re: Sorting CTRL-R

Postby bizoo on Mon Nov 28, 2011 3:31 pm

I didn't notice the parameter of run().
You're right, I don't think there is a way to dynamically change the showInSymbolList settings.

You can still use the self.view.find_by_selector() API method to search the properties or methods, probably more generic if you intend to use your plugin for other language.
bizoo
 
Posts: 879
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Previous

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 23 guests