We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cbc52f commit ec5bf35Copy full SHA for ec5bf35
js/searchbar/customBangs.js
@@ -2,6 +2,7 @@
2
3
const { ipcRenderer } = require('electron')
4
const fs = require('fs')
5
+const quickScore = require('quick-score').quickScore
6
7
const bangsPlugin = require('searchbar/bangsPlugin.js')
8
@@ -84,7 +85,7 @@ function searchAndSortTasks (text) {
84
85
const task = t.task
86
const taskName = (task.name ? task.name : l('defaultTaskName').replace('%n', tasks.getIndex(task.id) + 1)).toLowerCase()
87
const exactMatch = taskName.indexOf(searchText) !== -1
- const fuzzyTitleScore = taskName.score(searchText, 0.5)
88
+ const fuzzyTitleScore = quickScore(taskName, searchText)
89
90
return (exactMatch || fuzzyTitleScore > 0.4)
91
})
0 commit comments