protorepl

jasongilman 2017-01-07T02:51:30.000504Z

@richiardiandrea: its parsing what it gets back from nREPL as edn. It doesn't really know what they came from. I think it would be possible to write some nrepl middleware to change the representation by examining the underlying classes. I think it's best to keep the representation to match what other repls show though.

jasongilman 2017-01-07T02:52:20.000505Z

Though I think I don't exactly get your example. Could you show the input and expected output?

richiardiandrea 2017-01-07T02:55:37.000506Z

Yes I got a screenshot but now I am away from it @jasongilman so I will follow up OK? Also...it think protorepl is the only editor that displays inline 😁

richiardiandrea 2017-01-07T02:56:05.000507Z

Light table used to do it iirc

richiardiandrea 2017-01-07T02:58:12.000508Z

I think that there could be simple filter: when map? directly show second (the value)...Anyway, I will paste a screen

jasongilman 2017-01-07T04:19:21.000509Z

Ah I get what you're saying

jasongilman 2017-01-07T04:19:50.000510Z

I've had the same thought about how maps should display inline.

jasongilman 2017-01-07T04:22:24.000511Z

If you're interested in taking a crack at it the code is here: https://github.com/jasongilman/proto-repl/blob/master/proto-repl-client-cljs/src/proto_repl/edn_reader/display.cljc#L47

richiardiandrea 2017-01-07T05:00:59.000513Z

Oh cool it looks very easy to accomplish 😁