From 3e011eb692b19e4d08a97af35d4d04f3da602a04 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Thu, 6 Dec 2012 17:53:24 +0400 Subject: [PATCH] Sublime: New hot keys, plugins, etc. --- .gitignore | 1 + sublime/User/Default (OSX).sublime-keymap | 30 ++++++++++++++++++- sublime/User/Package Control.sublime-settings | 3 +- sublime/User/Preferences.sublime-settings | 3 +- 4 files changed, 34 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c3ed10e..5c3f0a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.cache +sublime/User/Package Control.last-run diff --git a/sublime/User/Default (OSX).sublime-keymap b/sublime/User/Default (OSX).sublime-keymap index 2868c4f..d754236 100644 --- a/sublime/User/Default (OSX).sublime-keymap +++ b/sublime/User/Default (OSX).sublime-keymap @@ -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 } + ] + } ] \ No newline at end of file diff --git a/sublime/User/Package Control.sublime-settings b/sublime/User/Package Control.sublime-settings index 2a0d414..391a636 100644 --- a/sublime/User/Package Control.sublime-settings +++ b/sublime/User/Package Control.sublime-settings @@ -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", diff --git a/sublime/User/Preferences.sublime-settings b/sublime/User/Preferences.sublime-settings index 36ff8f4..cdf689c 100644 --- a/sublime/User/Preferences.sublime-settings +++ b/sublime/User/Preferences.sublime-settings @@ -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; ", " } "