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

Enhancement: Support min_score in queries #853

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ChilloManiac
Copy link

This PR adds the -m flag to queries, allowing a user to specify directories to be discarded if they fall below a given threshold. Works both interactively and in list mode

Example usage

$ zoxide query -lsm4

$ zoxide query -im4
@ajeetdsouza
Copy link
Owner

Could you elaborate on the use case for this?

@ChilloManiac
Copy link
Author

ChilloManiac commented Jul 12, 2024

I use GNU stow to manage dotfiles and symlinks to them. Since i've been in both the stow and symlink dir, both show up when listing. But since i use one primarily the other one has a low score and i would like to discard it.

Furthermore i've created some vim
Utilities that uses zoxide query -l {input} and display the results in an interactive picker. I would also like to be able to discard low scoring options from this list.

I figure other users could be using zoxide in a similar manner

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