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

Duplicate And Increment

by 112KA ALL

It is a sublimetext plugin that increments while duplicating lines.

Details

Installs

  • Total 2K
  • Win 1K
  • Mac 485
  • Linux 281
May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26
Windows 0 0 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 2 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

Execute with key binding

Select the area and press: super+shift+ctrl+v to duplicate and increment the selected area once. Select the area and press: super+shift+alt+v to open an input box where you can specify how many duplications and increment you want.

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