Fork me on GitHub
#cider
<
2022-10-03
>
Carsten Behring07:10:00

Was there ever a discussion in the Cider community about "rendering" of Clojure data in browser being part of Cider ? I know there are several external projects on this, but nothing inside Cider itself. I would see this as an alternative to "cider-inspect" or "pretty-print into repl output". With the potential advantage of a browser having far superior rendering capabilities compared to Emacs itself.

Benjamin10:10:39

Did you try #portal ? Currently the biggest downside to portal are the keybinds I suppose

Carsten Behring12:10:09

I am aware of Portal, Clerk and others. But none of it is integrated deeply in Cider. So they are not "out-of-the-box".

Benjamin12:10:03

Yea that's true

Carsten Behring13:10:47

I think an "extension point" in Cider could be interesting which allows to hook in custom Clojure code, which gets called with the "JVM object under cursor" Or is this maybe possible already ?

Carsten Behring13:10:57

My use cases is indeed a "replacement" for cider-inspect.

Benjamin16:10:34

(defun my-cider-inspect ()
  (interactive)
  (cider-nrepl-sync-request:eval "(spit \"/tmp/my-cider-inspection.edn\" (prn-str *1))")
  (find-file "/tmp/my-cider-inspection.edn"))
cider eval + *1 comes to mind

zhuxun221:10:06

It seems that cider-set-repl-type in a cljs file will change the repl type to clj. Is there a way to prevent this?