katspaugh / ido-at-point

ido-at-point
51 stars 4 forks source link

Provide an option for fuzzy matching: ido-at-point-fuzzy #4

Closed gempesaw closed 10 years ago

gempesaw commented 10 years ago

For example, this would suggest "ido-at-point-complete" for the query "iapc". This is similar to the functionality that flx-ido provides where you can access a function quickly via its abbreviation.

The use of the fuzzy matching depends on ido-at-point-fuzzy; the functionality of the package won't change unless the user changes ido-at-point-fuzzy.

katspaugh commented 10 years ago

Thanks, we missed this feature!

gempesaw commented 10 years ago

Thanks for merging it in! I'm not sure if mapatoms is really the quickest way to resolve that all-completions step, but I couldn't perceive a speed difference when using the fuzzy matching, so I went ahead with it. :)

katspaugh commented 10 years ago

Hi Daniel,

It appears, split-string has an optional param to remove the empty string paddings.

(split-string STRING &optional SEPARATORS OMIT-NULLS)

If OMIT-NULLS is t, zero-length substrings are omitted from the list (so that for the default value of SEPARATORS leading and trailing whitespace are effectively trimmed). If nil, all zero-length substrings are retained, which correctly parses CSV format, for example.

By the way, since IDO already has ido-enable-flex-match, would you mind if we used it instead of our own option (ido-at-point-fuzzy)?