Skip to content

Instantly share code, notes, and snippets.

@jespr
Created November 18, 2011 14:31

Revisions

  1. Jesper Christiansen created this gist Nov 18, 2011.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    { "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#{$0}"}, "context":
    [
    { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
    { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
    { "key": "following_text", "operator": "regex_contains", "operand": "^(\"$)", "match_all": true }
    ]
    },
    { "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#{${0:$SELECTION}}"}, "context":
    [
    { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
    { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
    ]
    }