the_silver_searcher: Glob patterns don't work inside directories
The following pattern inside .gitignore doesn’t work: log/*.log; while this works fine: *.log. I created a small test repo to display the issue:
About this issue
- Original URL
- State: open
- Created 12 years ago
- Reactions: 4
- Comments: 32 (6 by maintainers)
Commits related to this issue
- work around https://github.com/ggreer/the_silver_searcher/issues/100 — committed to f1sherman/dotfiles by f1sherman 9 years ago
- Work around ggreer/the_silver_searcher#100 — committed to rglassett/dotfiles by rglassett 8 years ago
- .bashrc: Add `vimgrep` function This is like `vimag`, but uses `grep -il` instead of `ag -l`, because `ag` doesn't honor `.gitignore` correctly: https://github.com/ggreer/the_silver_searcher/issues/1... — committed to josephfrazier/dotfiles by josephfrazier 6 years ago
- Make platinum searcher (pt) default due to ag gitignore error (issue 100) https://github.com/ggreer/the_silver_searcher/issues/100 — committed to c-oreills/dotfiles by c-oreills 5 years ago
Also seeing this on latest Ag + Sierra
I too am seeing this with ag 0.30.0 on OSX 10.10.5
@chetan, please reopen this issue, as it’s still relevant
I can confirm that the bug is present in 0.31.0 from homebrew on OS X 10.11.1.
Same problem happens with
ag version 2.2.0.Just tried with the latest silver searcher from homebrew (2.1.0). @chetan Can we reopen this?
**/dist doesnt is ignored but something like /dist works. even though their is no /dist and I want to target nested dists.
@ggreer Can this issued be reopened? If not we should open a new issue. I’m getting matches of artifact files that are in gitignore.
This is a bit annoying since I am using it in vim and it tries to search through compiled files.
The bug is also in 0.32.0 from homebrew on OSX 10.11.5.