FileSearch: Allow searching with wildcards in the filename
With this when searching explicitly for the property "filename", the value can except some standard glob terms such as "*", "." and "?". These globs can appear anywhere. This operation is NOT cheap, and it is implemented by running a regular expression over each filename in the database. It should only be used as a last resort. This does not solve this bug as this is only activated when explicitly searching for the filename. We still need to hook this up to the frontend for the user to be able to choose "search in filename". This is done in dolphin, but it might be nice to do it in other places such as "krunner" as well. CCBUG: 333037
Showing
- src/file/search/CMakeLists.txt 4 additions, 1 deletionsrc/file/search/CMakeLists.txt
- src/file/search/autotest/CMakeLists.txt 1 addition, 0 deletionssrc/file/search/autotest/CMakeLists.txt
- src/file/search/autotest/filesearchstoretest.cpp 73 additions, 0 deletionssrc/file/search/autotest/filesearchstoretest.cpp
- src/file/search/autotest/filesearchstoretest.h 2 additions, 0 deletionssrc/file/search/autotest/filesearchstoretest.h
- src/file/search/filesearchstore.cpp 6 additions, 0 deletionssrc/file/search/filesearchstore.cpp
- src/file/search/wildcardpostingsource.cpp 124 additions, 0 deletionssrc/file/search/wildcardpostingsource.cpp
- src/file/search/wildcardpostingsource.h 64 additions, 0 deletionssrc/file/search/wildcardpostingsource.h
Loading
Please register or sign in to comment