-
-
Notifications
You must be signed in to change notification settings - Fork 606
Closed
Labels
Description
- Category
- Question
- Bug
- Suggestion
- OS
- Linux
- macOS
- Windows
- Etc.
- Vim
- Vim
- Neovim
Since there is a command :Files that can search files by name, I'd like to configure :Ag to only look at the file contents, not at the file names.
I'll demostrate my case below, my question is: can this be achieved today, maybe with some configuration?
To see why this is an annoying issue, create a file called demo.txt, put 20 lines each having a random number, and on the 21st line write demo. Then use :Ag demo to search for this string.
Expected: you find only one occurrence.
Actual: you also find 20 irrelevant occurrences.
make-github-pseudonymous-again, cmpadden, buschco, dgmora, JorisDeRidder and 3 more
