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

Increment Decrement

by cgjosephlee ST2/ST3

Sublime Text plugin to increase/decrease selected values.

Details

  • 0.3.0
  • github.​com
  • github.​com
  • 4 months ago
  • 15 minutes ago
  • 10 months ago

Installs

  • Total 728
  • Win 406
  • OS X 169
  • Linux 153
Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5
Windows 3 1 2 0 4 0 1 4 1 2 2 1 0 0 3 3 1 2 0 1 1 1 5 2 1 2 0 0 1 2 4 1 0 0 4 0 2 0 5 1 2 5 2 0 2 3
OS X 0 5 0 0 0 1 1 0 0 1 0 0 0 1 1 1 2 2 0 0 0 1 0 0 3 0 0 0 0 0 0 1 0 1 2 2 0 1 0 0 0 0 1 0 3 0
Linux 1 1 0 1 0 0 0 0 2 0 2 0 0 1 0 0 0 0 0 0 2 0 2 1 0 0 0 0 1 2 2 1 0 0 1 1 2 0 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

Increment Decrement

GitHub license GitHub tag Package Control total downloads

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

Contributors

License

MIT