I’m trying to write a basic plugin that will create a vertical split and clone the current file to the new pane, or optionally open a specified file in the new pane. Is there a way I can accpet an argument so that a user could write “Split” or “Split: <file_name>” and get this behavior?
When I search “sublime arguments to python plugins” I get some “unofficial documentation page” saying “All commands can receive an arbitrarily long number of keyword arguments that must be valid JSON types.” but I don’t really understand what the bit about JSON types means, or how to set it up such that it receives those arguments.