feat(explorer): add file search with filtering and highlighting #71

Merged
Christoph merged 1 commit from prerelease into main 2026-11-05 21:34:20 +00:00
Owner

Add a search bar to the Explorer panel to filter repository files by a
case-insensitive substring. Matching files are shown along with every folder
on the path to them; a folder whose own path matches keeps its whole subtree.
Matches in file names are highlighted, and a match count is shown. Pressing
Escape or the clear button clears the query. While searching, folder toggle
buttons are disabled and folders that lead to matches are shown open.

Implementation notes:

  • New helper functions: filterExplorerTree, flattenAll, highlightSegments.
  • New reactive state: searchText/searchQuery/searchActive/filteredTree/matchCount.
  • Auto-focuses the search input when available and adds component styles.
  • Adds localization keys for English and German (search placeholder, clear,
    empty message, matches).
Add a search bar to the Explorer panel to filter repository files by a case-insensitive substring. Matching files are shown along with every folder on the path to them; a folder whose own path matches keeps its whole subtree. Matches in file names are highlighted, and a match count is shown. Pressing Escape or the clear button clears the query. While searching, folder toggle buttons are disabled and folders that lead to matches are shown open. Implementation notes: - New helper functions: filterExplorerTree, flattenAll, highlightSegments. - New reactive state: searchText/searchQuery/searchActive/filteredTree/matchCount. - Auto-focuses the search input when available and adds component styles. - Adds localization keys for English and German (search placeholder, clear, empty message, matches).
Add a search bar to the Explorer panel to filter repository files by a
case-insensitive substring. Matching files are shown along with every folder
on the path to them; a folder whose own path matches keeps its whole subtree.
Matches in file names are highlighted, and a match count is shown. Pressing
Escape or the clear button clears the query. While searching, folder toggle
buttons are disabled and folders that lead to matches are shown open.

Implementation notes:
- New helper functions: filterExplorerTree, flattenAll, highlightSegments.
- New reactive state: searchText/searchQuery/searchActive/filteredTree/matchCount.
- Auto-focuses the search input when available and adds component styles.
- Adds localization keys for English and German (search placeholder, clear,
  empty message, matches).
Sign in to join this conversation.
No description provided.