obsidian-execute-code
obsidian-execute-code copied to clipboard
[FR] cancel command
in cmd i can press ctrl-C to cancel a running command. it'd be great if this plugin supported canceling a running command.
We have this for Notebook Mode runtimes (JS, R, and Python), but we don't support it for other languages. That would be an easily implemented option.
Would something like this be okay, or would you prefer a button that's directly on the code block?

a button on the code block would be ideal IMO. after clicking run, the run button could perhaps change to cancel. small comment: the bin icon is strange to me since it applies deleting, not cancelling. I guess you delete your session, but still feels weird
since the other solution requires more screenspace so less space for notes.
please note that I consider this feature request low priority , I've only had need for it a few times so far.
You should be able to click the running indicator to stop a code block, and this should work for any language that uses the non-interactive executor, not just interactive ones like with notebook mode iirc. E.g.

We have this for Notebook Mode runtimes (JS, R, and Python), but we don't support it for other languages. That would be an easily implemented option.
Would something like this be okay, or would you prefer a button that's directly on the code block?
This is already nice, may I ask considering add an interupting command ? Many times, we just want to stop this cell, not the whole runtime.
This is a problem for any shell commands that run indefinitely like ping. Only way to stop it is open up another terminal and kill it.