Sublime Forum

Getting Sublime's outlined regions on word select

#1

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: stackoverflow.com/questions/1306 … s-selected

Thanks in advance.
Brad

0 Likes

#2

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.

0 Likes

#3

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!

0 Likes