ggreer / the_silver_searcher

A code-searching tool similar to ack, but faster.
http://geoff.greer.fm/ag/
Apache License 2.0
26.07k stars 1.42k forks source link

only search for directory #737

Open ryenus opened 9 years ago

ryenus commented 9 years ago

it looks ag doesn't have such an option like find -type d, maybe an option --dir can be added for ag to do this?

ggreer commented 9 years ago

It really seems like find is the right tool for this job. Is there a compelling reason why ag should also have this feature?

ryenus commented 9 years ago

For the sake of feature completeness, also since ag already does the hard work to scan a given directory tree.

kennykaye commented 8 years ago

Another reason this would be very useful is that to the best of my knowledge find does not respect .gitignore, where ag does.

byrnedo commented 8 years ago

Would also love this because of the .gitignore support, combining ag with fzf with a dir option would make for very nice directory navigation.