Using :CocSearch for pattern with backslashes

46 Views Asked by At

How do I do a search through :CocSearch for anything containing backslashes?

i.e: Module\Auth

1

There are 1 best solutions below

0
javier_domenech On

Turns out :CocSearch uses ripgrep (rg), so I applied the option --fixed-strings (-F) and the search string without quotes and it worked:

CocSearch -F Module\Auth