vim wrote:btw, do you remember the sticky search feature? i guess that with the new API for findAll i can partially implement it, but i was hoping to be able to mark text with other colors.
import sublime, sublimeplugin
def run(self, view, args):
selection = view.sel()
if selection.begin() - selection.end() != 0:
pattern = "\<" + view.substr(selection) + "\>"
pattern = "\<" + view.substr(view.word(selection)) + "\>"
# mark new region
region_list = view.findAll(pattern)
# reset selection
view_selection = view.sel()
# add new selection
for region in region_list:
sublimator wrote:Jon, assuming that somehow we had a reference to the find panel View, would just altering the its contents suffice to set the GUI find search string?
Users browsing this forum: Exabot [Bot], Google [Bot] and 7 guests