File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
docs/content.en/docs/release-notes
src-tauri/src/extension/built_in Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Information about release notes of Coco Server is provided here.
18
18
19
19
### 🐛 Bug fix
20
20
- fix(file search): apply filters before from/size parameters #741
21
+ - fix(file search): searching by name&content does not search file name #743
21
22
22
23
### ✈️ Improvements
23
24
Original file line number Diff line number Diff line change @@ -235,7 +235,10 @@ impl FileSearchExtensionSearchSource {
235
235
args. push ( format ! ( "kMDItemFSName == '*{}*'" , query_string) ) ;
236
236
}
237
237
SearchBy :: NameAndContents => {
238
- args. push ( format ! ( "kMDItemTextContent == '{}'" , query_string) ) ;
238
+ args. push ( format ! (
239
+ "kMDItemFSName == '*{}*' || kMDItemTextContent == '{}'" ,
240
+ query_string, query_string
241
+ ) ) ;
239
242
}
240
243
}
241
244
You can’t perform that action at this time.
0 commit comments