Replacing fuzzy search with fuse.js

This commit is contained in:
Zef Hemel
2023-07-25 17:33:07 +02:00
parent 41fb82b9d2
commit 6510f06e0e
5 changed files with 75 additions and 7 deletions
+1 -5
View File
@@ -9,11 +9,7 @@ import { FilterOption } from "../types.ts";
import { FunctionalComponent } from "https://esm.sh/v99/preact@10.11.3/src/index";
import { FeatherProps } from "https://esm.sh/v99/preact-feather@4.2.1/dist/types";
import { MiniEditor } from "./mini_editor.tsx";
import { fuzzySearchAndSort } from "./fuzzy_search.ts";
type FilterResult = FilterOption & {
result?: any;
};
import { fuzzySearchAndSort } from "./fuse_search.ts";
export function FilterList({
placeholder,