lewang/flx

Add ability to disable matching algorithm

Opened this issue · 3 comments

There are some cases (like when switching buffers) when I want to use ido's normal filtering mechanism (just filter the choices in order). However, even in those cases I would like to use flx's highlighting, so I don't want to disable flx altogether.

Is there a way to configure the matching algorithm on a per-use-case basis? Something like:

(setq flx-override-matching-algorithm
    '((ido-switch-buffer . nil))

I'm not sure what you mean? flx highlights are designed to show what characters are contributing to the match score. These highlights would be confusing if flx wasn't also sorting.

Would the ability to disable flx completely for certain command help you?

But they're contributing to the score because I typed them. Disabling it entirely for some commands would be helpful if the matching algorithm alone can't be disabled..

I mean the highlighting only serves to explain why the sort order is as it is. Highlighting without sorting would be confusing. I will implement an exclusion list though.