-
-
Notifications
You must be signed in to change notification settings - Fork 653
Description
Is your feature request related to a problem? Please describe.
The workflow I’d like to try is typing long multi-line expressions in a .clj file and eval+pretty-print their results in the REPL where the results accumulate.
Describe the solution you'd like
I would like a function that is similar to cider-pprint-eval-last-sexp-to-repl
but instead of inserting the result into the REPL as input, I would like it to be inserted as pretty-printed output instead. If the eval'ed expression is also added as if it was typed in the prompt of the REPL I think it would be even more usable (because then you'd see alternating input and output and it would be easier to follow what was executed and in what order) but I’d be happy with just the outputs.
Describe alternatives you've considered
I saw that something similar would be possible with getting the results in a popup buffer, but I prefer to see a “log” of results which accumulate.
Additional context
This mockup shows what the result of running this new command might look like. My cursor is on the left in dev.clj
, and I've just ran the new command, which resulted in my s-exp being added as input in the REPL prompt and the result of the expression being pretty-printed just below.