clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.54k stars 646 forks source link

Use pretty-print formatting inside cider-inspect #3643

Open MicahElliott opened 5 months ago

MicahElliott commented 5 months ago

Is your feature request related to a problem? Please describe.

When stepping through in cider debugger and inspecting nested data, that data gets wrapped instead of ideally being displayed in a pretty-print view (with added newlines and indentation).

Describe the solution you'd like

Display the data using clojure.core.pprint/pprint or something similar.

Describe alternatives you've considered

The workaround now is to visit the inspector window and drill down, sometimes multiple levels. Otherwise, the inspector window often won't even need to be visited.

Additional context

This is how it looks now, pretty ugly/unreadable.

2024-04-17-141207_scrot

vemv commented 5 months ago

Not sure pretty-print is the answer - the Inspector should be emphasize data, not strings. Also, importantly, a large value should not get in the way of the next k-v entries.

Ideally we'd trim things while not breaking syntax-highlighting.

I think there's already such logic - should be a matter of reviewing it / tweaking it.

Cheers - V