8

Is there a way of asking company to sort the results it shows based on past choices? The custom variable company-transformers controls this behaviour. The only built-in choices are company-sort-by-occurrence and company-sort-by-backend-importance. Is there an existing method, possibly from another package, that I could use to do adaptive filtering of these results?

2 Answers 2

7

company-statistics should solve your problem.

3

Besides company-statics, you can also write functions to do the sorting yourself, and then you add the function to the variable company-transformers. I did this for sorting python private methods last, see: How to make private python methods the last company-mode choices?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.