supercollider / scel

Supercollider emacs package
69 stars 19 forks source link

Improve what help the autocompletion offers #32

Open xmacex opened 4 years ago

xmacex commented 4 years ago

The company autocompletion framework used by scel can offer more help in the completion popup miniwindows. Currently it completes top level objects, which works very well

Screenshot 2020-08-12 at 01 40 12

Compare with Elpy for Python, which also uses the eldoc to display arguments in the echo area at the bottom of the screen

Screenshot 2020-08-12 at 01 42 22

Mads has something like this in what looks like vi on his quarantine livecoding stream

Screenshot 2020-08-12 at 02 02 06

The autocompletion could show a oneline description e.g.

SynthDef - Client-side representation of a synth definition

and method completion on dot (e.g. from the SuperCollider IDE)

Screenshot 2020-08-12 at 01 51 31

completion of symbols (from Mads' quarantine livecoding stream)

Screenshot 2020-08-12 at 02 01 38

Company is quite powerful, and together combined with eldoc I believe a pretty well guided interaction with SuperCollider can be achieved for Emacs :)

xmacex commented 4 years ago

Ok I just discovered the existence of sclang-extensions which improves autocomplete for sclang-mode and does Eldoc thing too. It is unmaintained, but I'm sure worth excavating.

TatriX commented 4 years ago

Does it work, have you tried?

xmacex commented 1 year ago

It didn't work for me, instead giving errors when auto-complete runs. I'm not sure if it would be worth trying to bring the sclang-extensions package back to action from it's unmaintained status, or try to re-implement the functionality with company in the scel package itself.