Git Product home page Git Product logo

Comments (8)

cevaris avatar cevaris commented on May 13, 2024 34

Seems to be an --ignore flag now that works well

ag searchTerm myDirToSearch --ignore js --ignore css --ignore "*list"

from the_silver_searcher.

sigmavirus24 avatar sigmavirus24 commented on May 13, 2024 3

Now that there's an --ignore-dir can this be closed? Or is there still more work for this?

from the_silver_searcher.

ggreer avatar ggreer commented on May 13, 2024

/me ❤️ animated gifs. I like these ideas. Some of them can sort-of be implemented with a combination of -G and -v, but that's not very intuitive. I'll look into implementing them.

from the_silver_searcher.

sjl avatar sjl commented on May 13, 2024

Why not just have a single --ignore='foo' option (able to be given multiple times) that functions exactly like you added a line to .agignore?

from the_silver_searcher.

gjtorikian avatar gjtorikian commented on May 13, 2024

The format above is analogous to grep exclude patterns. I think it looks better than adding --ignore='foo' --ignore='blah' --ignore='iamtiredofwritingthisagain'

from the_silver_searcher.

ggreer avatar ggreer commented on May 13, 2024

No reason we can't have both. --exclude-files and --exclude-dirs are more work, though.

from the_silver_searcher.

d0u9 avatar d0u9 commented on May 13, 2024

Well. if I want to skip pdf doc jpg png out exe etc, does it means I need to append more and more --ignore options? I hope --ignore can support regex, then I can do that gracefully, i.e. --ignore "(pdf|doc|jpg|png|out|exe|)$".

from the_silver_searcher.

brandonsturgeon avatar brandonsturgeon commented on May 13, 2024

Any update on this? I get enormous results from doc/ folders that fill up my entire terminal.

from the_silver_searcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.