Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to disable matching algorithm #50

Open
mgalgs opened this issue Nov 13, 2013 · 3 comments
Open

Add ability to disable matching algorithm #50

mgalgs opened this issue Nov 13, 2013 · 3 comments

Comments

@mgalgs
Copy link

mgalgs commented Nov 13, 2013

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))
@lewang
Copy link
Owner

lewang commented Apr 16, 2014

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?

@mgalgs
Copy link
Author

mgalgs commented Apr 16, 2014

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..

@lewang
Copy link
Owner

lewang commented Apr 16, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants