scnvim icon indicating copy to clipboard operation
scnvim copied to clipboard

[FR]: Autocompletion for arguments

Open grammoboy2 opened this issue 4 years ago • 2 comments

In SCIDE you can autocomplete arguments. So for SinOsc.ar( if you hit <TAB> now, it fills in: freq: for you. You fill in the number: freq: 440, . And when you put a comma after it, it autocompletes for you the other argument via <TAB> and so on.

Scnvim, shows me which arguments should go there, but doesn't autocomplete AFAIK.

(Btw: scnvim is great, thx!)

grammoboy2 avatar Jun 15 '20 15:06 grammoboy2

In SCIDE you can autocomplete arguments. So for SinOsc.ar( if you hit now, it fills in: freq: for you. You fill in the number: freq: 440, . And when you put a comma after it, it autocompletes for you the other argument via and so on.

Scnvim, shows me which arguments should go there, but doesn't autocomplete AFAIK.

Do you mean something like this?

signature

That is something I've been working on, but unfortunately its not ready yet. I will get back to it when 1.0.0 is released. But you can follow the progress from this branch if you're curious.

(Btw: scnvim is great, thx!)

Thank you!

davidgranstrom avatar Jun 17 '20 15:06 davidgranstrom

For the screenshot, indeed If you hit <TAB> now and it would fill in 'freq', that's the behavior you get with the SCIDE, but I guess you know.

The Snippet generator in the last video on scnvim github readme.md, looks similar too, I saw later.

grammoboy2 avatar Jun 17 '20 18:06 grammoboy2