company-anaconda icon indicating copy to clipboard operation
company-anaconda copied to clipboard

Support fuzzy matching

Open PythonNut opened this issue 8 years ago • 6 comments

Followup from https://github.com/PythonNut/company-flx/issues/17.

One way this could be done is to expose some configuration variable company-anaconda-fuzzy-match which would allow tpe to match TypeError. That list of candidates would be handed off to company-flx for sorting.

PythonNut avatar Jan 12 '17 00:01 PythonNut

Hello. Thanks for investigation this issue! Can you provide PR? I can't figure out requirements for patch from this description, sorry.

proofit404 avatar Jan 12 '17 12:01 proofit404

Ah I see. I'd need to PR against jedi as well. Changes to the anaconda RPC server would be required as well.

PythonNut avatar Jan 12 '17 19:01 PythonNut

Can you describe in details what exact changes is necessary to anaconda_mode server and rpc client?

By the way I don't use jedi.el internally if this is what you are speaking about.

proofit404 avatar Jan 12 '17 19:01 proofit404

@proofit404 anaconda-mode would support a configuration flag like anaconda-mode-fuzzy-match, which if non-nil, would pass an extra argument to jedi here, which would tell jedi to produce fuzzy-matched completions.

PythonNut avatar Jan 12 '17 19:01 PythonNut

But this method doesn't have such argument in its signature jedi master

proofit404 avatar Jan 12 '17 20:01 proofit404

@proofit404 indeed.

PythonNut avatar Jan 12 '17 23:01 PythonNut