Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ripgrep can't search for curly braces #1566

Closed
fbkarsdorp opened this issue May 13, 2018 · 2 comments

Comments

@fbkarsdorp
Copy link

commented May 13, 2018

I'm using counsel-grep-or-swiper with "rg -i -M 120 --no-heading --line-number --color never %s %s" as counsel-grep-base-command. Everythings appears to work smoothly, but any search which includes curly braces fails, returning no results. It appears to be something related to ripgrep, because replacing counsel-grep-base-command to search with ag using "ag --nocolor --nogroup %s %s" does work. Any thoughts on why this may be?

@abo-abo abo-abo closed this in 62ded64 May 13, 2018

@abo-abo

This comment has been minimized.

Copy link
Owner

commented May 13, 2018

Thanks, please test.

@fbkarsdorp

This comment has been minimized.

Copy link
Author

commented May 13, 2018

Thanks for the incredibly fast fix! Yes, that appears to work. However... it's still not possible to search for curly braces as part of a regular expression, e.g. ^\{.*?\} fails with no results. And again, this is possible with ag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.