Open pinggit opened 3 years ago
This is a python only problem, should not be fixed in asyncrun.
What you need is a text filter which will preprocess your source code, take care of the indentation before passing it to python:
:'<,'>AsyncRun your_text_filter | python3
in markdown document I prefer to indent the code, like this:
with Asyncrun, I'd like to visual select the code and run it:
which throw an error
I know this is because Asyncrun literally copied the visual block and throw it to python3, which report an error. My question is, is there any workaround to "ignore" the leading indentations (for markdown only) when passing to python? that will be super useful!