sonnyp / Junction

Application/browser chooser
https://flathub.org/apps/re.sonny.Junction
GNU General Public License v3.0
457 stars 29 forks source link

Open links in different application directly #79

Open bigdiff opened 2 years ago

bigdiff commented 2 years ago

Hello

Thank you for building this powerful tool.

I had something in mind but I don't know if it is possible or not yet.

The idea is to open a link in the primary browser by default without showing the dialog. But pressing Shift + clicking would show the dialog or alternatively use the the secondary selected application from the list. If the latter is used maybe pressing Alt + clicking to use the tertiary application from the list.

So my question is "is this possible with current APIs?".

sonnyp commented 1 year ago

Unfortunately, that is not possible.

Here are a few ideas thought:

sonnyp commented 1 year ago

There is now a GlobalShortcuts API that we could use

I doubt we can use it for Shift+Click but maybe Shift+J and then click

Gymcap commented 3 months ago

Is checking for shift held on app start an option?

I.e. When this users suggested option is enabled: Start Junction without the UI Check if shift is being held If so, then display the Junction UI If not, then proceed automatically