mortenn / BrowserPicker

Smart browser selector for Windows
MIT License
244 stars 17 forks source link

[FEATURE REQUEST] Hotkeys to Prompt Popup for Browser Selection #75

Closed CHE-11 closed 5 months ago

CHE-11 commented 2 years ago

Most of the time you just want links to open in a default browser. But sometimes you want them to open elsewhere and only them do you need to select. It would be great if you could set a hot key (ctrl+shift or Win+shift) while selecting a link that launches the BrowserPicker UI to select the browser to open that link in.

mortenn commented 2 years ago

Thanks for the idea.

It would be possible to detect modifier key status on startup and change the behaviour, but if you hold a modifier key while clicking a link, that may change the behaviour of the source application. I know you have to hold ctrl in order to follow links in some apps, like excel - so that can also be a possible concern.

There is also a matter of varying startup times, so there might not be enough time to press the modifier key between clicking the link and the window appearing - in which case we would need either a delay before startup or just respond to the modifier key while the window is shown - in which case just hitting the number key would be just as quick?

I'll leave this issue open for further input, but don't expect I'll be looking at this any time soon unless I get a PR.

CHE-11 commented 2 years ago

I took this idea from BrowserTamer. They allow for modifier keys but it is closed source and pretty buggy. Not nearly as stable as this.

mortenn commented 5 months ago

I have added a short circuit that skips the detection and just shows the choices if the alt key is held down while the window is opening. you may test it out in this build

mortenn commented 5 months ago

This feature is included in 2.0.2