https://github.com/PythonNut/company-flx
:city_sunset: Flx fuzzy matching for company
https://github.com/PythonNut/company-flx
Last synced: 5 months ago
JSON representation
:city_sunset: Flx fuzzy matching for company
- Host: GitHub
- URL: https://github.com/PythonNut/company-flx
- Owner: PythonNut
- License: gpl-3.0
- Created: 2015-10-15T15:26:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-16T21:10:33.000Z (over 3 years ago)
- Last Synced: 2024-10-27T23:57:52.424Z (6 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 101 KB
- Stars: 85
- Watchers: 6
- Forks: 6
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
company-flx
===========[](http://melpa.org/#/company-flx)

This package adds fuzzy matching to company, powered by the sophisticated sorting heuristics in flx.
Usage
=====To install, either clone this package directly, or execute M-x `package-install` RET `company-flx` RET.
After the package is installed, you can enable `company-flx` by adding the following to your init file:
```emacs
(with-eval-after-load 'company
(company-flx-mode +1))
```Use the variable `company-flx-limit` to control the number of candidates that are scored by `flx`. `flx` can be slow, and the default is set rather high, so if you experience lag, consider lowering the limit.
Some History
============Crazy stuff simmers in my [`emacs-config`](https://github.com/PythonNut/emacs-config), and every once and a while, it's worth sharing. [This was no exception](https://github.com/PythonNut/emacs-config/blob/f1df3ac16410bfa72d88855325bd6c2de56f587b/modules/config-helm.el#L33#L89). It's been patiently evolving in my config for the better part of a year, and I think it's useful enough to benefit other people.
Also of interest is [company-mode/**company-mode** #47](https://github.com/company-mode/company-mode/issues/47).
Caveats
=======This only works with the `company-capf` backend. Most sources use this backend, with the exception of the more advanced sources. Most backends should be re-written in terms of `completion-at-point-functions` eventually, although it's going to take a while.
The most important source that doesn't work is `company-dabbrev`.