-
Notifications
You must be signed in to change notification settings - Fork 624
Exact path matching command line option #980
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
base: main
Are you sure you want to change the base?
Conversation
Now that it comes to shell integration I don't think I am qualified to progress any further, I do hope this will be somewhat useful if anyone has similar ideas. The added feature is |
Your git history is whack since you merged instead of rebasing |
90baa4b
to
2e7b1d7
Compare
I completely missed that, thanks! |
@@ -180,6 +180,10 @@ pub struct Query { | |||
/// Exclude the current directory | |||
#[clap(long, value_hint = ValueHint::DirPath, value_name = "path")] | |||
pub exclude: Option<String>, | |||
|
|||
/// Only match exact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd spend a bit more time explaining this feature. This is what will show up in --help
}); | ||
|
||
if let Some(idx) = idx { | ||
components = components.drain(0..idx).collect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This... is convoluted to say the least.
Proof of concept feature improvement related to #260
This adds a new option to allow exact matching of sub path (the ones in between slashes). e.g.
zoxide query rust
matchesrust
but notrust-analyzer
. However I haven't been able to understand how to integrate this option into CLI options, as such this pull request isn't complete yet.I personally think just being able to exact match directories would help with QoL especially since the ones most vulnerable to regex matching is short names anyways.
Any feedback would be welcome!