Skip to content

Commit

Permalink
Add usage notes
Browse files Browse the repository at this point in the history
  • Loading branch information
yulanggong committed Oct 14, 2014
1 parent c9dcc85 commit f16f24d
Showing 1 changed file with 64 additions and 1 deletion.
65 changes: 64 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,64 @@
Increment Selection==================Add a number to each selection in Sublime Text, incremented once per selection.You may also insert the number of line containing the selection by using the '#' symbol.This plugin is based on [Riccardo Marotti](http://stackoverflow.com/users/761777/riccardo-marotti)'s answer of [this question](http://stackoverflow.com/questions/14574941/add-a-number-to-each-selection-in-sublime-text-2-incremented-once-per-selection) on stackoverflow. Usage is in Riccardo Marotti's answer. The default hotkey is <code>ctrl + alt + i</code>.Examples----------Tips: <code>[]</code> stand for a selection, <code>|</code> stand for a caret. [1] text [1] text [1] -> 1| text 2| text 3| [a] text [a] text [a] -> a| text b| text c| [A] text [A] text [A] -> A| text B| text C| [01] text [01] text [01] -> 01| text 02| text 03| [05,2] text [05,2] text [05,2] -> 05| text 07| text 09| [5,-1] text [5,-1] text [5,-1] -> 5| text 4| text 3| [a,3] text [a,3] text [a,3] -> a| text d| text g| [#] line 27 -> 27| line 27 [#] line 28 -> 28| line 28
Increment Selection
==================

Add a number to each selection in Sublime Text, incremented once per selection.
You may also insert the number of line containing the selection by using the '#' symbol.

This plugin is based on [Riccardo Marotti's answer](http://stackoverflow.com/a/14578077) on StackOverflow. The default hotkey is <kbd>ctrl</kbd> <kbd>alt</kbd> <kbd>i</kbd> or <kbd>cmd</kbd> <kbd>ctrl</kbd> <kbd>i</kbd>.

Usage
-------

Place the cursors where you need:

![step 1](http://i.stack.imgur.com/rBPkj.png)

Insert the number the counter should start from (in this case 1):

![step 2](http://i.stack.imgur.com/hODtW.png)

Select the number you typed (<kbd>shift</kbd> <kbd><&mdash;</kbd>):

![step 3](http://i.stack.imgur.com/EJLco.png)

Type the shortcut:

![step 4](http://i.stack.imgur.com/w7wpJ.png)


Examples
----------

Tips: `[]` stands for a selection, `|` stands for a caret.

[1] text [1] text [1] -> 1| text 2| text 3|

[a] text [a] text [a] -> a| text b| text c|

[A] text [A] text [A] -> A| text B| text C|

[01] text [01] text [01] -> 01| text 02| text 03|

[05,2] text [05,2] text [05,2] -> 05| text 07| text 09|

[5,-1] text [5,-1] text [5,-1] -> 5| text 4| text 3|

[a,3] text [a,3] text [a,3] -> a| text d| text g|

[#] line 27 -> 27| line 27
[#] line 28 -> 28| line 28















0 comments on commit f16f24d

Please sign in to comment.