python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
245 stars 34 forks source link

AutoImport imports if already imported #62

Closed erikw closed 7 years ago

erikw commented 7 years ago

:RopeAutoImport should not import the given name if it is already imported. Issuing this command many times on the same symbol will just append more imports

from X import Y
from X import Y
from X import Y
from X import Y
mcepl commented 7 years ago

ropevim does almost nothing here. It just calls the underlying libraries, in this case I believe https://github.com/python-rope/rope/blob/master/rope/contrib/autoimport.py , so I think you should file an issue at the rope issue tracker.

erikw commented 7 years ago

Thanks. Moved to here: https://github.com/python-rope/rope/issues/194