Current behaviour
The exclude parameter matches directory names by basename. There is no way
to exclude based on path structure.
In practice, every dot directory (.git, .claude, .turbo, etc.) must be
listed individually. A single rule covering all dot directories is not
expressible. If I forget one, its contents appear alongside source files:
.git object files, .claude session logs, mixed in where they do not belong.
Desired behaviour
I can express exclusions based on path structure, and common directories are
excluded by default without listing them individually.
Notes
Specifically about exclude semantics and defaults. The pattern field
already accepts regex and is not affected.
Current behaviour
The
excludeparameter matches directory names by basename. There is no wayto exclude based on path structure.
In practice, every dot directory (
.git,.claude,.turbo, etc.) must belisted individually. A single rule covering all dot directories is not
expressible. If I forget one, its contents appear alongside source files:
.gitobject files,.claudesession logs, mixed in where they do not belong.Desired behaviour
I can express exclusions based on path structure, and common directories are
excluded by default without listing them individually.
Notes
Specifically about
excludesemantics and defaults. Thepatternfieldalready accepts regex and is not affected.