Adjust fuzzy threshold

This commit is contained in:
Gregory Schier
2024-06-10 23:25:57 -07:00
parent 9f40804532
commit a058064f1f

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;