Fork me on GitHub
#portal
<
2022-05-12
>
yuhan10:05:21

Is there any way to change the window attributes of the Electron app? I would like for it to remain opaque when unfocused and not float on top of other windows.

djblue18:05:52

Currently this isn't configurable, but it sounds like you want more of the default experience without the electron app.

yuhan20:05:47

It's just nice having it be in a dedicated app that I can ⌘-Tab to without interfering with my other browser windows and tabs, and not having the unnecessary UI like the address bar.

👍 1
djblue20:05:46

If you have chrome installed, you can then install https://djblue.github.io/portal/ as a PWA which can host your local UI

djblue20:05:39

It doesn't have an address bar and should have it's own icon on the dock / taskbar

djblue20:05:26

I should probably add this info to the docs 😅

yuhan20:05:49

Did not know about this feature, thanks!

yuhan20:05:31

ah, I see it was mentioned in the docs after all - I must have skipped over it as I don't use Chrome

yuhan21:05:40

On a related note, cmd-shift-P in Firefox conflicts with "open new private window", maybe an alternate shortcut like alt-X would be welcome :)

👍 1
djblue21:05:14

Try ctrl + j or : as alternatives

2
yuhan21:05:55

hm, none of these work when the filter dialog is in focus

djblue21:05:02

Yeah, when an input is focused, all global shortcuts are disabled because some inputs have their own shortcuts

nmkip13:05:41

I'm using portal.api/eval-str to run portal commands, for example (portal.api/eval-str "(portal.ui.commands/select-next portal.ui.state/state)") , sometimes I'm runnning more than one portal instance. Is there a way of specifying in which instance that command should be run? Current behaviour is select-next will run in every instance.

djblue16:05:53

Currently no, but it should be easy to add :thumbsup:

😀 1
nmkip21:05:07

That was fast!

yuhan22:05:55

Is there a command like "next viewer" that allows one to cycle through the list of available viewers? I think this would be helpful in cases where I'm not familiar with all the options available, or don't want to think too hard about which is most suitable for the data at hand (just hit a key repeatedly to cycle until I find the one I like the most)

djblue22:05:35

There is a select-viewer command which can be used with the v shortcut

yuhan22:05:17

I know this, but it requires me to know the name of the viewer I want to select, and otherwise quite inconvenient for simply cycling through the available viewers

yuhan22:05:51

v ↓ RET v ↓ ↓ RET v ↓↓↓ RET v ↓↓↓↓ RET versus <next> <next> <next> <next>

👍 1
djblue01:05:41

What shortcut are you thinking for this type of command?

yuhan02:05:55

amazing, thanks! I was thinking C-n/`C-p` which is a little emacs centric, this works as well

👍 1
djblue02:05:31

You should be able to give it a spin at https://djblue.github.io/portal/ before the next release

yuhan02:05:00

Also I guess that would clash with browser commands on windows/linux

yuhan02:05:40

could I suggest Shift-H / Shift-L or [ / ]for history-back and forward?

😍 1