clojure-emacs/cider

Use pretty-print formatting inside cider-inspect

MicahElliott opened this issue · 1 comments

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

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