Browse Source

add import .sublime-project command

master
Randy Lai 7 years ago
parent
commit
51168300f1
  1. 4
      Default.sublime-commands
  2. 7
      pm.py

4
Default.sublime-commands

@ -7,6 +7,10 @@
"caption": "Project Manager: Add Project",
"command": "project_manager_add_project"
},
{
"caption": "Project Manager: Import .sublime-project",
"command": "project_manager_import_project"
},
{
"caption": "Project Manager: Open Project",
"command": "project_manager_list", "args": {"action": "switch"}

7
pm.py

@ -380,6 +380,13 @@ class ProjectManagerAddProject(sublime_plugin.WindowCommand):
self.manager.add_project()
class ProjectManagerImportProject(sublime_plugin.WindowCommand):
def run(self):
self.manager = Manager(self.window)
self.manager.import_sublime_project()
class ProjectManagerList(sublime_plugin.WindowCommand):
def show_quick_panel(self, items, on_done):

Loading…
Cancel
Save