nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
cichli 2019-02-18T11:41:05.013800Z

It actually just falls back to a tagged representation using str [1][2] and avoids using any of the pr machinery – but I’d say that’s a virtue, since it means fipp can guarantee anything it prints is valid EDN (ignoring the print-length and print-level settings). pr only promises that anything it prints can be read by the Clojure (JVM) reader [1]: https://github.com/brandonbloom/fipp/blob/master/src/fipp/ednize.clj#L38-L42 [2]: https://github.com/brandonbloom/fipp/blob/master/src/fipp/edn.cljc#L68-L73

dominicm 2019-02-18T11:42:19.014600Z

puget seems to do something a bit special here too, going to investigate that a little, but for another project really.

eraserhd 2019-02-18T14:37:58.016500Z

I have a bit of polish before first real announce, but select-nrepl is now quite usable. This leverages rewrite-clj and provides ops for finding and selecting the current element, form, or toplevel in some code. https://github.com/eraserhd/select-nrepl

eraserhd 2019-02-18T14:39:41.018400Z

It's smart about what to do if some object is already selected - e.g. repeatedly selecting an element will iterate through elements left-to-right, regardless of nesting. repeatedly selecting forms will find the next-larger form. toplevels will move to the next toplevel.

eraserhd 2019-02-18T14:41:25.019300Z

(Also, selecting objects also takes surrounding metadata and other reader embellishments)

dominicm 2019-02-18T14:55:51.019500Z

that's awesome