mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
ignore search case
This commit is contained in:
parent
78a08200ca
commit
deece31726
@ -23,10 +23,11 @@ my_sorters.get_substr_matcher = function(opts)
|
|||||||
substr.highlighter = substr_highlighter
|
substr.highlighter = substr_highlighter
|
||||||
substr.scoring_function = function(_, prompt, _, entry)
|
substr.scoring_function = function(_, prompt, _, entry)
|
||||||
-- local base_score = frecency:score(prompt, entry)
|
-- local base_score = frecency:score(prompt, entry)
|
||||||
|
local display = entry.name:lower()
|
||||||
local base_score
|
local base_score
|
||||||
|
|
||||||
-- TODO: split the prompt into components
|
-- TODO: split the prompt into components
|
||||||
base_score = entry.name:find(prompt, 1, true) and 1 or -1
|
base_score = display:find(prompt, 1, true) and 1 or -1
|
||||||
|
|
||||||
if base_score == -1 then
|
if base_score == -1 then
|
||||||
return -1
|
return -1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user