-
-
Notifications
You must be signed in to change notification settings - Fork 845
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
Make -u
idempotent (always search all files/dirs)
#840
Comments
I worry about backwards incompatibility with this change. I expect many people have aliases and/or scripts already using |
The main reason for |
I don't use In using Alternatively, it may be enough to show a info message that some files were filtered. |
@andreavaccari See #612 |
@tavianator thanks for the pointer, I'm aware of of this issue and read your comments. I appreciate the desire to maintain backward compatibility and opinionated simplicity. On the other hand, it's more intuitive to find too many results and narrow them down with flags, than to find too few and and open up the filters. Short of that, I like your idea to add a status message that files were ignored, and I still think it'd be beneficial to have a one-letter flag that guarantees you'll search all files. I love opinionated tools because they are easy to use and "obvious". However, the fact that different projects use |
I have to admit that I never use a single |
This seems like a reasonable solution! Like you, I also never use a single
|
I can't imagine that they want to change their behavior.
yes, please see a similar proposal here #612 (comment) |
Thank you, I'll add my thoughts on the second point there. |
is this issue still open? If I understand correctly, is it about making the switches |
yes and yes |
Thanks. I am new to Rust development and I plan to learn by contributing to this project. Any pointers on where to start looking to fix this will be very helpful. :) |
In |
@pradkrish Are you still hoping to implement this change? I am going to start working on it, if you're no longer wanting to. |
@jacksontheel I think it's safe to say that you can go forward with this. |
@sharkdp @jacksontheel Thank you for working on this! 🙏 |
fd -u
is an alias forfd -I
andfd -uu
is an alias forfd -IH
. The former is unnecessary given that it's an alias to another one-letter flag (I imagine it's there for historical reasons?) and the latter is cumbersome if someone wanted to use the long form (--unrestricted
). This setup also makes the behavior of the flag ambiguous if new default filters were added in the future. In that case, would I disable all filters with-uu
or would I need to use-uuu
?Given the project's focus on ergonomics and usability, I'd suggest to make
-u
always search all files and to deprecate-uu
. This would be the equivalent ofls -a
, giving the user the guarantee that no filters will be applied by default. The main cons of this suggestion is that it's a breaking change and a subtle one: the command would continue to work with-u
but could return a different set of results.The text was updated successfully, but these errors were encountered: