davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.28k stars 370 forks source link

Ability to filter out usages from standard library #792

Closed fenuks closed 3 years ago

fenuks commented 6 years ago

Hello, it would be useful to have option to configure jedi-vim to not show usages from standard library. For instance for following code

import socket
socket
# ^ :call jedi#usages() on `socket`

quickfix window is populated with dozens of matches, that might be not particularly interesting from the standpoint of the project I am working on.

davidhalter commented 6 years ago

Usages is going to get reworked very soon anyway. You probably just have to wait for at least half a year.

fenuks commented 6 years ago

Thank you for letting me know. Can you share some details, if that doesn't pose too much trouble?

davidhalter commented 6 years ago

It's pretty easy, usages sucks generally, because without a database cache it's just too hard to find all usages in big projects, so I'm planning to use a database index (probably sqlite3) for some things.

fenuks commented 6 years ago

Sounds great. Can't wait!

davidhalter commented 3 years ago

This should be way better now. The latest changes haven't arrived in jedi-vim and the release is not public, but according to my tests everything is looking pretty good.