Hi there. I find this plugin very useful.
Unfortunately I have a problem with it. When searching for something and clicking on the editable area you're scrolled to the top.
Steps to recreate the situation:
- open a file that doesn't fit in one screen (so you'll be able to scroll)
- search for something that's not in the current viewable area
- try clicking on the visible editable area (of the file)
You'll be scrolled to the top.
So, basically, the search function of the program is f**ked.
I also figured the thing causing this. It seems that the on_activated method is called when changing focus from search to the editor.
So by simply commenting out this method I solved it.
# def on_activated(self, view):
# if view.file_name() != None and view.file_name() != '' and not view.settings().get('is_widget'):
# # restore on preview tabs should be fast as posible
# # overwrite restoration of scroll made by the application
# sublime.set_timeout(lambda: self.restore_scroll(view), 200)