Giter Club home page Giter Club logo

Comments (3)

ggreer avatar ggreer commented on May 21, 2024

echo TAGS >> ~/.agignore

It's a trade-off: Risk spamming users with too many results or risk silently ignoring files that users care about. The cost of the latter is much higher than the former, so Ag searches all non-hidden text files by default. If your tags were ignored by your source control, or they were hidden, or ignored in a .agignore file, you'd get your desired behavior.

from the_silver_searcher.

timjstewart avatar timjstewart commented on May 21, 2024

Sorry I didn't read the README and thanks for your helpful reply!

from the_silver_searcher.

TysonAndre avatar TysonAndre commented on May 21, 2024

For anyone looking at this issue in the future, if you're trying to exclude the file tags (from ctags) from search, but to include tags/ as a directory in your searches

(does not work, tags/ directory is still ignored)

tags
!tags/

But this workaround does work - the file is ignored but the files in the directory aren't.

[t]ags
!tags/

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.