Browse Source

enable multi local dir

master
Randy Lai 7 years ago
parent
commit
27afb93027
  1. 3
      pm.py
  2. 4
      pm.sublime-settings

3
pm.py

@ -78,7 +78,8 @@ class Manager:
node = get_node()
if self.settings.get("use_local_projects_dir", False):
self.projects_fpath = [self.primary_dir + " - " + node] + self.projects_fpath
self.projects_fpath = \
[d + " - " + node for d in self.projects_fpath] + self.projects_fpath
self.projects_info = self.get_projects_info()

4
pm.sublime-settings

@ -2,8 +2,8 @@
// A list of folders containing *.sublime-project files
// "projects_fpath": ["path/to/custom/Projects", "another_path/to/Projects"]
// Enable local projects directory, such a directory will be named
// after "Projects - computer_name". where computer_name is your computer hostname.
// Enable local projects directory, such a directory will be named as
// "Projects - computer_name", where computer_name is your computer hostname.
// It would be useful if Sublime Text settings are synced across different computers.
// To discover your computer hostname, run
// import sys; sys.modules['Project-Manager'].pm.get_node() in your sublime console

Loading…
Cancel
Save