-
Notifications
You must be signed in to change notification settings - Fork 608
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
Comments
@ajeetdsouza This is something that could be done pretty easily by adding a field and builder method to @jessefarinacci This is a really small thing, but I'm not sure that the |
Hi, I'm proposing a feature of
Also this should work with |
Perfect, the PR I opened should work exactly as outlined. Thank you so much. |
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 invokingzoxide
, not just the ones zoxide thinks are the most popular.I propose a new
--basedir [path]
parameter to thequery
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!The text was updated successfully, but these errors were encountered: