Fuz.el – Fast and precise fuzzy match scoring/matching utils for Emacs.
fuz.el provides some fuzzy match scoring/matching functions for Emacs,
they are powered by Rust so it’s fast enough.
- It’s powered by Rust, so it can be much more faster than Elisp implementation
- It use a better subsequence alignment algorithm (O(m*n) time complexity)
The core part of
fuz.el is written in Rust, provided as a dynamic module,
so you need an Emacs at least 25.1, compiled with dynamic module support.
- Setup Rust compile toolchain, you can check here for some information.
- And you also need LLVM.
- Clone the repository and put it under your Emacs’s
fuz-build-and-load-dymodto build dynamic module.
Add this snippet to your
.emacs.d to make compilation automatically
(require 'fuz) (unless (require 'fuz-core nil t) (fuz-build-and-load-dymod))
Using with completion frameworks
fuz.el can help you enhance your helm fuzzy searching quality and speed
with simple setup.
(with-eval-after-load 'helm (require 'helm-fuz) (helm-fuz-mode))
Please see https://github.com/Silex/ivy-fuz.el.
Using fuz’s score/match function in your Elisp
Add documentation here
Add a benchmark here
如果你觉得这个插件可以帮到你, 欢迎使用爱发电支持我 :)
If you like fuz, you can buy a cup of coffee for me :)