Fork me on GitHub
#portal
<
2022-11-09
>
nate18:11:54

hm, how do you multiple select to use the diff mode again? I'm not able to by pressing shift, cmd or ctrl...

djblue18:11:46

Sorry, this got broken recently but should be https://github.com/djblue/portal/commit/fe115413d176eafa9ce6535be5dc4a7fed065a46 in the next release 😞

djblue18:11:30

cmd on osx and alt everywhere else

djblue18:11:04

If you have the data as a vector pair, you can still use the diff viewer

nate18:11:15

by selecting the vector?

nate18:11:26

doesn't seem to show the diff command

djblue18:11:40

Try selecting a different viewer

djblue18:11:47

FYI @U0510902N this should be fixed in 0.34.1

nate18:11:34

Thank you! I’ll check it out today.

walterl19:11:13

Dunno how apt this is, but sending mulog events to Portal (via tap>) has a game changer for me:

(deftype TapPublisher [buffer transform]
  com.brunobonacci.mulog.publisher.PPublisher
  (agent-buffer [_]
    buffer)

  (publish-delay [_]
    200)

  (publish [_ buffer]
    (doseq [item (transform (map second (rb/items buffer)))]
      (tap> item))
    (rb/clear buffer)))

(defn tap-publisher
  [{:keys [transform] :as _config}]
  (TapPublisher. (rb/agent-buffer 10000) (or transform identity)))
(Based on https://github.com/BrunoBonacci/mulog/blob/master/mulog-core/src/com/brunobonacci/mulog/publisher.clj#L42)

💯 3
🎉 1
djblue19:11:43

Very cool awesome would you be interested in adding this example to the docs?

walterl19:11:13

Sure. Under guides/?

👍 1
🙏 1
walterl19:11:49

PR will follow shortly 🙂

walterl19:11:59

P.S. Thanks for Portal! 🙏

❤️ 1
djblue19:11:42

Please also include the relevant namespace that are aliased so people can copy + paste the examples directly

👍 1