Skip to content

Why use get_generic_fuzzy_sorter() instead of get_fzy_sorter() for string lists? #50

@Chayanon-Ninyawee

Description

@Chayanon-Ninyawee

I noticed that in the Telescope extension implementation, it;s using:

sorter = sorters.get_generic_fuzzy_sorter(),

But this doesn't work well for short or partial queries. For example, I have a host named gfm-rpi5, typing just 5 won't match it using the default generic sorter. However, if I change the sorter to:

sorter = sorters.get_fzy_sorter(),

then it work nicely.

The sorter is defined here: https://github.com/nosduco/remote-sshfs.nvim/blob/main/lua/telescope/_extensions/remote-sshfs.lua

Are there any particular reason why it's using sorters.get_generic_fuzzy_sorter() and not sorters.get_fzy_sorter()?
If no then do you want me to create a PR to change it to sorters.get_fzy_sorter()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions