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
105 stars 13 forks source link

Option to shift more than by a single value #10

Closed eikaramba closed 9 years ago

eikaramba commented 9 years ago

Maybe the title is misleading, but i would like to have the possibility to shift e.g. a number in css by more than just +1/-1 - e.g. +10/-10. Just like it is possible with the ST3 Plugin https://github.com/rmaksim/Sublime-Text-2-Inc-Dec-Value

For example currently i have Strg+Up as a keybinding for +1, but i like to have Strg+Shift+Up for +10.

PS: Also multi cursor editing does not work, is this correct?

kstenschke commented 9 years ago

Shifter does not have special functions for multi cursor editing at the moment. What sort of functionalities would you imagine to be helpful?

-But you're lucky :four_leaf_clover: - release 1.2.0 implements instant multiple shifting.

P.s: please don't forget to rate also on the plugin repository page at http://plugins.jetbrains.com/plugin/index?pr=&pluginId=6149

eikaramba commented 9 years ago

Wow thanks! Hehe nice that you actually already implemented it for 1.2.0 - your plugin is really great and of course i will rate it.

Regarding the multi caret functionality i think it is quite easy in theory: the multiple carest are handled separately from each other, so that every selection is getting shifted on its own. I'm not familiar with the intellij plugin API, but if there is something like a selection array one can loop through, maybe it is possible just to call the shifter action multiple times.