filemanager icon indicating copy to clipboard operation
filemanager copied to clipboard

Implement "Search Files"

Open amourzenkov-sc opened this issue 7 years ago • 3 comments

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.

amourzenkov-sc avatar Jan 30 '18 07:01 amourzenkov-sc

Request query params proposal:

  • itemNameSubstring=<string> - file/dir search string, no default.
  • itemNameCaseSensitive=[true|false] - false by default.
  • itemType=[file|dir] - default is itemType=file&itemType=dir.
  • fileContentSubstring=<string> - file content search string, no default.
  • recursive=[true|false] - true by default.

kvolkovich-sc avatar Jan 30 '18 08:01 kvolkovich-sc

Implementation of fileContentSubstring is postponed due to its complexity:

  1. Node.js streams for any file size handling.
  2. Mechanism of differentiation between binary and text files.
  3. Utility for reading a content of pdf/doc/odc/... files.

amourzenkov-sc avatar Feb 13 '18 07:02 amourzenkov-sc

Sub-issues:

  • #185
  • #186 (depends on #185 completion)
  • #187
  • #188 (depends on #187 completion)
  • #230
  • #237 (depends on #230 completion)

amourzenkov-sc avatar Mar 13 '18 10:03 amourzenkov-sc