mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 00:01:22 +02:00
Adjust fuzzy threshold
This commit is contained in:
@@ -305,7 +305,7 @@ export function CommandPalette({ onClose }: { onClose: () => void }) {
|
|||||||
const { filteredGroups, filteredAllItems } = useMemo(() => {
|
const { filteredGroups, filteredAllItems } = useMemo(() => {
|
||||||
const result = command
|
const result = command
|
||||||
? search(command, allItems, {
|
? search(command, allItems, {
|
||||||
threshold: 0.4,
|
threshold: 0.5,
|
||||||
keySelector: (v) => ('searchText' in v ? v.searchText : v.label),
|
keySelector: (v) => ('searchText' in v ? v.searchText : v.label),
|
||||||
})
|
})
|
||||||
: allItems;
|
: allItems;
|
||||||
|
|||||||
Reference in New Issue
Block a user