filemanager
filemanager copied to clipboard
Implement "Search Files"
Current behaviour does not allow files/dirs searching.
-
Search for files according to file/dir name:
- [x] File/dir name containing a given substring.
- [x] Either recursive or not-recursive.
- [x] Either case-sensitive or case-insensitive.
- [x] Either dirs, or files, or both files and dirs.
- [ ] Either skip archives or search in archives.
- [ ] Allow matching with patterns the shell uses.
- [ ] Interpret the substing as regular expression.
-
Search for files according to file content:
- [x] File content having a given substring.
- [ ] Either whole words only or any substring.
- [ ] Either case-sensitive or case-insensitive.
- [ ] Interpret the substing as regular expression.
Request query params proposal:
itemNameSubstring=<string>- file/dir search string, no default.itemNameCaseSensitive=[true|false]- false by default.itemType=[file|dir]- default isitemType=file&itemType=dir.fileContentSubstring=<string>- file content search string, no default.recursive=[true|false]- true by default.
Implementation of fileContentSubstring is postponed due to its complexity:
- Node.js streams for any file size handling.
- Mechanism of differentiation between binary and text files.
- Utility for reading a content of pdf/doc/odc/... files.
Sub-issues:
- #185
- #186 (depends on #185 completion)
- #187
- #188 (depends on #187 completion)
- #230
- #237 (depends on #230 completion)