Skip to content
Draft
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
4 changes: 4 additions & 0 deletions Claudable/ViewModels/FilterViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ public FilterViewModel()
Filters = new ObservableCollection<Filter>();
AddFilterCommand = new RelayCommand(AddFilter, CanAddFilter);
RemoveFilterCommand = new RelayCommand<Filter>(RemoveFilter);

// Add default filters for common folders to ignore
Filters.Add(new Filter(".*")); // Special filter for all dot folders
Filters.Add(new Filter("node_modules"));
}

private bool CanAddFilter()
Expand Down
7 changes: 7 additions & 0 deletions Claudable/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ private bool UpdateProjectStructureRecursive(ProjectFolder folder)

private bool ShouldExcludeEntry(Filter filter, string filePath)
{
// Special case for dot folders filter
if (filter.Value == ".*")
{
string fileName = Path.GetFileName(filePath);
return fileName.StartsWith(".");
}

var filterValue = filter.ShouldPrependProjectFolder
? Path.Combine(RootProjectFolder.FullPath, filter.Value)
: filter.Value;
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ The source code of Claudable is open and concise, allowing for easy review. If c
- Real-time file system monitoring
- Context menu integration with Windows Explorer
- Drag-and-drop support
- Custom file filtering system
- Custom file filtering system with default filters for:
- Hidden folders (starting with a dot)
- Common dependency folders (node_modules)

### 3. Artifact Synchronization
- Track local files as Claude artifacts
Expand Down Expand Up @@ -155,8 +157,11 @@ The source code of Claudable is open and concise, allowing for easy review. If c
### Custom Filters
1. Go to Filter Settings tab
2. Enter file/folder patterns to exclude
3. Filters apply across all view modes
4. Settings persist between sessions
3. Default filters are applied automatically:
- All folders starting with a dot (like .git, .vs, etc.)
- The node_modules folder
4. Filters apply across all view modes
5. Settings persist between sessions

### Working with Artifacts
- Double-click files to view content
Expand Down