wbond/sublime_prefixr

Prefixr deletes properties if they are written in 'compact'/single-line format

Opened this issue · 0 comments

Here's another bug with huge impact that hasn't been reported yet.

I write my CSS in 'compact'/single-line mode, like this:

div { columns:3; column-gap:0; }

and if run Prefixr on that rule, it's turned into this:

div { -webkit-column-gap:0;
      -moz-column-gap:0;
      column-gap:0; }

What I do for this to happen is either one of two things: either place my mouse anywhere between columns:3; column-gap:0; or select all those properties, and then press ctrl+alt+x

However if I select the entire declaration from the selector div to the closing bracket } it does work.

The problem is that selecting the entire declaration can be quite cumbersome, but mostly because if you're working with an .scss file you're going to have nested rules (and very likely quite complex in structure), so selecting the entire declaration just won't work either.

The ideal behaviors would be:

  1. Place your mouse on the property you want "Prefixr-ed" o_O, press ctrl+alt+x and that's it.
  2. Select the properties you want Prefixer-ed, press ctrl+alt+x and that's it.

Thanks.