duydao / Text-Pastry

Extend the power of multiple selections in Sublime Text. Modify selections, insert numeric sequences, incremental numbers, generate uuids, date ranges, insert continuously from a word list and more.
MIT License
830 stars 46 forks source link

New lines On the fly #64

Closed SmartManoj closed 6 years ago

SmartManoj commented 6 years ago

Eg: 1 x5 Expected Behaviour: 1| 2| 3| 4| 5| Actual Behaviour : 1|

scholtes commented 6 years ago

1 x5 does not declare a bounded list from 1 to 5. It declares an incrementing generator (e.g., 1, 2, 3, 4, ...), except that each element is consecutively repeated 5 times. E.g., 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3 ....

Text-Pastry iterates through generators by inserting each next element into each cursor position. If you only have the cursor placed at one position, you will only get the first element of the generator.

SmartManoj commented 6 years ago

https://github.com/duydao/Text-Pastry/blob/master/RELEASENOTES.md#repeat-argument-x-arg

SmartManoj commented 6 years ago

s 1 x5