#292 - Lower fuzzy search threshold

This commit is contained in:
Elio Struyf
2022-03-21 12:58:20 +01:00
parent 1d7ff4fbf7
commit 9d70521ccf
4 changed files with 32 additions and 10042 deletions
+1
View File
@@ -21,6 +21,7 @@
- [#283](https://github.com/estruyf/vscode-front-matter/issues/283): Added published date sorting options for the content dashboard
- [#286](https://github.com/estruyf/vscode-front-matter/issues/286): Refresh button added for the content page
- [#287](https://github.com/estruyf/vscode-front-matter/issues/287): Show folder name on `index.md` files for recently modified files
- [#292](https://github.com/estruyf/vscode-front-matter/issues/292): Lower fuzzy search threshold for the content dashboard
### 🐞 Fixes
+27 -10040
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1684,7 +1684,7 @@
"css-loader": "5.2.7",
"date-fns": "2.23.0",
"downshift": "6.0.6",
"fuse.js": "6.4.6",
"fuse.js": "6.5.3",
"glob": "7.1.6",
"gray-matter": "4.0.2",
"html-loader": "1.3.2",
+3 -1
View File
@@ -13,7 +13,9 @@ const fuseOptions: Fuse.IFuseOptions<Page> = {
{ name: 'title', weight: 0.8 },
{ name: 'slug', weight: 0.8 },
{ name: 'description', weight: 0.5 }
]
],
includeScore: true,
threshold: 0.1
};
export default function usePages(pages: Page[]) {