ruben2020 / codequery

A code-understanding, code-browsing or code-search tool. This is a tool to index, then query or search C, C++, Java, Python, Ruby, Go and Javascript source code. It builds upon the databases of cscope and ctags, and provides a nice GUI tool.
https://ruben2020.github.io/codequery/
Mozilla Public License 2.0
685 stars 86 forks source link

CQSearch does not seem to work with special characters #97

Open prakashsanker opened 1 year ago

prakashsanker commented 1 year ago

I'm working on a java codebase. If I run

cqsearch -s myproject.db -t '*Mapping(' -f -u

this returns nothing.

If I run

cqsearch -s myproject.db -t '*Mapping' -f -u

it works.

How do I look for special characters?

Thanks!

ruben2020 commented 1 year ago

Hi @prakashsanker , Brackets are not part of the symbol, so it cannot be searched by symbol search. The codequery GUI can search this by grep. But the cqsearch CLI currently doesn't support grep. It could potentially be a feature to add. But of course, you can use grep in the command line directly in Linux. You don't need cqsearch for that.