coder::search
Search file contents and/or paths under base_path. Supports literal or regex queries with include/exclude globs; non-accessible files are excluded from both content and path results.
- exclude_globsstring[]
Glob patterns (relative to `base_path`) that exclude matching paths.
- ignore_caseboolean
- include_globsstring[]
Glob patterns (relative to `base_path`) that paths must match to be considered. Empty = include everything.
- max_line_bytesinteger· uint32min 0
Bytes per line to consider when scanning content; longer lines are truncated for the match snippet.
- max_matchesinteger· uint32min 0
Optional explicit cap. Falls back to config when unset.
- pathstring
Folder, relative to `base_path`, scoping the walk. Defaults to `.` (the base itself). Globs and result `path`s remain anchored at `base_path` regardless of this value.
- querystringrequired
Pattern to search for. Treated as a regex when `regex: true`, otherwise as a literal substring.
- regexboolean
- search_contentboolean
Search file contents (default true).
- search_pathsboolean
Search file paths (default true).
- content_matchesobject[]required
- columninteger· uint32requiredmin 0
- lineinteger· uint32requiredmin 0
- pathstringrequired
- textstringrequired
Matched line; truncated to `max_line_bytes` and never spans newlines.
- path_matchesobject[]required
- pathstringrequired
- truncatedbooleanrequired
True if either match list was cut off at the configured cap.