lewang / flx

Fuzzy matching for Emacs ... a la Sublime Text.
GNU General Public License v3.0
518 stars 37 forks source link

Surprising preference given to abbreviation match over an exact prefix #91

Closed cubranic closed 7 years ago

cubranic commented 8 years ago

With flx-ido active, I try to open a file with ido-find-file and start typing "doc". Of the two possible matches in the current directory, "dh-ocr" and "Documents", "dh-ocr" is matched first. Shouldn't matching the prefix be given preference here?

lewang commented 7 years ago

Continuous matches score high, but abbreviation matches also score high. That's the trade off in deciding to accomodate both. Enter more characters to boost the match you have in mind.