Skip to content

Commit

Permalink
Several improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermooo committed Aug 20, 2011
1 parent 59fbed9 commit fd93501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Support/AAAPackageDev.sublime-commands
Expand Up @@ -12,6 +12,8 @@

{ "caption": "z:AAAPackageDev: New Build System", "command": "new_build_system2" },

{ "caption": "z:AAAPackageDev: New Plugin", "command": "new_plugin" },

{ "caption": "z:AAAPackageDev: New Package", "command": "new_package" },
{ "caption": "z:AAAPackageDev: Delete Package", "command": "delete_package" }

Expand Down
3 changes: 2 additions & 1 deletion snippet_dev.py
Expand Up @@ -3,6 +3,7 @@
from sublime_lib.view import has_file_ext

from xml.etree import ElementTree as ET
import os


RAW_SNIPPETS_SYNTAX = 'Packages/AAAPackageDev/Support/Sublime Snippet (Raw).tmLanguage'
Expand All @@ -18,7 +19,7 @@
class NewRawSnippetCommand(sublime_plugin.WindowCommand):
def run(self):
v = self.window.new_file()
v.settings().set('default_dir', 'Packages/User')
v.settings().set('default_dir', os.path.join(sublime.packages_path(), 'User'))
v.settings().set('syntax', RAW_SNIPPETS_SYNTAX)
v.set_scratch(True)

Expand Down

0 comments on commit fd93501

Please sign in to comment.