Skip to content

Commit

Permalink
Add template for color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll committed Nov 6, 2017
1 parent ff5d6ab commit 9a76262
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Package/Main.sublime-menu
Expand Up @@ -46,6 +46,10 @@
"command": "packagedev_new_resource",
"args": {"kind": "build_system"}
},
{ "caption": "New Color Scheme…",
"command": "packagedev_new_resource",
"args": {"kind": "color_scheme"}
},
{ "caption": "New Commands File…",
"command": "packagedev_new_resource",
"args": {"kind": "commands"}
Expand Down
4 changes: 4 additions & 0 deletions Package/PackageDev.sublime-commands
Expand Up @@ -65,6 +65,10 @@
"command": "packagedev_new_resource",
"args": {"kind": "build_system"}
},
{ "caption": "PackageDev: New Color Scheme",
"command": "packagedev_new_resource",
"args": {"kind": "color_scheme"}
},
{ "caption": "PackageDev: New Commands File",
"command": "packagedev_new_resource",
"args": {"kind": "commands"}
Expand Down
29 changes: 29 additions & 0 deletions plugins_/new_resource_file/templates.py
Expand Up @@ -3,6 +3,35 @@
{
\t"cmd": ["${0:make}"],
}""",
color_scheme="""{
"variables": {
${0:// Define variables here}
},
"globals": {
"foreground": "",
"background": "",
"accent": "",
"selection": "",
},
"rules": [
{
"scope": "string",
"foreground": "",
},
{
"scope": "variable",
"foreground": "",
},
{
"scope": "keyword",
"foreground": "",
},
{
"scope": "constant",
"foreground": "",
},
]
}""".replace(" ", "\t"),
commands=R"""[
{ "caption": "Preferences: ${1:${package_name:PackageName}}",
"command": "edit_settings",
Expand Down

0 comments on commit 9a76262

Please sign in to comment.