MarioRicalde / SCSS.tmbundle

The TextMate SCSS Official Bundle. Now Compatible with SublimeText2.
834 stars 110 forks source link

Don't add the semicolon! #137

Closed pyronaur closed 11 years ago

pyronaur commented 11 years ago
    { "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": "selector", "operator": "equal", "operand": "source.scss - meta.selector.scss", "match_all": true },
            { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\}|$)", "match_all": true }
        ]
    },

For the love of god, please remove it! I have sublime auto-match enabled, which helps most of the time, except with SCSS Bundle. I've removed it a couple of times myself already, but every time SCSS bundle updates, I'm screwed.

Here is a quick example:

a {
  color:blue;
  &: <--- X

X Marks the spot. A semi-colon is auto-added, and I am not going to need it. This would be very useful in CSS, but it does damage in SCSS, and this is a SCSS Bundle.

I end up writing

a {
  color:blue;
  &:hover; {
    red
}

Which pretty much destroys my workflow. http://xkcd.com/1172/

stephenway commented 11 years ago

Duplicate of #124. Closing