Anyone know the context of the “drag_select” command run in the mousemap files?
I’m working on a click-drag plugin, and the first thing I need to be able to do is allow for a normal click event to happen if there’s no selection. I can’t fire the ‘drag_select’ command, though.
Tried the following:
import sublime, sublime_plugin
class DragSelectionCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.run_command('drag_select')
self.view.window().run_command('drag_select')
Not working and console has no output. Anyone else with experience? Perhaps the great jps or sublimator?