vim-gf-python
vim-gf-python copied to clipboard
Find files for targets that are on imported modules
I have a solution to find things like os.path, but the implementation could be considered unsafe. It would involve attempting to import it, and so depending on what one tries to find, it could be dangerous as the code would in effect be evaluated.
You could use the AST standard module for this. You wouldn't be evaluating the code, but rather only parsing it.
If I have time I'll create a pull request adding a part of this feature.
That would be welcome.