Is there a way for a plugin to know if the view it's working with is in a panel (e.g. find, replace, goto, etc)?
I'm using a plugin (WordHighlight) that dynamically creates regions in views. It works great, however, it's causing text in panels to have black backgrounds, making it hard to view/edit that text. This plugin effectively shows the problem:
def on_selection_modified(self, view):
view.add_regions('myregionskey', [sublime.Region(0,view.size()/2)], 'comment')
Run that, open the search panel, and type in some search text to see the issue.