Closed edouard-lopez closed 8 years ago
Hi Eduard, thanks for opening this discussion with an interesting idea!
The suggested first strategy of in/decrementation (1, 4, 5, 6
→ 2, 5, 6, 7
) seems the most obvious approach to me, matching the current implementation of shifter.
Can you describe a recurring scenario when the second strategy is helpful? What other strategies can you think of?
:+1: Yes, please!!!
Another case:
Comment a1 = new Comment(1,null);
Comment a1 = new Comment(1,null);
Comment a1 = new Comment(1,null);
into:
Comment a1 = new Comment(1,null);
Comment a2 = new Comment(1,null);
Comment a3 = new Comment(1,null);
Thank you Vojtêch for the suggestion and link to stackoverflow. :+1: Currently shifter sorts multi-line selections alphabetically when shifting them, i think having it detect and enumerate a multi-line selection of identical lines into a sequence might be a cool additional feature.
:+1: I would love to see the feature suggested by Vojtěch.
I needed bunch of unique variable names the other day, and it pissed me off doing it one by one, so I implemented it :)
wow, sounds cool. looking forward to your pull request :)
There won't be any :-) But feel free to copy paste it from my plugin.
Since the addition of Multiple Selections in PyCharm it wourd be nice to be able to select several occurences and increment them in a batch. Some behaviors must be discussed:
0
,1
or at the first item value (e.g.4
) ;1, 4, 5, 6
→2, 5, 6, 7
) or build a new sequence (e.g.1, 4, 5, 6
→1, 2, 3, 4
) ?