company-mode / company-mode

Modular in-buffer completion framework for Emacs
http://company-mode.github.io/
GNU General Public License v3.0
2.19k stars 227 forks source link

Transformers for candidates before they are combined #864

Open Yevgnen opened 5 years ago

Yevgnen commented 5 years ago

If the group contains keyword ‘:separate’, the candidates that come from different backends are sorted separately in the combined list.

Hi! It seems that currently transformers are always applied to the final list of candidates. Can transformers (e.g. company-sort-by-statistics)be applied to candidates before they are combined when using :separate keyword?

Thanks.

dgutov commented 11 months ago

I guess that would need to be another var, which would be applied inside company--preprocess-candidates.