ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Duplicate And Increment

by 112KA ST2/ST3

It is a sublimetext plugin that increments while duplicating lines.

Details

Installs

  • Total 367
  • Win 221
  • OS X 91
  • Linux 55
Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6
Windows 1 0 0 0 1 0 2 1 0 1 0 0 0 0 0 0 1 1 2 1 1 2 2 0 1 0 2 0 1 2 0 0 3 2 1 4 1 1 2 1 0 2 1 0 1
OS X 0 0 1 0 2 1 1 0 1 0 0 0 0 0 2 2 0 0 0 1 2 1 2 0 0 1 0 0 3 0 1 0 0 0 0 1 1 0 0 0 2 0 0 0 0
Linux 0 0 0 0 1 1 0 1 0 0 1 1 0 1 0 0 0 0 1 1 3 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 2 1 0 0

Readme

Source
raw.​githubusercontent.​com

Duplicate lines and increment

It is a plugin that duplicates lines while incrementing.
It is similar to the convenience plug-in which was in the Editor called FlashDevelop long ago.
I thought there was demand.
Multiple lines can also be incremented.
With this, you can make coding efficiently a large number of sequential number processing.

{
    "item-list":[
        { "name":"item1", "path":"./image1.jpg" }
        , { "name":"item2", "path":"./image2.jpg" }
        , { "name":"item3", "path":"./image3.jpg" }
        , { "name":"item4", "path":"./image4.jpg" }
        , { "name":"item5", "path":"./image5.jpg" }
        , { "name":"item6", "path":"./image6.jpg" }
        , { "name":"item7", "path":"./image7.jpg" }
        , { "name":"item8", "path":"./image8.jpg" }
        , { "name":"item9", "path":"./image9.jpg" }
        , { "name":"item10", "path":"./image10.jpg" }
        , { "name":"item11", "path":"./image11.jpg" }
        , { "name":"item12", "path":"./image12.jpg" }
        , { "name":"item13", "path":"./image13.jpg" }

    ...

Usage

Execute with placing the cursor (select no area)

example1

Execute with select any area

example2
Increment only selected numbers

Execute with select multiple lines

example3
Of course also json
example4

Install

  1. select “Package Control: Add Repository”
  2. input “https://github.com/112KA/duplicate_and_increment
  3. select “Package Control: Install Package”
  4. input “duplicate_and_increment”

Licence

MIT License