minad / corfu

:desert_island: corfu.el - COmpletion in Region FUnction
GNU General Public License v3.0
1.15k stars 43 forks source link

In-buffer completion for normal text/word with ispell + corfu + orderless. #323

Closed hongyi-zhao closed 1 year ago

hongyi-zhao commented 1 year ago

I've made an exhaustive word list for ispell. Now, I would like to know if it's possible to use this word list in ispell and working with corfu and orderless.

The main consideration I consider is: For ordinary words, orderless will improve efficiency, but it will also return a lot of candidates, which also means an increase in latency and a decrease in efficiency. So what kind of matching/searching pattern should be used?

See here for some related discussions.

Any tips will be appreciated.

Regards, Zhao

minad commented 1 year ago

See cape-dict from https://github.com/minad/cape. You can use a more restricted completion style like basic or substring.