Sublime Forum

What is the scope of highlighted regions of search results (`ctrl+f`)

#1

For example, when you search with ctrl+f, the hightlighted regions can be styled with the following settings:

  • hightlight
  • hightlightForeground
  • findHighlight
  • findHighlightForeground

What is the scope of those regions?

What am I trying do?

In vintageous regions are added for searches:


        self.view.add_regions(
            'vi_search',
            regs,
            'highlight.vi',
            '',
            sublime.DRAW_NO_FILL
        )

In the above case the scope highlight.vi is applied to those regions.

I’d like the scope to be the same as the ctrl+f search result regions.

0 Likes