GithubHelp home page GithubHelp logo

duplicate_and_increment's Introduction

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

duplicate_and_increment's People

Contributors

112ka avatar xvrqt avatar

Stargazers

Martin Eder avatar Peter MacDonald avatar Isaac Dadzie avatar  avatar

Watchers

James Cloos avatar

Forkers

xvrqt

duplicate_and_increment's Issues

Doesn't work.

Sublime 3.2.2 build 3211

Duplicating it normally (Ctrl + Shift + D) does nothing.

The provided shortcut does nothing.

All the "documentation" says is 'Execute with...', but how to execute it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.