beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Add support for negation of -k --known-types options #448

Open packy opened 10 years ago

packy commented 10 years ago

Implementation of feature request in issue https://github.com/petdance/ack2/issues/293.

hoelzro commented 10 years ago

Awesome work @packy! This looks mostly good to me, only a few issues:

petdance commented 10 years ago

I think it needs to follow the convention of --no-xxxx and be --no-known-types.

packy commented 10 years ago

It was rebased on top of current dev, but I figured out how to get rid of the merge commit.

And I took the name --no-known-types from Andy's suggestion in issue https://github.com/petdance/ack2/issues/293.

I hadn't tried combining it with --type=noperl, so I just did:

Which is pretty much what I'd expect it to do: negate all type filtering that had been specified up to that point.

Remember, this is mostly a way for users to turn off a --known-types that was set in their .ackrc on a case-by-case basis.

hoelzro commented 10 years ago

@packy Right, I just wanted to make sure that the behavior followed expectations. =) Everything looks good to me; should I merge @petdance?

petdance commented 10 years ago

On Apr 15, 2014, at 2:02 PM, Rob Hoelz notifications@github.com wrote:

@packy Right, I just wanted to make sure that the behavior followed expectations. =) Everything looks good to me; should I merge @petdance?

I haven't even looked at it yet. See comment from earlier this morning.