Skip to content

Instantly share code, notes, and snippets.

@Saigesp
Last active December 12, 2018 12:03
Show Gist options
  • Save Saigesp/59a6c496f64fae0a49dfb50b687b2a6a to your computer and use it in GitHub Desktop.
Save Saigesp/59a6c496f64fae0a49dfb50b687b2a6a to your computer and use it in GitHub Desktop.
Default (Linux).sublime-keymap
[
{ "keys": ["ctrl+alt+b"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+alt+p"], "command": "autoprefixer" },
// console.log()
{ "keys": ["ctrl+alt+c", "ctrl+alt+o", "ctrl+alt+n"], "command": "insert_snippet", "args": {"contents": "console.log($0);"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+c", "ctrl+alt+o", "ctrl+alt+n"], "command": "insert_snippet", "args": {"contents": "console.log(${0:$SELECTION});"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
// <?php ?>
{ "keys": ["ctrl+alt+p", "ctrl+alt+p"], "command": "insert_snippet", "args": {"contents": "<?php $0 ?>"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+p", "ctrl+alt+p"], "command": "insert_snippet", "args": {"contents": "<?php ${0:$SELECTION} ?>"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
//python by REPL
{ "keys": ["ctrl+alt+r", "ctrl+alt+p"], "command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
// {% trans '' %}
{ "keys": ["ctrl+alt+q", "ctrl+alt+r"], "command": "insert_snippet", "args": {"contents": "{% trans '$0' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+q", "ctrl+alt+r"], "command": "insert_snippet", "args": {"contents": "{% trans '${0:$SELECTION}' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
// {% static '' %}
{ "keys": ["ctrl+alt+s", "ctrl+alt+a"], "command": "insert_snippet", "args": {"contents": "{% static '$0' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+s", "ctrl+alt+a"], "command": "insert_snippet", "args": {"contents": "{% static '${0:$SELECTION}' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
// {% url '' %}
{ "keys": ["ctrl+alt+u", "ctrl+alt+r"], "command": "insert_snippet", "args": {"contents": "{% url '$0' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+u", "ctrl+alt+r"], "command": "insert_snippet", "args": {"contents": "{% url '${0:$SELECTION}' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
// function(d){}
{ "keys": ["ctrl+alt+f", "ctrl+alt+d"], "command": "insert_snippet", "args": {"contents": "function(d){$0}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+f", "ctrl+alt+d"], "command": "insert_snippet", "args": {"contents": "function(d){ ${0:$SELECTION} }"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment