Some files stopped appearing when using the silver searcher in vim... and I just figured out that it happens when certain emoji combinations are inside the file. Even if those emojis are further down, after the term I'm looking for, the file doesn't show up in search results.
I removed emojis, and ta-da file is included in search results again. It's only certain emojies, When I leave this emoji in:
... then there's no problem.
However if I have a line that looks like this:
then it doesn't show up in search results.
Why could this be?
Using this table: http://unicode.org/emoji/charts/full-emoji-list.html I'm trying to figure out how to display 👧🏽 using markup that doesn't make ag exclude the file.
This is as close as I've gotten: 👧 🏽
Perhaps because they are interpreted as a binary file. Add a "--search-binary" to your search to circumvent this feature:
ag --search-binary "pattern"