Sublime: New hot keys, plugins, etc.

This commit is contained in:
Artem Sapegin 2012-12-06 17:53:24 +04:00
parent fc05e9b67e
commit 3e011eb692
4 changed files with 34 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.cache
sublime/User/Package Control.last-run

View File

@ -2,5 +2,33 @@
{ "keys": ["super+d"], "command": "duplicate_line" },
{ "keys": ["super+y"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["f3"], "command": "find_next" },
// Wrap with quotes and brackets without autopairing (auto_match_enabled=false)
{ "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"${0:$SELECTION}\""}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'${0:$SELECTION}'"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["("], "command": "insert_snippet", "args": {"contents": "(${0:$SELECTION})"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["["], "command": "insert_snippet", "args": {"contents": "[${0:$SELECTION}]"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{${0:$SELECTION}}"}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
}
]

View File

@ -1,9 +1,10 @@
{
"auto_upgrade_last_run": 1350388642,
"auto_upgrade_last_run": null,
"installed_packages":
[
"AdvancedNewFile",
"CoffeeScript",
"EditorConfig",
"Emmet",
"Hayaku - tools for writing CSS faster",
"Inc-Dec-Value",

View File

@ -12,7 +12,8 @@
"font_size": 14,
"hayaku_CSS_colors_case": "lowercase",
"hayaku_CSS_numbers_leading_zero": false,
"hayaku_CSS_syntax_autoguess": [
"hayaku_CSS_syntax_autoguess":
[
" selector { ",
" property:value; ",
" } "