Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion documentation/docs/guides/file-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ To close the search box without selecting a file, press `Esc` or click in the ch
- **Fuzzy matching**: Intelligently matches partial text and prioritizes matches at word boundaries
- **Highlighted results**: Shows matched characters highlighted in the search results
- **Performance optimized**: Scans up to 5 directory levels deep with intelligent filtering
- **Auto-filtering**: Automatically excludes common directories like `.git`, `node_modules`, `__pycache__`, `.vscode`, `.idea`, `target`, `dist`, and `build`
- **Auto-filtering**: Automatically excludes common directories like `.git`, `node_modules`, `__pycache__`, `target`, `dist`, and `build`
- **Hidden folder support**: Includes important configuration directories like `.github`, `.vscode`, `.idea`, `.config`, and other CI/CD folders (`.circleci`, `.gitlab`, `.azure`, `.jenkins`)
- **Cross-platform**: Searches from user directories (`/Users` on macOS, `C:\Users` on Windows, `/home` on Linux)
- **Visual indicators**: Distinguishes between files and directories with clear icons

Expand Down
22 changes: 18 additions & 4 deletions ui/desktop/src/components/MentionPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ const MentionPopover = forwardRef<
'.hg',
'node_modules',
'__pycache__',
'.vscode',
'.idea',
'target',
'dist',
'build',
Expand All @@ -172,6 +170,17 @@ const MentionPopover = forwardRef<
'.Trash',
];

const allowedHiddenDirs = [
'.github',
'.vscode',
'.idea',
'.config',
'.gitlab',
'.circleci',
'.azure',
'.jenkins',
];

// Don't skip as many directories at deeper levels to find more items
const skipDirsAtDepth =
depth > 2 ? ['.git', '.svn', '.hg', 'node_modules', '__pycache__'] : skipDirs;
Expand All @@ -192,8 +201,13 @@ const MentionPopover = forwardRef<
const fullPath = `${dirPath}/${item}`;
const itemRelativePath = relativePath ? `${relativePath}/${item}` : item;

// Skip hidden items and common ignore patterns
if (item.startsWith('.') || skipDirsAtDepth.includes(item)) {
// Skip items in the skip list
if (skipDirsAtDepth.includes(item)) {
continue;
}

// Skip hidden items except for allowed hidden directories
if (item.startsWith('.') && !allowedHiddenDirs.includes(item)) {
continue;
}

Expand Down
Loading