Skip to content

Exclude path from search #146

@ubzor

Description

@ubzor

Hi! Is there any way to exclude specific path from search query?

I have a project with i18n/locales folder, and when I search for something, this files are 90% of what I see in results, because they are concentrated keywords. I could remove this files from index, however sometimes i need to search throughout them.

With --path parameter I could search in locales files only:
ccc search --path 'i18n/locales/**' 'something'

But is there a way I could exclude 'em from the search? This is not working:
ccc search --path '!i18n/locales/**' 'something'

I also tried to combine paths like that, it could possibly help, but it's not working too:
ccc search --path 'server/**:components/**:pages/**' 'something'

Will be glad for any help.

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