portal

benny 2024-11-08T09:22:32.263029Z

Can I send portal ui commands via the REPL to specific sessions? (currently open inspectors for example)? But I'll state my actual goal, maybe I'm thinking around an obvious path: I want to auto scroll to the bottom when new items are inserted.

djblue 2024-11-09T22:44:45.209059Z

I think you can accomplish this via calling https://github.com/djblue/portal/blob/9dbb31678d9432909f3e6eaeb2409dd1ab4daefa/src/portal/ui/commands.cljs#L728. porta.api/eval-str takes an optional parameter for scoping your evaluation to a particular portal instance. If you don't provide that parameter, it will eval the code in all instances. What's at the bottom that you want to keep in focus?

benny 2024-11-10T18:41:48.617899Z

(portal.api/eval-str l "(portal.ui.commands/scroll-bottom portal.ui.state/state)")

benny 2024-11-10T18:42:56.064199Z

I'm trying the Corfield workflow and having portal be the nrepl eval log window makes it more like a REPL and I wanted a different sort order