tkf / emacs-jedi

Python auto-completion for Emacs
http://tkf.github.io/emacs-jedi/latest/
666 stars 89 forks source link

Jedi does not complete parenthesis after a function #131

Open egoogins opened 10 years ago

egoogins commented 10 years ago

I didn't find anywhere to submit feature requests, and could not see the proper way to add this feature.

After completion of a known function, jedi should insert a parenthesis and advance the point after it.

So letting P represent the Point, self.setGeomeP -> self.setGeometry(P

Additional packages could be responsible for closing any parenthesis, so:

self.shP -> self.show()P

tkf commented 10 years ago

Jedi.el should not put parenthesis always. For example, you could be passing a callable as a callback. So we should be using auto-complete's action property to do the job. I am not working on it right now but PR is welcome as always. If anybody start working on it please leave comment here.