Description
Automatic import handling
I have a feature request, we're all busy, so take it or leave it. But it would be nice if jedi could add missing import statements and organize imports. This could be integrated nicely via InsertLeave
event. Just check if some unknown identifier have appeared and show a menu where use could choose or type manually what to import.
Another thing I would like to have is to have an api for getting syntax tree of the current buffer. This would allow things like making new end of current syntax element
motion which then could be used to delete or surround it with parenthesis and stuff like that.
Unfortunately I wouldn't be able to implement this myself, because right now I'm investigating the possibility of using http://bnfc.digitalgrammars.com/ and Happy to make a service (in the same way jedi is a service) that would complement editor with smart features like autocompletion, refactorings and other stuff. Basically do what jedi does and more but for any language for which someone already wrote BNF (it's done already for the most of the languages). I really think reimplementing parsers for each language is big waste of human potential.