Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*IDEA* search imports with suggestions #355

Closed
aliev opened this issue Jan 29, 2015 · 3 comments
Closed

*IDEA* search imports with suggestions #355

aliev opened this issue Jan 29, 2015 · 3 comments

Comments

@aliev
Copy link
Contributor

aliev commented Jan 29, 2015

it's just an idea. I do not know how hard it will be to implement (and whether there is a ready-made solution)

for example we write "reverse" (without importing django.core.urlresolvers.reverse). jedi automatically search for packages. and if the package is not imported it offers options:

"Please select one of the package where this object is defined":

  1. django.core.urlresolvers.reverse
  2. ...reverse
    etc.

What do you think about this?

@davidhalter
Copy link
Owner

This has previously been suggested. This is possible, but you need a good index (which can get quite big). It wouldn't even be a huge amount of work, but I'm not sure if it's that easy to create such an index that also performs and doesn't sit in memory (don't want to load it every time). Maybe we could do something with sqlite2?

@aliev
Copy link
Contributor Author

aliev commented Jan 29, 2015

Maybe we could do something with sqlite2?

good idea!

@davidhalter
Copy link
Owner

This is definitely on my list of the future wishlist and it has been discussed on the Jedi issue tracker again and again. Therefore I'm closing it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants