Skip to content

Commit

Permalink
+ "Menu – User" and "Commands – User"
Browse files Browse the repository at this point in the history
+ keymaps
  • Loading branch information
kairyou committed May 9, 2017
1 parent 0058151 commit 9a68bb6
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 3 deletions.
26 changes: 26 additions & 0 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"keys": ["ctrl+alt+h"], "command": "sublime_tmpl",
"args": {"type": "html"}, "context": [{"key": "sublime_tmpl.html"}]
}
,{
"keys": ["ctrl+alt+j"], "command": "sublime_tmpl",
"args": {"type": "js"}, "context": [{"key": "sublime_tmpl.js"}]
}
,{
"keys": ["ctrl+alt+c"], "command": "sublime_tmpl",
"args": {"type": "css"}, "context": [{"key": "sublime_tmpl.css"}]
}
,{
"keys": ["ctrl+alt+p"], "command": "sublime_tmpl",
"args": {"type": "php"}, "context": [{"key": "sublime_tmpl.php"}]
}
,{
"keys": ["ctrl+alt+r"], "command": "sublime_tmpl",
"args": {"type": "ruby"}, "context": [{"key": "sublime_tmpl.ruby"}]
}
,{
"keys": ["ctrl+alt++shift+p"], "command": "sublime_tmpl",
"args": {"type": "python"}, "context": [{"key": "sublime_tmpl.python"}]
}
]
26 changes: 26 additions & 0 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"keys": ["ctrl+alt+h"], "command": "sublime_tmpl",
"args": {"type": "html"}, "context": [{"key": "sublime_tmpl.html"}]
}
,{
"keys": ["ctrl+alt+j"], "command": "sublime_tmpl",
"args": {"type": "js"}, "context": [{"key": "sublime_tmpl.js"}]
}
,{
"keys": ["ctrl+alt+c"], "command": "sublime_tmpl",
"args": {"type": "css"}, "context": [{"key": "sublime_tmpl.css"}]
}
,{
"keys": ["ctrl+alt+p"], "command": "sublime_tmpl",
"args": {"type": "php"}, "context": [{"key": "sublime_tmpl.php"}]
}
,{
"keys": ["ctrl+alt+r"], "command": "sublime_tmpl",
"args": {"type": "ruby"}, "context": [{"key": "sublime_tmpl.ruby"}]
}
,{
"keys": ["ctrl+alt++shift+p"], "command": "sublime_tmpl",
"args": {"type": "python"}, "context": [{"key": "sublime_tmpl.python"}]
}
]
26 changes: 26 additions & 0 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"keys": ["ctrl+alt+h"], "command": "sublime_tmpl",
"args": {"type": "html"}, "context": [{"key": "sublime_tmpl.html"}]
}
,{
"keys": ["ctrl+alt+j"], "command": "sublime_tmpl",
"args": {"type": "js"}, "context": [{"key": "sublime_tmpl.js"}]
}
,{
"keys": ["ctrl+alt+c"], "command": "sublime_tmpl",
"args": {"type": "css"}, "context": [{"key": "sublime_tmpl.css"}]
}
,{
"keys": ["ctrl+alt+p"], "command": "sublime_tmpl",
"args": {"type": "php"}, "context": [{"key": "sublime_tmpl.php"}]
}
,{
"keys": ["ctrl+alt+r"], "command": "sublime_tmpl",
"args": {"type": "ruby"}, "context": [{"key": "sublime_tmpl.ruby"}]
}
,{
"keys": ["ctrl+alt++shift+p"], "command": "sublime_tmpl",
"args": {"type": "python"}, "context": [{"key": "sublime_tmpl.python"}]
}
]
32 changes: 29 additions & 3 deletions Main.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,52 @@
"children":
[
{
"id": "sublimetmpl",
"caption": "New File (SublimeTmpl)",
"children":
[
{
"id": "html",
"caption": "HTML",
"command": "sublime_tmpl",
"args": {
"type": "html"
}
},
{
"id": "js",
"caption": "Javascript",
"command": "sublime_tmpl",
"args": {
"type": "js"
}
},
{
"id": "css",
"caption": "CSS",
"command": "sublime_tmpl",
"args": {
"type": "css"
}
},
{
"id": "php",
"caption": "PHP",
"command": "sublime_tmpl",
"args": {
"type": "php"
}
},
{
"id": "python",
"caption": "python",
"command": "sublime_tmpl",
"args": {
"type": "python"
}
},
{
"id": "ruby",
"caption": "ruby",
"command": "sublime_tmpl",
"args": {
Expand All @@ -51,9 +58,16 @@
},
{"caption": "-"},
{
"id": "menu",
"command": "open_file",
"args": {"file": "${packages}/SublimeTmpl/Main.sublime-menu"},
"caption": "Menu"
"caption": "Menu – Default"
},
{
"id": "menu",
"command": "open_file",
"args": {"file": "${packages}/User/SublimeTmpl/Main.sublime-menu"},
"caption": "Menu – User"
}
]
}
Expand All @@ -76,13 +90,25 @@
{
"command": "open_file",
"args": {"file": "${packages}/SublimeTmpl/Main.sublime-menu"},
"caption": "SettingsMenu"
"caption": "MenuDefault"
},
{
"command": "open_file",
"args": {"file": "${packages}/User/SublimeTmpl/Main.sublime-menu"},
"caption": "Menu – User"
},
{ "caption": "-" },
{
"command": "open_file",
"args": {"file": "${packages}/SublimeTmpl/Default.sublime-commands"},
"caption": "SettingsCommands"
"caption": "CommandsDefault"
},
{
"command": "open_file",
"args": {"file": "${packages}/User/SublimeTmpl/Default.sublime-commands"},
"caption": "Commands – User"
},
{ "caption": "-" },
{
"command": "open_file",
"args": {"file": "${packages}/SublimeTmpl/SublimeTmpl.sublime-settings"},
Expand Down

0 comments on commit 9a68bb6

Please sign in to comment.