Is it possible to use a TextCommand in a build system directly? Of course, I can define a window command
class RunTextCmdCommand(sublime_plugin.WindowCommand):
def run(self, cmd):
view = sublime.active_window().active_view()
view.run_command(cmd)
and use that as the target argument
{
"target": "run_text_cmd",
"selector": "...",
"cmd": "my_text_cmd"
}
That works fine. I was just wondering whether there is an easier solution circumventing the WindowCommand. Thanks!