What would be the recommended way of highlighting parts of a view as the selection changes? I’ve been fiddling with updating the WordHighlight plugin, and have the moral equivalent of the following:
[code]import sublime_plugin
class HighlightCommand(sublime_plugin.TextCommand):
def run(self, edit):
pass
class TestListener(sublime_plugin.EventListener):
def on_selection_modified(self, view):
view.run_command(‘highlight’)
[/code]
…however, this seems to throw a wrench into undo grouping somehow, in that while this plugin is active each character inserted becomes its own undo entry.