Adjust fuzzy threshold

This commit is contained in:
Gregory Schier
2024-06-10 23:25:57 -07:00
parent 06707ed54c
commit 43ca9a9390

View File

@@ -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;