From a058064f1f907e5db2e2424c49ea890083fcdc9c Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Mon, 10 Jun 2024 23:25:57 -0700 Subject: [PATCH] Adjust fuzzy threshold --- src-web/components/CommandPalette.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-web/components/CommandPalette.tsx b/src-web/components/CommandPalette.tsx index 1c27de96..41888852 100644 --- a/src-web/components/CommandPalette.tsx +++ b/src-web/components/CommandPalette.tsx @@ -305,7 +305,7 @@ export function CommandPalette({ onClose }: { onClose: () => void }) { const { filteredGroups, filteredAllItems } = useMemo(() => { const result = command ? search(command, allItems, { - threshold: 0.4, + threshold: 0.5, keySelector: (v) => ('searchText' in v ? v.searchText : v.label), }) : allItems;