Skip to content

Filter for filetype and exact words  #90

Description

@shrkamat

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 '\<SEARCH_EXACT_WORD\>' but this fails.

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions