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

Installs

  • Total 83
  • Win 42
  • OS X 23
  • Linux 18
Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31
Windows 2 1 1 2 1 2 2 5 7 4 4 0 0 0 2 2 0 5 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 1 1 0 0 2 1 0 1 0 3 0 2 2 1 0 0 4 3 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 1 0 2 0 1 0 0 1 0 0 2 3 0 1 0 1 4 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

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) with one keystroke.

Features

Inspired by C-a and C-x in vim and nextval.

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.
III II IV
ix viii x
TRUE FALSE FALSE
True False False
false true true

Caveats: Roman numerals > 100 (rarely used) or < 1 (not applicable) are not supported.

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