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

Shift Down breaks the selected text #19

Closed krasa closed 9 years ago

krasa commented 9 years ago

select: Comment a1 = new Comment(1, null); Shift Down result: null);, Comment a1 = new Comment(1

kstenschke commented 9 years ago

Shifter (mis)categorizes this selection as a comma-separated list and sorts the items alphabetically. Please let me know which sort of alteration (and categorization of the selection) you would expect on this selection, maybe it helps me improve shifter.

krasa commented 9 years ago

Oh yeah I forgot that it sorts, I expected this result: Comment a0 = new Comment(0, null); I also forgot that such result can be produced by "my" String Manipulation plugin :-)

Making sorting and incrementing work together for any case in one action is impossible. You would have to introduce an action which would only increment any number occurrences - which might be something that nobody needs :)