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

Missing extensions for some common types #456

Closed Tux closed 7 years ago

Tux commented 10 years ago

My .ackrc contains (local (color) stuff stripped)

--8<--- --type-add=html:ext:xhtml --type-add=xml:exe:xsd,wsdl

--ignore-directory=is:target -->8---

.xhtml is an extension that I encounter quite often and does not show up under --dump. IMHO it should be added to html

.xsd and .wsdl are very clearly subject to the xml group and IMHO should be added to the default list of extensions for XML

the folder "target" should be skipped in netbeans/eclipse/maven project folders. Maybe only if the same folder exists with /src/ where the found folder has /target/

petdance commented 10 years ago

Certainly target is too broad a target to skip. The other ones probably make sense, but I leave it open to commentary for now.

Tux commented 10 years ago

that is why I explained the target rule. I however found no way to skip target if and only if the same dir existed as src

petdance commented 10 years ago

no way to skip target if and only if the same dir existed as src

That's right, there is no way.

Tux commented 10 years ago

thanks for the feedback

petdance commented 8 years ago

.xsd has been added elsewhere.

petdance commented 7 years ago

Done in eed2c4f. This will go out in 2.17_01. Thanks.