Skip to content

Search files in project & replace already installed app#204

Merged
vaibhavpandeyvpz merged 4 commits into
masterfrom
VPZ/search-files
Dec 4, 2025
Merged

Search files in project & replace already installed app#204
vaibhavpandeyvpz merged 4 commits into
masterfrom
VPZ/search-files

Conversation

@vaibhavpandeyvpz

@vaibhavpandeyvpz vaibhavpandeyvpz commented Dec 4, 2025

Copy link
Copy Markdown
Owner

Summary

Adds search functionality to the Files and Projects dock widgets, allowing users to quickly find items by name with real-time filtering.

Changes

  • Added search boxes to Files and Projects dock widgets
  • Implemented QSortFilterProxyModel for Files dock (QListView) with real-time filtering
  • Implemented recursive filtering for Projects dock (QTreeWidget)
  • Search boxes automatically clear when projects are opened/closed
  • Case-insensitive search with clear button support
  • Fixed QSortFilterProxyModel assertion error by properly mapping source indices to proxy indices in handleTabChanged()

Implementation Details

  • Files dock uses QSortFilterProxyModel for efficient filtering of open files
  • Projects dock uses recursive tree item filtering to show/hide matching items
  • Search boxes use QSignalBlocker during model updates to prevent selection errors
  • Fixed index mapping issues in handleTabChanged() to prevent proxy model assertion errors when tabs change
  • Search boxes don't autofocus on startup (main window gets focus instead)

Usage

  • Type in "Search in open files..." box to filter open files by name
  • Type in "Search in project..." box to filter project tree items by name
  • Search is case-insensitive and filters in real-time as you type
  • Search boxes automatically clear when a new project is opened or all tabs are closed

Testing

  • Build and run application
  • Test search functionality in Files dock with multiple open files
  • Test search functionality in Projects dock with project tree items
  • Verify search boxes clear when projects are opened/closed
  • Verify no QSortFilterProxyModel assertion errors occur when switching tabs
  • Verify search boxes don't autofocus on startup but can still be clicked to focus

@vaibhavpandeyvpz vaibhavpandeyvpz merged commit c3cadbc into master Dec 4, 2025
3 checks passed
@vaibhavpandeyvpz vaibhavpandeyvpz deleted the VPZ/search-files branch December 4, 2025 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant