Home Download Buy Blog Forum Support

Getting Sublime's outlined regions on word select

Getting Sublime's outlined regions on word select

Postby bradc on Thu Oct 25, 2012 1:49 pm

When you select a word, Sublime outlines all other occurrences of the word in the document (at least with my theme), which I believe are called Regions.

Is there a way to retrieve those Regions?

I can almost replicate this effect using self.view.find_all, but the matching isn't quite the same. I just want to get a RegionSet of everything that Sublime has already marked. self.view.sel() only returns the region for the Word I selected, not the other boxed/outlined regions.

More details and a screenshot at: http://stackoverflow.com/questions/1306 ... s-selected

Thanks in advance.
Brad
bradc
 
Posts: 1
Joined: Fri Oct 19, 2012 1:45 pm

Re: Getting Sublime's outlined regions on word select

Postby adzenith on Thu Oct 25, 2012 10:18 pm

There may be a way, but you'd probably have to guess the region name. Because these regions come from Sublime Text itself, though, they may not be actually be in the region list that plugins can access.
adzenith
 
Posts: 1216
Joined: Mon Oct 19, 2009 9:12 pm

Re: Getting Sublime's outlined regions on word select

Postby robmarton on Sun Feb 16, 2014 10:47 pm

I am also looking for the region key for this. Does anyone know where is there a list of all the region types?

Thanks in advance!
robmarton
 
Posts: 1
Joined: Sun Feb 16, 2014 10:46 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests