Skip to content

Commit 415cb02

Browse files
committed
docs: clarify folder mention behavior and add important interactions
1 parent ce900b4 commit 415cb02

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

docs/basic-usage/context-mentions.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Context mentions are a powerful way to provide Roo Code with specific informatio
4444
|------------|---------|
4545
| **Format** | `@/path/to/folder` (no trailing slash) |
4646
| **Provides** | Complete contents of all files within the directory |
47-
| **Includes** | Contents of all files directly within the folder (not recursive) |
47+
| **Includes** | Contents of non-binary text files directly within the folder (not recursive) |
4848
| **Best for** | Providing context from multiple files in a directory |
4949
| **Tip** | Be mindful of context window limits when mentioning large directories |
5050

@@ -110,13 +110,16 @@ The dropdown automatically suggests:
110110
- Recent git commits
111111
- Special keywords (`problems`, `terminal`, `git-changes`)
112112

113-
## Best Practices
113+
The dropdown automatically filters out common directories like `node_modules`, `.git`, `dist`, and `out` to reduce noise, even though their content could be included if manually typed.
114114

115-
| Practice | Description |
115+
## Important Behaviors
116+
117+
### Ignore File Interactions
118+
119+
| Behavior | Description |
116120
|----------|-------------|
117-
| **Use specific paths** | Reference exact files rather than describing them |
118-
| **Use relative paths** | Always start from workspace root: `@/src/file.ts` not `@C:/Projects/src/file.ts` |
119-
| **Verify references** | Ensure paths and commit hashes are correct |
120-
| **Click mentions** | Click mentions in chat history to open files or view content |
121-
| **Eliminate copy-pasting** | Use mentions instead of manually copying code or errors |
122-
| **Combine mentions** | "Fix @problems in @/src/component.ts using the pattern from commit @a1b2c3d" |
121+
| **`.rooignore` bypass** | File and folder `@mentions` bypass `.rooignore` checks when fetching content for context. Content from ignored files will be included if directly mentioned. |
122+
| **`.gitignore` bypass** | Similarly, file and folder `@mentions` do not respect `.gitignore` rules when fetching content. |
123+
| **Git command respect** | Git-related mentions (`@git-changes`, `@commit-hash`) do respect `.gitignore` since they rely on Git commands. |
124+
125+

0 commit comments

Comments
 (0)