Cerebro: Results sorted by frecency

Created on 11 Apr 2017  Â·  6Comments  Â·  Source: cerebroapp/cerebro

  • [x] I am on the latest Cerebro.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate

A must for me (that Alfred gets right) is showing the results sorted by frecency. — Is this on the roadmap?

— A must for higher productivity! ;)

Thank you so much for Cerebro.

Most helpful comment

Sublime Text and VS Code use a fuzzy search + sorting algorithm in their command palettes that works really well. May I suggest adopting something similar? There's an npm package for it which also supports custom sorting. You can find it here: https://github.com/farzher/fuzzysort

demo gif

All 6 comments

Follow #91 and #250, although the development is a bit stuck there 😞

Thank you, @maximbaz — And just to point out something I consider essential: this "frecency" feature would include all results (not just apps), so, for example: If for 1 I usually pick 1Password, then typing 1 won't bring up the calculator item in 1st position anymore, but 1Password.

I see, what you are asking is broader and more complicated :stuck_out_tongue_winking_eye:
But a valid request, keep it open :+1:

I think a nice ranking metric would be based on the amount of times that exact term had been used to select that item which would be heavily weighted with the amount of times a longer term had been used to select that item (longer where they both start with the same term like aaa and aaaa but not aaba)

Sublime Text and VS Code use a fuzzy search + sorting algorithm in their command palettes that works really well. May I suggest adopting something similar? There's an npm package for it which also supports custom sorting. You can find it here: https://github.com/farzher/fuzzysort

demo gif

You could also look at how fzf implements search.
The fact that frequency sorting is not part of cerebro is quite a downer for me. Search is the main part of the UX and should therefore adapt to the user.
At least twice a day, I accidentally open the wrong calendar app, because it comes up as the first result.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

helmutgranda picture helmutgranda  Â·  4Comments

egoist picture egoist  Â·  6Comments

lavir picture lavir  Â·  7Comments

lubien picture lubien  Â·  5Comments

prcastro picture prcastro  Â·  6Comments