Please help me understand…
What is the reason behind a plugins run() method not allowing for the returning of values? Say from within one command you wanted to run another command… but you need to know whether something failed before proceeding. This is what return values are for…
psudo code:
result = sublime.active_window().run_command(‘go_do_this’)
if result successful:
yay
else:
ohcrap do this instead
(note: result is always none)
I’m guessing there is a good reason for this default behavior and that I lack understanding. But if there really isn’t any reason why this shouldn’t be possible with some custom code, could someone please point me in the right direction to accomplish this task?
Thanks