google / google/codesearch

Filter for filetype and exact words

Open
#90 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4k
Forks
403
PR merge metrics
No merged PRs in 30d

Description

AFAIK there is no way to filter for filetypes in csearch. grep tool provides this with `--include` flag.

Headers only search
`grep --include="*.h" -w SEARCH_EXACT_WORD`

This feature might already be present in csearch tool, but I see it fails. I would like to search for exact words in header files alone.
I tried this
`csearch '\'` but this fails.

As workaround
`csearch SEARCH_EXACT_WORD | grep '\.h' | grep -w SEARCH_EXACT_WORD`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.