dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.45k stars 662 forks source link

How to provide mycli completions to other clients like Emacs? #593

Open stardiviner opened 6 years ago

stardiviner commented 6 years ago

I want to know whether it is possible to provide mycli completions to other clients like Emacs? If it is possible, then can you give me some hints and point me to the right direction? I want to implement an Emacs client based on mycli. Take mycli/pgcli power to Emacs. Thanks for your great work!!

meeuw commented 6 years ago

Hi @stardiviner you're welcome! I'm not a Emacs user but I can think of the following options:

stardiviner commented 6 years ago

@meeuw Not able to use mycli/pgcli as a daemon?

meeuw commented 6 years ago

No, not at this moment, sorry. It might be worth investigating, is there a framework for Emacs for getting completions from a daemon?

stardiviner commented 6 years ago

Yes, Emacs has many packages get completion from external daemons, I can list some examples here.