Skip to content

Commit acd8065

Browse files
committed
docs: update example for search_files with XML formatting
1 parent 6d31d1d commit acd8065

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/advanced-usage/available-tools/search-files.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,12 @@ Finding all usages of a specific function:
156156
```
157157

158158
Searching for a specific import pattern across the entire project:
159-
```
159+
```xml
160160
<search_files>
161-
161+
<path>.</path>
162+
<regex>import\s+.*\s+from\s+['"]@components/</regex>
163+
</search_files>
164+
```
162165
## Respecting .gitignore
163166

164167
By default, `search_files` respects `.gitignore` patterns in your workspace, including nested `.gitignore` files. This prevents searches in excluded directories like `node_modules/`, `dist/`, or other ignored paths.
@@ -197,7 +200,3 @@ This searches **everything**, including `node_modules/`, build artifacts, and ot
197200
- Investigating ignored configuration files
198201

199202
---
200-
<path>.</path>
201-
<regex>import\s+.*\s+from\s+['"]@components/</regex>
202-
</search_files>
203-
```

0 commit comments

Comments
 (0)