Incrementor
A Sublime Text 2 Plugin that can generate a sequence of numbers using search and replace.
Details
Installs
- Total 10K
- Win 5K
- Mac 3K
- Linux 1K
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 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 3 | 2 |
Mac | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 |
Linux | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text 2 Plugin: The Incrementor
A Sublime Text 2 Plugin that can generate a sequence of numbers using search and replace.
There is a Sublime Text 3 port available here.
Example (Before):
10. Bob
12. Larse
15. Billy
Find:
[0-9]+\.
Replace:\i\.
Example (After):
1. Bob
2. Larse
3. Billy
You can also take start and step arguments \i(start,step)
in parenthesis.
Example (Before):
10. Bob
12. Larse
15. Billy
Find:
[0-9]+\.
Replace:\i(10,10)\.
Example (After):
10. Bob
20. Larse
30. Billy
Lastly, The Incrementor also supports negative steps! \i(start,-step)
Example (Before):
10. Bob
12. Larse
15. Billy
Find:
[0-9]+\.
Replace:\i(100,-10)\.
Example (After):
100. Bob
90. Larse
80. Billy
Using
Use the Command Palette (Ctrl+Shift+P
) and search for Incrementor: Generate a sequence of numbers
to prompt for your find and replace.
Installing
Use Github here or Sublime Package Control
Linux:
Copy the directory to: "~/.config/sublime-text-2/Packages"
Windows 7:
Copy the directory to: "C:\Users\<username>\AppData\Roaming\Sublime Text 2\Packages"
Windows XP:
Copy the directory to: "C:\Documents and Settings\<username>\Application Data\Sublime Text 2\Packages"
Todo
- Replace based on order of selection as well as their direction. (Difficult)
- Scroll to matching pattern like sublime's default find window. (Easy)
- Allow prepending 0s to the initial number. (001, 002, 003, 004, etc.) (Intermediate)
- Add number of replaced items in statusbar after completion. (Intermediate)
Contributors
Don't forget to add yourself!
eBook Architects, Chris, Toby, AJ