Closed alexander-yakushev closed 4 months ago
Renamed :java
to :object
– that probably makes more sense.
If there are more modes, then the "toggle" button can cycle through them. However, I don't think such cycling should be implemented on Orchard side, I think having a :view-mode as a plain config value is sufficient at this level. CIDER or cider-nrepl can then tackle user interactions (cycling, dedicated switches, both).
Agreed, that should be on the clients to implement.
I'm not set on the names of view modes (currently :normal and :java). Bikeshedding is welcome.
The :object
name you chose makes sense to me. Something like raw
could also work. I'm afraid I'm not particularly inspired with the names today.
This is a feature that I've been wanting for a long long time. The idea is to have a toggle button (e.g.
v
) that forces inspector to render the current value as an unrecognized Java object – i.e., by displaying its fields.This is very useful when working on Clojure itself or developing custom data structures that happen to implement List, Map, etc., but you want to see the implementation bits.
There are a couple of details I have not decided on yet:
:view-mode
as a plain config value is sufficient at this level. CIDER or cider-nrepl can then tackle user interactions (cycling, dedicated switches, both).:normal
and:java
). Bikeshedding is welcome.