Increment Decrement
Sublime Text plugin to increase/decrease selected values.
Details
Installs
- Total 3K
- Win 2K
- Mac 894
- Linux 588
Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 2 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Mac | 0 | 0 | 1 | 0 | 0 | 2 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 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 |
Linux | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
Increment Decrement
A Sublime Text plugin to increase/decrease values (integer, float, Roman numerals, boolean, etc.) with one keystroke.
Features
Inspired by C-a
and C-x
in vim and nextval.
Integers and decimals:
value | decrement | increment |
---|---|---|
5 | 4 | 6 |
-1 | -2 | 0 |
001 | 000 | 002 |
4.99 | 4.98 | 5.00 |
-1.1 | -1.2 | -1.0 |
.2 | .1 | .3 |
2. | 1. | 3. |
Binary and hexadecimal:
value | decrement | increment |
---|---|---|
0xe | 0xd | 0xf |
0b1010 | 0b1001 | 0b1011 |
Roman numerals:\ Cases are auto handled.\ Caveats: Roman numerals > 100 (rarely used) or < 1 (not applicable) are not supported.
value | decrement | increment |
---|---|---|
III | II | IV |
ix | viii | x |
Booleans:\ Cases are auto handled.
value | decrement | increment |
---|---|---|
TRUE | FALSE | FALSE |
True | False | False |
yes | no | no |
Installation
Via Package Control
Install Package Control and search for Increment Decrement
.
Manual installation
Clone this repo to your package folder Preferences -> Browse Packages
.
Usage
Place the cursor around the value or select the wanted value, then hit the keystroke!
Tip: Use multi-cursors to select multiple values. - Select a region and hit cmd + shift + l to place cursors to every EOL (official doc). - Hold cmd ( ctrl on windows) and click to place multiple cursors.
Key-bindings (OSX)
- cmd + ctrl + a : increase the values
- cmd + ctrl + x : decrease the values
Key-bindings (Windows, Linux)
- ctrl + alt + a : increase the values
- ctrl + alt + x : decrease the values
Command palette
Hit cmd + shift + p and search increment
or decrement
.
Links
- Where we started
- Inc-Dec-Value: A good and similar package, but unmaintained.
License
MIT