Junction icon indicating copy to clipboard operation
Junction copied to clipboard

Order by frequency

Open drod3763 opened this issue 4 years ago • 9 comments

If I consistently use Firefox Dev Edition, then it would be useful to just have it show up as the first option. So ordering by frequency would be useful. Of course that means you have to track that number, so maybe it could just be an option?

drod3763 avatar Oct 21 '21 13:10 drod3763

You don't need both order by frequency and hotkeys.

Hotkeys is a better solution to the problem of "I want to quickly open a browser". Changing the order may also mess with mouse users muscle memory (Junction may already be doing that - not sure)

sonnyp avatar Oct 21 '21 15:10 sonnyp

Frequency is useful if you use your mouse. For example, Bumpr is a mac program where the selection window appears underneath the mouse when you click the link (presumably also with your mouse). This allows you to create muscle memory in the sense that it could be two clicks to open it in your most frequently used browser quickly. This is less useful, if the window always appears in the center of the screen for example.

drod3763 avatar Oct 21 '21 18:10 drod3763

Instead of reordering, i would love it would highlight the most frequent option by default. That would man a double enter to open a image but enter and select app for everything else.

rohmishra avatar Nov 19 '21 23:11 rohmishra

@rohmishra that's a nice idea - please open a new issue

sonnyp avatar Nov 20 '21 09:11 sonnyp

Right now Junction orders by last use (its the default behavior of GLib).

Given that

  1. We don't show the complete list of options anymore (see https://github.com/sonnyp/Junction/issues/30) and it'll probably stay like that - relying on an arbitrary order such as alphabetical doesn't make sense.

  2. We will need to store the app use frequency for https://github.com/sonnyp/Junction/issues/29

I'd say it'd make sense to order options by frequency

EDIT:

Or we take the 4 most recent/frequent options and order them alphabetically to avoid them moving around. And ensure the most used option is always one of the option.

sonnyp avatar Dec 05 '21 19:12 sonnyp

This is essential when your browser doesn't show in the initial recommendations. In my case, I wanted to use Waterfox (not sure why it doesn't show with the others).

image

johnnyasantoss avatar Jan 24 '22 02:01 johnnyasantoss

Another solution could be manual ordering of preferred apps

gloopsies avatar Jan 28 '22 12:01 gloopsies

Manual ordering can get out of hand quick and get confusing for multiple types. I do have a kinda working prototype on ordering by frequency that i worked on back in December but it requires some cleanup. I wanna rework how I handle gsettings before I send a PR.

rohmishra avatar Jan 29 '22 01:01 rohmishra

What about a preference to set this? Order by frequency on|off toggle for those that prefer it?

johnnyasantoss avatar Jan 31 '22 17:01 johnnyasantoss