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

Ability to generate sequences #18

Closed iby closed 9 years ago

iby commented 9 years ago

Hi Kay! Was looking for a plugin that can generate / update sequences but didn't find anything in the plugin repository. Shifter was the closest to the search, looks pretty awesome and mature, so I thought to suggest the idea, though I admit it's a little out of "shifting" context.

It would be great to have the ability to select multiple lines and create a sequence, perhaps this can be the default behaviour of up / down command, i.e., if there is an empty value selected it would instead create the sequence element. This is closely related to #14.

I use this a lot with unit testing (PHPUnit), when the test uses a data provider with large arrays I often index each element so when a test fails on a particular index I know right away what data it was using.

kstenschke commented 9 years ago

Hi Ian, from my own needs of converting lines to lists (sequences) and vice versa, i created the "Realigner" plugin. It by now has a large feature set and might be also what you're looking for: https://plugins.jetbrains.com/plugin/7082 Please let me know if it also fits your needs, or feel free to add feature requests to the realigner plugin.

P.s. If you like shifter and didn't yet- please vote for it on https://plugins.jetbrains.com/plugin/6149 ;)