sublime-csscomb icon indicating copy to clipboard operation
sublime-csscomb copied to clipboard

Sublime setting for combing only current block

Open kizu opened this issue 11 years ago • 3 comments
trafficstars

After fixing csscomb/csscomb.js#177 we would have an ability to run CSSComb.js for any given block.

It would make sense to add an option (new action, key binding etc.) for handling only the current block, so running this action would comb only the block closest to the cursor.

The current action would be the default one, so it won't break anyone's workflow, but it could ease someone's work.

I can implement it if this is welcomed for this plugin.

kizu avatar Feb 17 '14 19:02 kizu

I still don't see a use case, sorry.

tonyganch avatar Feb 17 '14 19:02 tonyganch

I would like to add an option to Hayaku to run this exact action after expanding an abbreviation if CSSComb.js plugin is installed. So each new declaration would be placed in the proper place in the block. Even if CSSComb.js would be fast enough to run through the whole big stylesheet every time, I still don't understand why we should do this, when we can run it only for the blocks affected. It would be always faster than running through the whole file.

kizu avatar Feb 17 '14 19:02 kizu

@kizu, okay, let's do this.

A note to future me: The issue was discussed with Vasiliy Bout in context of IDEA

tonyganch avatar Feb 20 '14 13:02 tonyganch