portal

https://github.com/djblue/portal
claudiu 2021-03-27T18:57:49.013Z

Hello, Are there any keyboard shortcuts implemented in portal (ex: to change selected to portal.viewer/tree) ?

djblue 2021-03-27T19:00:39.013100Z

Hi @claudiu, if you open the command palette by hitting the bottom right button, it will provide keyboard shortcuts next to the command.

plexus 2021-03-29T07:43:54.014400Z

This is cool! note that at least on Linux in Firefox, Ctrl-Shift-p will open a private browsing window, seems it won't let you override that.

djblue 2021-03-29T14:23:58.014600Z

Thanks! I think two ways to fix the problem are having browser specific shortcuts or making it customizable, one of those is easier than the other. What keyboard shortcut would you prefer instead of ctrl + shift + p?

Ryan Zwiefelhofer 2021-03-29T16:16:05.015Z

I would have almost recommended ctrl + shift + a since many things are using that for palettes, but unfortunately chrome just decided to steal it as well for the search open tabs feature. Next in my mind would be maybe trying to model after linux generated signals (eg, ctrl + z , ctrl + c) etc but then that would interfere with any future possibilities of having shells within portal. Maybe instead after something like tmux with trigger/prefix combo first ? (eg: ctrl + b -> p - but not using tmux's b for the above mentioned reason so swap it out with another char). Anyways just some food for thought 😄 stealing improving on existing systems always seems to offer good basis for things Edit: One existing one i forgot that many people are becoming accustomed to is meta + k (slack!)

1
plexus 2021-03-30T07:03:03.015600Z

Nextjournal (and others as well I believe) use Ctrl/Cmd-J https://nextjournal.com/help/shortcuts

plexus 2021-03-30T07:04:03.015900Z

it's pretty hard to find keyboard shortcuts that don't clash with either some browser's built-ins, or with some OS/window manager shortcuts...

👌 1
claudiu 2021-03-27T19:03:25.013200Z

ohh totally missed it. Awesome, thank you 🙂

💯 1
djblue 2021-03-27T19:05:56.013500Z

https://github.com/djblue/portal/blob/master/src/portal/ui/commands.cljs#L173-L221 is the complete list. Looking at making them customizable in the future.

claudiu 2021-03-27T19:10:51.013800Z

Thank you 🙂