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

Open file relative to active file #15

Open
michaelin opened this issue Sep 4, 2015 · 1 comment
Open

Open file relative to active file #15

michaelin opened this issue Sep 4, 2015 · 1 comment

Comments

@michaelin
Copy link

Hi,
It would be nice if I could open files relative to the currently active file. I regularly work with projects that are 5+ folders deep. Having to start navigation from the project root every time is a hazzle.

Example:
The project root is at /somedir/root, and I have the file /somedir/root/level1/level2/level3/myfile.py open. I'd like to open the file <project root>/level1/level2/level3_2/myotherfile.py.

Current process:

  • ctrl+o opens the navigation at /somedir/root/
  • Enter /level1/level2/level3_2/myotherfile.py to open the file.

Suggested addition:

  • ctrl+shift+o opens the navigation at /somedir/root/level1/level2/level3/
  • Enter ../level3_2/myotherfile.py to open the file.

Thanks for a great plugin. The auto completion features are excellent.

@rosshemsley
Copy link
Owner

Hey, sorry for late response.

You can actually already do this, but it was turned off by default (I forget why I did that...)

This is now the default behaviour in the most recent version (or should be) you can change it in the settings. (i.e. the default path is the path of the current file)

Glad you like the plugin!

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

No branches or pull requests

2 participants