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

[query] please support a --basedir parameter to filter roots #944

Open
jessefarinacci opened this issue Dec 2, 2024 · 0 comments
Open

Comments

@jessefarinacci
Copy link

I often want to run zoxide query --interactive in a large project and have the results all be at the project root where I'm invoking zoxide, not just the ones zoxide thinks are the most popular.

I propose a new --basedir [path] parameter to the query subcommand. If user passes --all we can error out or just preference one or the other. With --list and --interactive it will filter all results for having the same fully qualified path prefix specified by --basedir parameter, with the $CWD being the default value.

The query subcommand already supports an --exclusion mechanism for filtering. This new option to effectively invert that logic will also be valuable. Thanks!

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