Skip to content

Extend lua fzy matcher to allow multiple patterns #3527

@CGamesPlay

Description

@CGamesPlay

Would there be interest in altering the default "lua fzy" matcher? I have made a reasonably straightforward modification to it which allows the only fzf feature that I use: multiple patterns separated by space. View the modification, usage example.

This functionality is useful because it allows adding criteria that matches before the existing criteria. For example, I can type "mymodel" and see that there are far too many results, but then type "mymodel store" to narrow down to "app/stores/MyModel.ts". This isn't possible with the original FZY matcher.

I decided to do this, rather than "just install telescope-fzf-native", because there's no binaries distributed for that project and the compilation process is obnoxious for me, someone who does not have a C toolchain installed. I also never noticed performance problems with the lua fzy matcher, but I did miss this behavior.

Is there any interest in including this behavior in the default distribution? If not, it's easy enough to publish it as a separate plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement to performance, inner workings or existent features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions