- Code: Select all
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')
...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.