-
Notifications
You must be signed in to change notification settings - Fork 37
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
Highlight current candidate #22
Comments
|
Nope, it won't work. Look at how flx fits into ido: (defadvice ido-set-matches-1 (around flx-ido-set-matches-1 activate)
"Choose between the regular ido-set-matches-1 and flx-ido-match"
(if flx-ido-mode
(setq ad-return-value (flx-ido-match ido-text (ad-get-arg 0)))
ad-do-it)) Now, ido writes text properties in Currently, if you enable ido faces along with flx faces, what will happen is exactly what I described: the ido faces will overwrite any text properties set by flx. Do you see why my approach in #36 does not suffer from this deficiency? |
Yep, I did some digging into the code as well and don't think we can use directly At any rate it stands to reason that ido-flx should play well with the default ido faces and not require custom code for all of them (as in #36). |
Maybe patch |
Overriding |
Patching sounds good, but I'd prefer if it were done in Emacs trunk. The current candidate highlighting is not an essential feature anyway, and the users of older Emacs should be able to live without it. |
@dgutov The sigle-match and the subdir faces are also affected. While the faces are non-essential, indeed, I think we should start by patching ido locally in ido-flx and when we're happy with the results we should submit them upstream. |
Any update on this ? |
I think that
flx
should use some special face for the current candidate (although it's always the first one) to make it visually more apparent that it's the one selected. The matched characters in it should also be highlighted of course.Basically I'm suggesting that we combine the standard ido face for the current candidate with the flx face for the matched characters in a candidate. I guess a face overlay would do the trick?
The text was updated successfully, but these errors were encountered: