File tree Expand file tree Collapse file tree
docs/content.en/docs/release-notes
src-tauri/src/extension/built_in Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Information about release notes of Coco Server is provided here.
1818
1919### 🐛 Bug fix
2020- fix(file search): apply filters before from/size parameters #741
21+ - fix(file search): searching by name&content does not search file name #743
2122
2223### ✈️ Improvements
2324
Original file line number Diff line number Diff line change @@ -235,7 +235,10 @@ impl FileSearchExtensionSearchSource {
235235 args. push ( format ! ( "kMDItemFSName == '*{}*'" , query_string) ) ;
236236 }
237237 SearchBy :: NameAndContents => {
238- args. push ( format ! ( "kMDItemTextContent == '{}'" , query_string) ) ;
238+ args. push ( format ! (
239+ "kMDItemFSName == '*{}*' || kMDItemTextContent == '{}'" ,
240+ query_string, query_string
241+ ) ) ;
239242 }
240243 }
241244
You can’t perform that action at this time.
0 commit comments