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

[FR] Support specifying weights #157

Open
NightMachinery opened this issue Mar 25, 2021 · 0 comments
Open

[FR] Support specifying weights #157

NightMachinery opened this issue Mar 25, 2021 · 0 comments

Comments

@NightMachinery
Copy link

E.g.,

echo "1 normal choice
1.2 another somewhat normal choice
3 important choice
100 super critical choice" | fzy --read-weights='^(\d+(\.\d*)?)\s'

would multiply whatever score these candidates got by their weights. One result would be that super critical choice would probably stay at the top if its score is anything but zero.

This has multiple applications, among which is having MRU (most recently used) weights that help used choices get to the top.

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

No branches or pull requests

1 participant