abingham / emacs-ycmd

Emacs client for ycmd, the code completion system.
MIT License
383 stars 46 forks source link

Quickly delete unwanted arguments #408

Closed amosbird closed 7 years ago

amosbird commented 7 years ago

I'm not sure if it is an issue of emacs-ycmd. A completion of python's print function looks like this,

    print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)

How can I quickly delete all the unneeded arguments? yasnippet supports ctrl-d to delete them one by one.

abingham commented 7 years ago

I think this is actually a question for company-mode. We provide company-mode with details about parameters, default values, etc., and it manages the actual user interactions, completion, and so forth. You might check with them.

I'm going to close this, but by all means feel free to open it again if it does turn out to be an emacs-ycmd issue.

ptrv commented 7 years ago

I ran also into the issue that I wanted to remove unneeded arguments quickly. Haven't had time to look into.

Another idea is to not insert arguments which have a default value.