helix-editor / nucleo

A fast and convenient fuzzy matcher library for rust
Mozilla Public License 2.0
896 stars 28 forks source link

Ability to customize multipattern #48

Open Exidex opened 5 months ago

Exidex commented 5 months ago

I am trying to use this crate for fuzzy matching in a context of a search bar of the application launcher and for me it is not desirable to let user to have an ability to customize matching behavior and instead I want to always have the same behavior. With current implementation of MultiPattern it doesn't seem to be possible to specify the patterns manually. The only way of modify MultiPattern seems to be via reparse which is hardcoded to Atom::parse. In other words it doesn't seem to be possible to use all the customizability described in top level docs of nucleo-matcher crate in the high level API unless I am missing something.