mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
use ordinal instead of name for sort matching
This commit is contained in:
parent
4f410348ff
commit
78bc319f49
@ -26,7 +26,7 @@ my_sorters.get_substr_matcher = function(opts)
|
|||||||
local substr = sorters:new()
|
local substr = sorters:new()
|
||||||
substr.highlighter = substr_highlighter
|
substr.highlighter = substr_highlighter
|
||||||
substr.scoring_function = function(_, prompt, _, entry)
|
substr.scoring_function = function(_, prompt, _, entry)
|
||||||
local display = entry.name:lower()
|
local display = entry.ordinal:lower()
|
||||||
|
|
||||||
local search_terms = util.split(prompt, "%s")
|
local search_terms = util.split(prompt, "%s")
|
||||||
local matched = 0
|
local matched = 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user