Open NGPONG opened 4 years ago
What command do you mean? Leaderf line
?
Yes, it sorts the result according to the fuzzy matching but not line number.
No fuzzy matching sort is the sort by line, i.e., just filter the result. Is it what you expect?
Thank you for your response, and I'm sorry it's taken so long to respond. I have noticed the regx pattern you are talking about, please forgive me for neglecting to include this feature.
我很抱歉重新打开了这个问题,我发现了我遗漏了一点,即: 在 regx 模式下的匹配结果,是否能依据当前光标所在行号开始进行向下排序
我很抱歉重新打开了这个问题,我发现了我遗漏了一点,即: 在 regx 模式下的匹配结果,是否能依据当前光标所在行号开始进行向下排序
例如,aaa 匹配串分别在 100 行和 500 行各有一例,假设当前光标所在行为 490 上,那么匹配结果应当把 500 行的结果放在首位,100 行次之
本身就是以行号排序的,只不过是按照从小到大的顺序。
本身就是以行号排序的,只不过是按照从小到大的顺序。
感谢您的回复
是的,现在这款插件其实已经非常的完美了,如果硬要在鸡蛋里头挑骨头,还是有一点小小的建议,如果这个排序次序,能够以当前光标所在行为基准进行向下排序那就更好了
不太好做。
let g:Lf_PreviewResult = { \ 'Rg': 1, \ 'Line': 1 } let g:Lf_HideHelp = 1 let g:Lf_UseCache = 0 let g:Lf_UseVersionControlTool = 0 let g:Lf_IgnoreCurrentBufferName = 1 let g:Lf_ReverseOrder = 0 let g:Lf_CommandMap = {'': [''], '': ['']}
let g:Lf_WindowHeight = 0.2
let g:Lf_PreviewHorizontalPosition = 'right'
let g:Lf_DefaultMode = 'Fuzzy'
"let g:Lf_EmptyQuery = 0
"let g:Lf_ReverseOrder = 1
function! Find_current()
let g:Lf_PreviewInPopup = 0
execute 'Leaderf rg --bottom --current-buffer'
endfunction
function! Find_file()
let g:Lf_PreviewInPopup = 1
execute 'Leaderf rg --bottom'
endfunction
let g:LfNormalMap = {
\ "": [
\ ["", "p"]
\ ]
}
" }