kstenschke / shifter-plugin

Intelligent string/code manipulation plugin for Jetbrains IDEs: Detects shiftable type of word/line/selection and manipulates it on keyboard shortcut
http://plugins.jetbrains.com/plugin/6149
Apache License 2.0
107 stars 13 forks source link

enhancement request: more CSS units #28

Closed JDR42 closed 7 years ago

JDR42 commented 8 years ago

I use this plugin all the time for max dev speed -- thank you for all your efforts!

It would be WONDERFUL if CSS value shifting supported more units, e.g.:

kstenschke commented 8 years ago

In the "dictionary" section of Shifter's plugin settings you can configure your own shifting dictionary for a specific file type (e.g. css, html) or general vocabulary.

JDR42 commented 8 years ago

Sorry I wasn't clear. I meant to emphasize value shifting. The dictionary is for defining sets of terms as I understand it.

For example, if I see 10px I can shift up to 11px because px is supported. However if I see 10rem I cannot shift up to see 11rem.

I took a quick look inside... looks like all I have to modify is /src/com/kstenschke/shifter/models/shiftertypes/CssUnit.java ?? I will try to send a PR soon.