mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-20 00:23:58 +01:00
Adjust fuzzy threshold
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user