Fork me on GitHub
#portal
<
2023-10-09
>
pfeodrippe02:10:56

Why a game editor when you have Portal and Clerk already lol (using Portal in this case as the de facto edit mode visualizer) https://clojurians.slack.com/archives/C066UV2MV/p1696817214900019

djblue19:10:03

Very cool, thanks for sharing!

djblue19:10:43

BTW I was gonna add some metadata for the pprint viewer around print-length and print-level. Is this something you feel like you've been missing?

pfeodrippe19:10:35

Yeah, it would be good to have some of it, but not a priority as we can mix and match viewers… and create one ourselves pretty easily. But it hasn’t been an issue so far

👍 1
pfeodrippe19:10:42

Thanks for asking ☺️

Casey12:10:44

I'm not sure if I just noticed this or if something changed recently, but I see my repl output twice for each evaled form: Why does this happen.. and how can I make it only show once to reduce scrolling in the window?

Casey12:10:58

FWIW I use this middleware [refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware,portal.nrepl/wrap-portal] and this in my user.clj

(inspect/open {:theme :portal.colors/gruvbox})
(add-tap portal.api/submit)

djblue19:10:31

The https://github.com/djblue/portal/blob/master/src/portal/nrepl.clj#L89 middleware will only tap> the value once. You may have another tap handler registered elsewhere.

Casey05:10:36

Note how the rendering is different for each one. The first is wrapped in metadata and had a line number. The second is just the value evaled