Skip to content

Instantly share code, notes, and snippets.

@joshgreen
Created January 6, 2017 15:48
Show Gist options
  • Save joshgreen/5c9e868d7f32ff533959e9deeefc3a37 to your computer and use it in GitHub Desktop.
Save joshgreen/5c9e868d7f32ff533959e9deeefc3a37 to your computer and use it in GitHub Desktop.
[
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
"operand": "SCOPE_SELECTOR",
"operator": "equal",
"match_all": true,
"key": "selector"
},
// run only if there's no selected text
{
"match_all": true,
"key": "selection_empty"
},
// don't work if there are active tabstops
{
"operator": "equal",
"operand": false,
"match_all": true,
"key": "has_next_field"
},
// don't work if completion popup is visible and you
// want to insert completion with Tab. If you want to
// expand Emmet with Tab even if popup is visible --
// remove this section
{
"operand": false,
"operator": "equal",
"match_all": true,
"key": "auto_complete_visible"
},
{
"match_all": true,
"key": "is_abbreviation"
}
]
},
{ "keys": ["ctrl+,"], "command": "toggle_side_bar" },
{ "keys": ["ctrl+]"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["ctrl+m"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
{ "keys": ["super+alt+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>" } },
{ "keys": ["super+alt+i"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" } },
{ "keys": ["super+ctrl+u"], "command": "<upper_case></upper_case>" },
{ "keys": ["super+ctrl+i"], "command": "lower_case" },
{ "keys": ["super+ctrl+y"], "command": "title_case" },
{ "keys": ["super+ctrl+shift+e"], "command": "urlencode" },
{ "keys": ["super+ctrl+shift+d"], "command": "urldecode" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment