Filter company candidates by type? reddit / emacs ---------------------------------------------------------------------- desgreech · 2022-03-23 07:04 Is there a way to interactively choose which kind (variable, method, etc.) of candidates I'm seeing when autocompleting with company? Seems like it would be useful for quickly narrowing the possible candidates. ---------------------------------------------------------------------- sollidsnake · 2022-03-23 12:01 You can press `C-s [text to filter]` to search through given candidates. I'm not sure if company has that binding by default, if no, you could do `(define-key company-active-map "\C-s" #'company- filter-candidates)`. ---------------------------------------------------------------------- desgreech · 2022-03-26 13:23 I'm aware of that function, but it seems that it doesn't filter the semantic type of the candidate. For example, with the following candidates: foo (Function) bar (Class) foobar (Class) How do I filter them out so that I can only see `Class` candidates?