sketch-sh
sketch-sh copied to clipboard
should code blocks be executed after pretty print?
sometimes in working in a code block, it's nice to pretty print your code, but if you're still working on something, code execution might not always be desirable. With code execution just another shortcut away, I think it might be better to leave that up to the user, and have pretty print be a standalone command with no execution.
Thoughts?
This is a really interesting point. I want to execute the code after pretty print to avoid layout thrashing. Also, you can't pretty print code with syntax error anyway.
I agree with the @no-stack-dub-sack's proposal , and also I would like it was possible to pp only one one block, for example the one with the active editing and having a button for the total pp.