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 190
  • Win 118
  • OS X 45
  • Linux 27
Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11
Windows 0 0 1 0 1 2 3 0 2 0 1 0 0 3 0 3 0 0 0 0 0 1 0 1 1 0 1 2 1 0 1 1 1 2 0 1 1 2 3 1 0 1 0 1 0 1
OS X 0 0 0 1 1 1 1 0 0 1 1 0 0 1 0 1 3 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 1 2 2 1 0 1 0 1 0
Linux 2 0 0 0 0 0 0 1 0 1 0 0 0 2 0 0 0 0 1 1 1 0 1 0 1 1 1 0 0 0 0 0 0 1 0 0 2 1 0 0 0 0 0 0 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