anyrun-org / anyrun

A wayland native, highly customizable runner.
GNU General Public License v3.0
632 stars 52 forks source link

Implemented search history for application plugin #116

Open peppidesu opened 10 months ago

peppidesu commented 10 months ago

Issue #14 discussed this feature before, but the branch the maintainer mentioned is out of date by 74 commits.

This pull request implements recency bias into the applications plugin, meaning recently / commonly searched applications will be prioritized. The history file is stored in $HOME/.cache/anyrun-applications-history. The maximum number of entries can be changed in the config file using history_size (see README.md).

Recency bias is only applied if the other score components are not 0 (to prevent unrelated results showing up) and when the input field is empty.

AsriFox commented 10 months ago

That sounds amazing! Maybe it should be implemented as a separate plugin, though? See #87 and https://github.com/anyrun-org/plugin-applications.