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 8eba686 commit c01feb2Copy full SHA for c01feb2
Source/Seal.spoon/seal_filesearch.lua
@@ -128,7 +128,9 @@ end
128
function SpotlightFileSearch:buildSpotlightQuery()
129
local queryWords = hs.fnutils.split(self.query, "%s+")
130
local searchFilters = hs.fnutils.map(queryWords, function(word)
131
- return [[kMDItemFSName like[c] "*]] .. word .. [[*"]]
+ -- [c] means case-insensitive
132
+ -- [d] means don't care about accents (diacritic)
133
+ return [[kMDItemFSName like[cd] "*]] .. word .. [[*"]]
134
end)
135
local spotlightQuery = table.concat(searchFilters, [[ && ]])
136
return spotlightQuery
0 commit comments