Junction icon indicating copy to clipboard operation
Junction copied to clipboard

Open links in different application directly

Open bigdiff opened this issue 3 years ago • 3 comments
trafficstars

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?".

bigdiff avatar Jul 06 '22 00:07 bigdiff

Unfortunately, that is not possible.

Here are a few ideas thought:

  • A global shortcut that opens Junction with whatever is into the clipboard
  • A drop area that opens Junction when dragging files/URLs into it (GNOME Shell extension I guess)

sonnyp avatar Jul 19 '22 13:07 sonnyp

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

  • https://github.com/flatpak/xdg-desktop-portal/pull/711
  • https://flatpak.github.io/xdg-desktop-portal/#gdbus-org.freedesktop.portal.GlobalShortcuts

sonnyp avatar May 06 '23 11:05 sonnyp

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

Gymcap avatar Mar 18 '24 11:03 Gymcap