-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Optionally allow pattern elision #312
Comments
Interesting idea. I have to admit that I also see this error from time to time 😄. What I definitely want to avoid is any sort of ambiguity (or confusion on the user side). I think it would be quite unfortunate that the following two commands would do completely different things:
|
I think having the directory separator in the pattern/path disambiguates sufficiently (and is consistent with some things in Linux - think of ‘ls -l’ of a directory symlink with/without a trailing slash. I was thinking of a flag to indicate that if the error situation was seen, to tell fd which option (if either) to use. Then an ‘fd’ alias could be defined with that option set. Say ‘--pattern-or-path=(path|pattern|none)’? |
Ok, but
I'd like to avoid "bloat" when it comes to command line options (longer
to
or possibly even
which would have other benefits as well. |
The |
This is related to #235 - maybe it's just me, but I search for files by just their extension often enough that when I see the warning below, I wish yet again that
fd
could fill in the match-all pattern for me...Having an option to enable this feels beneficial (if only to me, I guess!). Maybe only in the case that a filtering option (such as
-e
or-t
) has also been used?The text was updated successfully, but these errors were encountered: