Repository navigation
Commit f459311
committed
Refactor search files feature into modular search modes and utility functions
- [Fragment] in search mode of search_files_by_term is never used
- each search mode should be handled by a separte file
- extract flows from utils to `apps/editor/src/features/search-files/search-modes`. We also prefer 'search mode' suffix than 'flow'
- refactor out `apps/editor/src/features/search-files/utils/search-files-by-term.ts`
- inline `apps/editor/src/features/search-files/utils/get-keyword-regexes.ts`
- give better name to file/exported method `apps/editor/src/features/search-files/utils/fetch-relevant-files-from-api.ts`
- place `apps/editor/src/features/search-files/actions/search-files.ts` in `apps/editor/src/features/search-files`
- in a multi-root folder workspaces, results should be grouped by the root folder name by using separators
- in multi-root folder workspaces, in search results we group items by workspace. The issue is that these groups are in a wrong order.
- we never search in any 'other' workspace folder than those in the workspace1 parent 58edb53 commit f459311
15 files changed
Lines changed: 973 additions & 623 deletions
File tree
- apps/editor/src/features/search-files
- actions
- search-modes
- utils
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments