You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/basic-usage/context-mentions.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Context mentions are a powerful way to provide Roo Code with specific informatio
44
44
|------------|---------|
45
45
|**Format**|`@/path/to/folder` (no trailing slash) |
46
46
|**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) |
48
48
|**Best for**| Providing context from multiple files in a directory |
49
49
|**Tip**| Be mindful of context window limits when mentioning large directories |
50
50
@@ -110,13 +110,16 @@ The dropdown automatically suggests:
110
110
- Recent git commits
111
111
- Special keywords (`problems`, `terminal`, `git-changes`)
112
112
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.
114
114
115
-
| Practice | Description |
115
+
## Important Behaviors
116
+
117
+
### Ignore File Interactions
118
+
119
+
| Behavior | Description |
116
120
|----------|-------------|
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. |
0 commit comments