counsel-git-grep : how to specify "." or "*" in search pattern #876
Comments
You have to escape them: |
That is exactly what I tried. It works with swiper and counsel-ag, but does
not work with counsel-git-grep.
…On Feb 3, 2017 11:38 PM, "Oleh Krehel" ***@***.***> wrote:
You have to escape them: \. or \*.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#876 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AYWzD2HBzBeNz5Vpt3s1NWdwu23B8CNnks5rZCsEgaJpZM4L26eU>
.
|
Did you customize any setting for |
I have not customized any settings for
I tried
I tried to mimic the greps in a terminal. Here is the output:
So it looks like with Or am I missing something or doing something wrong? |
It seems I'm using a custom command myself. Can you try it with my setting: (setq counsel-git-grep-cmd-default
"git --no-pager grep --full-name -n --no-color -i -e '%s' -- './*' ':!*.htm'") |
That works. With your custom command, when I run |
Fixed, thanks. |
May be I am missing something basic, but I can't figure out how to specify "." or "*" in the search pattern while using counsel-git-grep.
In swiper, I am able to use "." to specify "." and "*" to specify "*". Should the same thing work for counsel-git-grep also? Is there another way to specify these characters in the search pattern?
The text was updated successfully, but these errors were encountered: