spock
8/4/2017 - 6:07 AM

Example how to pass arguments via run_command.

All args must be pickable, or ValueError is raised.

view.run_command('convert',
                    {
                    "region_a": region.a,
                    "region_b": region.b,
                    "new_text": new_text
                    }
                )


class ConvertCommand(sublime_plugin.TextCommand):
    def run(self, edit, region_a, region_b, new_text):