Closed thornomad closed 3 years ago
I tried to explain this exactly in this readme section: https://github.com/nvim-telescope/telescope-fzf-native.nvim#disclaimer
All your results have the same result score. (I tested this in fzf)
agree
and type.
will be handled individually and then added together. Thats how space works. argree
returns 128 for all results and the same applies for type.
(resulting to 256 for all). All i do is calculate the scores and return them to telescope. If they now have all the same result it basis it of of the inital table and that one comes from the file system. You can see this in the sorting after the filename. p
comes before r
before s
before t
There is not much i can do to prevent this. Fzf just fills the list differently than telescope, append at the end if score[i] == score[i-1]
. To fix this issue we would need some big changes in telescope core.
Another prompt input would be agreetype.
which should return app/graphql/types/agreement_type.rb
as highest score because it has the lowest difference between e
and t
Thanks for the detailed reply. I had read that disclaimer but was hoping maybe there was some kind of setting I was missing that would allow me to affect the sort.
Another prompt input would be
agreetype.
which should returnapp/graphql/types/agreement_type.rb
as highest score because it has the lowest difference betweene
andt
That tip about not using the space is really helpful. I will have to train my brain to give that a whirl think spaceless. Appreciate it.
Hi there ! Thanks so much for this ! Am trying to get my result sort to be the same between fzf.vim and telescope. If I search for a file by inputting
agree type.
I am used to seeing these results (with my target file on top). Here is example from fzf.vim and from telescopefzf.vim
telescope
current settings
Any help is greatly appreciated in advance! Thank you!