This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-10
Channels
- # announcements (16)
- # asami (7)
- # aws (5)
- # beginners (46)
- # calva (47)
- # clj-kondo (3)
- # cljdoc (23)
- # clojure (70)
- # clojure-germany (1)
- # clojurescript (6)
- # community-development (2)
- # datomic (3)
- # emacs (14)
- # exercism (5)
- # hyperfiddle (4)
- # jobs (1)
- # kaocha (9)
- # lsp (13)
- # malli (6)
- # membrane (11)
- # off-topic (22)
- # pedestal (4)
- # portal (19)
- # quil (3)
- # reagent (8)
- # remote-jobs (1)
- # shadow-cljs (48)
- # spacemacs (5)
Also, the electron host is now https://github.com/djblue/portal/releases/download/0.23.0/portal-darwin-x64-0.23.0.zip! (OSX only for now)
You need to start the electron portal app first, but no windows will appear. When you run (portal.api/open {:launcher :electron})
an always-on-top window should appear that will become transparent when not focused. Feedback welcome!
Should be handy for those looking for a more integrated approach but can't host a web ui in their editor / ide 👌
I have it setup to work kinda like the conjure HUD in that it will auto-open when I eval
@U1G869VNV - just tried it out; it looks interesting, but I think you need to expose some of the config options. Most of the choices (zoom-factor and width/height) I can change via existing keyboard bindings, but if it's going to run in always-on-top mode, I'd like to configure the opacity.
I think I'd prefer to set the opacity to 0
so it will "hide" completely from view when not focused (even though it could still remain on top).
^ This option may be more relevant to a laptop setup than perhaps a multi-monitor setup where you can just dedicate a portion of your screen to portal.
> Then I can close it when I want to focus my code again
How do you close it? Via cmd-q
? Is there a shortcut in the electron portal to close/hide without quitting?
Doesn't that still keep portal
focused as the primary app (from the MacOS window manager perspective)?
Either way, cmd-q
and cmd-w
are commands that I would like to avoid -> I am far too likely to accidentally close some other application tab when switching between apps.
I'm considering a workflow where I can cmd-tab
to portal to show/hide it. That way I can also setup my editor to auto-show after eval, but I can easily jump back and forth via cmd-tab
(which I'm used to, since I end up jumping through other apps as well).
Any thoughts on allowing the customization of opacity in the Electron build, so I can have it become 100% transparent when I switch apps?
That is to say, it's already how I work by having portal open in a web-browser tab. But it would be nicer to use the functionality of having it as a separate electron process in my application-switcher and to make sure it always stays on top when focused (vs. switching to my browser and looking for the window with my Portal tab).
> I have it setup to work kinda like the conjure HUD in that it will auto-open when I eval Is this behavior built-in or are you combining it with another tool? or perhaps a fancy tap function that wraps portal?
Not built it. I wrap my evals in a thing that will open portal if it's not open, and then tap the result to it 👌
@U1G869VNV is the electron app mentioned somewhere in the repo / docs? I couldn't find anything about it there. How do I get the latest download link?
I'm also not able to use shortcuts like Ctrl+J for command pallete, etc. Is there some trick to make them work?
Hi @U06BE1L6T, I haven't documented the electron app since it's till in the works. However, you can try an early version it on OSX using this https://github.com/djblue/portal/releases/download/0.23.0/portal-darwin-x64-0.23.0.zip 👌