Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement frecency sorting? #601

Open
unhammer opened this issue May 30, 2017 · 3 comments
Open

implement frecency sorting? #601

unhammer opened this issue May 30, 2017 · 3 comments

Comments

@unhammer
Copy link

unhammer commented May 30, 2017

Version

Version: 1.3.1

Configuration

https://gist.github.com/unhammer/a2484e704cdc05395d997ad7cd072490

Launch Command

rofi -modi combi -show combi -combi-modi "drun,run,ssh,window"

Steps to reproduce

  • Start caja four times from rofi
  • Let some weeks pass
  • Start corebird three times from rofi

What behaviour you see

  • after typing core, the top drun hit is Caja

What behaviour you expect to see

  • Corebird as the top drun hit, since it was used more recently.

I saw that frecency was mentioned in #194 , but the "fix" there was disabling Levenshtein sorting. I really like having Levenshtein on, though (also, it seems necessary to get drun matches on Name fields of .desktop files?). A better fix in my opinion would be to implement https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Frecency_algorithm (as used by Firefox and https://github.com/clvv/fasd). Simply sorting by most used means programs you stopped using will hang around and annoy you long afterwards.

@DaveDavenport
Copy link
Collaborator

DaveDavenport commented May 30, 2017

FWIW: You can hit shift-delete to remove an item from history.

It is an interesting idea.

@unhammer
Copy link
Author

FWIW: You can hit shift-delete to remove an item from history.

When I tried, this didn't seem to have an effect (I ended up just starting corebird a bunch more times, which "worked" …)

@DaveDavenport
Copy link
Collaborator

Weird works for me (tm) even in combi mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants