zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.11k stars 86 forks source link

[feature request] completion-at-point-functions backends corresponding to the existing company ones #289

Closed luishgh closed 2 years ago

luishgh commented 3 years ago

Hi, I have been using telega.el for a while and it seems only company backends are present for many actions, like completing usernames at the chatbuf input. I think completion-at-point should be supported as well, due to the recent popularity of packages like Corfu. I'm willing to work on this! Just need to learn a little more about elisp before having the courage to try it. Thanks for the attention!

zevlg commented 3 years ago

There are two crucial requirements for the completing system to be included into telega.el core:

AFAIK, cap can't do both of these. Thats why company has been chosen for completions

luishgh commented 3 years ago

Could you say one occasion where the second point is needed? I didn't understand it.

zevlg commented 3 years ago

I mean cap completions can be written of course, but we can’t include it into telega sources, we can add it as contrib/ package, but not as core part of the telega

luishgh commented 3 years ago

Oh, got it. Will try to implement it and tell you here when it's done. Thanks for the explanation @zevlg!