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

Add Packages Directory to the standard selections #7

Merged
merged 1 commit into from Jan 23, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion sublime_files.py
Expand Up @@ -31,7 +31,8 @@ def run(self, command):

# function for showing panel for changing directories / opening files
def open_navigator(self):
self.dir_files = ['[' + os.getcwdu() + ']', bullet + ' Directory actions', '..' + os.sep, '~' + os.sep]
self.dir_files = ['[' + os.getcwdu() + ']', bullet + ' Directory actions',
bullet + ' Packages Directory', '..' + os.sep, '~' + os.sep]

# annoying way to deal with windows
if sublime.platform() == 'windows':
Expand Down Expand Up @@ -78,6 +79,8 @@ def handle_navigator_option(self, call_value):
os.chdir(option)
elif option == bullet + ' To current view':
os.chdir(os.path.dirname(self.window.active_view().file_name()))
elif option == bullet + ' Packages Directory':
os.chdir(sublime.packages_path())
elif option.startswith(bullet + ' To bookmark'):
os.chdir(self.bookmark)
else:
Expand Down