mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
feat: add basic syncing (untested)
This commit is contained in:
@@ -117,9 +117,9 @@ export default class Notes {
|
||||
|
||||
filter(query) {
|
||||
if (!query) return [];
|
||||
return tfun.filter(v => fuzzysearch(query, v.title + " " + v.content.text))(
|
||||
this.all
|
||||
);
|
||||
let queryFn = v => fuzzysearch(query, v.title + " " + v.content.text);
|
||||
if (query instanceof Function) queryFn = query;
|
||||
return tfun.filter(queryFn)(this.all);
|
||||
}
|
||||
|
||||
group(by, special = false) {
|
||||
|
||||
Reference in New Issue
Block a user