-
Notifications
You must be signed in to change notification settings - Fork 26
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
Auto discover projects #104
base: master
Are you sure you want to change the base?
Conversation
This pull request would resolve issue #65 |
project_manager.py
Outdated
filename = '{}.sublime-project'.format(project_name) | ||
filepath = os.path.join(self.primary_dir(), filename) | ||
print('ProjectManager: Creating {} -> {}'.format(filename, folder)) | ||
with open(filepath, 'w') as handle: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might use JsonFile(path).save(data)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Updated to use JsonFile and removed the import above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this. It seems very promising. I will take a closer look as soon as possible.
Any update on this? This would be a great feature! |
Added 3 new options:
auto_discover_base_directories
- Similar format toprojects
setting, but will look in these directories for any git, hg, or svn repos and auto create project files for them in theprimary_dir()
.auto_discover_ignored_folders
- Folder names to ignore when searching for repos in above paths.auto_discover_max_recursion_depth
- Max depth to search when searching for repos.There are no new commands. This process is performed on Refresh which occurs when the plugin is loaded or refresh is manually called. If the
auto_discover_base_directories
is empty, nothing will be done.