-
Notifications
You must be signed in to change notification settings - Fork 66
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
Add a -X that acts like -x but obeys the --type filters #368
Comments
I might ask to consider having the flag be independent of -x - this behavior is also confusing on the command line. (Also, this way it can be embeded in ackrc) |
What does "independent of -x" mean? Which behavior is also confusing on the command line? Which way it can be embedded in ackrc? |
Independent of Behavior on the command line: It's confusing that Specify in ackrc: Even though we can't break existing scripts, I personally want this feature to be the default ack behavior, and that's what ackrc is for: to have personal default settings. Having this as an independent flag I can tuck into my ackrc basically gives me that power. I wouldn't be able to do that with -X. None of this is an argument against |
Ability to use ack type filters in xargs mode is some setting i'd use. Our filters are more expressive than e.g. |
ack -x
ignores type filters. This is surprising to some users, and there have been repeated calls for-x
to respect the--type
filters.It's too late to change the behavior of
-x
, but perhaps we add another flag, maybe-X
, that obeys the type filters.Let's discuss.
The text was updated successfully, but these errors were encountered: