Fork me on GitHub
#portal
<
2022-04-06
>
Carlo16:04:06

Is there any reason this:

(portal.web/eval-str
 (portal.ui.commands/copy portal.ui.state/state))
wouldn't work while other commands like select-next would if used in the same way?

Carlo18:04:35

In the end this is what I do instead when I want to copy something from portal:

(defun portal-copy ()
  (interactive)
  (insert (nrepl-dict-get (cider-nrepl-sync-request:eval "@p") "value")))
@U1G869VNV @UJCC6CE9E ^

💯 1
nmkip18:04:17

I'll try that, thanks!

nmkip18:04:15

@UA7E6DU04 that's working 🙂

😍 1
Carlo18:04:21

Semantic curiosity: what does it mean to call (portal.web/open) multiple times? Does it just reuse the same portal? (Asking to understand better hot reload)

djblue18:04:26

Yeah, portal.web only lets you have one window open at a time

djblue18:04:53

Not sure why I made it have this limitation

Carlo18:04:54

is it different for portal.api?

djblue18:04:14

Yup, portal.api can open many instances

Carlo18:04:15

I mean, I quite like this behavior, it means that I can just (p/open) at each reload

👍 1
1
Carlo18:04:33

it works well with shadow's hot reload I think

1
Carlo18:04:39

Also, is there a setting to open portal directly maximized (F11) or with the shell toggled?

djblue18:04:37

Not currently