Skip to content

Query the Python dot-separated path, using the user's cursor.

Notifications You must be signed in to change notification settings

ColinKennedy/vim-python-dot-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-python-dot-finder

A simple Python mapping for querying the dot-separated paths from the user's cursor.

class SomeClass(object):
    def get_thing(self):
        # ...
        stuff  # <-- cursor located here
        # ...

Just call this function:

:echo GetCurrentDotPath()

And it will return "SomeClass.get_thing".

About Packaging

This Vim plugin was built specifically to work with Rez packages. If the Vim function is run within a Rez package, you'll get the full Python import, up until wherever you've placed the Rez package.py file.

Running Tests

Run this

PYTHONPATH=$PWD/pythonx python -m unittest discover

And all tests should pass.

About

Query the Python dot-separated path, using the user's cursor.

Resources

Stars

Watchers

Forks

Packages

No packages published