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 224
  • Win 120
  • OS X 54
  • Linux 50
Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7
Windows 3 1 4 1 1 0 3 7 0 2 2 0 2 1 1 0 1 2 0 0 4 1 1 2 1 2 2 0 0 4 0 0 2 0 0 0 0 1 1 0 0 0 0 3 2 3
OS X 2 0 2 0 0 0 1 0 0 1 1 0 0 0 0 1 1 1 0 0 1 2 2 1 0 1 1 0 2 0 0 0 0 0 0 1 0 1 0 0 0 0 1 2 0 0
Linux 1 3 2 2 0 0 0 0 0 1 0 0 1 0 1 0 2 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 2 0 0 0 0 1 2 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