sonnyp / Junction

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

Select option using hotkey #11

Closed drod3763 closed 2 years ago

drod3763 commented 2 years ago

I know that we can navigate using the arrow keys but I would like a way to instantly select an option using something like Ctrl/Super + #.

sonnyp commented 2 years ago

Not sure why Ctrl or Super would be required even.

Could just as well be 1, 2,,3, or A, B, ...

But the feature needs a bit more thoughts.

Because of muscle memory, the hotkeys should probably be persistent, so Firefox always the same hotkey, Chrome always the same hotkey and so on.

drod3763 commented 2 years ago

Just numbers would be fine too. If you order by frequency, the muscle memory would happen naturally. If you wanted to customize the key by browser, you'd probably have to keep a list of all possible browsers or find some way to manage collisions if you used the first letter of a browser name or something like that.

sonnyp commented 2 years ago

If you want to help - please make a clear, well thought proposal of how this would behave, work and perhaps look.

Frequency is out of scope, persistent hotkeys is the only sane solution.

I suggest looking at how similar apps do this. Here are a few:

drod3763 commented 2 years ago

I actually have experience with some of these already, hence where the ideas I'm proposing come from.

If you need more info, let me know whats unclear about this and I can provide but I don't think its necessary for me to use every single tool shown in that list. As you've indicated there is no shortage of tools that do this already.

sonnyp commented 2 years ago

I'll add 1,2, 3,4 shortcuts in the next release.

Without permanent hotkey nor UI/visual hint for now.

sonnyp commented 2 years ago

Fixed in 1.2.0