yulanggong / IncrementSelection

Add a number to each selection in Sublime Text, incremented once per selection
MIT License
113 stars 10 forks source link

Add painless method to decrement numbers/letters #5

Closed vivekkalyan closed 7 years ago

vivekkalyan commented 8 years ago

Plugin now also looks at difference between the first and second elements in selection and uses that difference as the step. If no difference is present, step defaults to 1.

Letters also wrap back to a after z.


This change is Reviewable

yulanggong commented 7 years ago

When edits second elements, the selection lose. Or you have a better way to keep the selection and edit second elements at same time?

vivekkalyan commented 7 years ago

sorry i don't understand the question. What do you mean by edit the second element? My work-flow:

  1. manually create first number and second number
  2. create dummy numbers
  3. select all numbers and apply plugin
yulanggong commented 7 years ago

https://github.com/yulanggong/IncrementSelection/blob/master/README.md#usage In this work-flow, before step 3, edit a element in selection will cause the problem. It's not an easy job to select all the numbers again to me when numbers gets more.

yulanggong commented 7 years ago

It's another way to do the same thing. Someone may need it.

Letters increment like excel before:

A, B, C, ..., X, Y, Z, AA, AB, ..., AY, AZ, BA, ... 

The letters wrapping is conflict with the original function. So I remove it.