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.2.1
  • github.​com
  • github.​com
  • 5 months ago
  • 42 minutes ago
  • 5 months ago

Installs

  • Total 367
  • Win 197
  • OS X 90
  • Linux 80
Apr 22 Apr 21 Apr 20 Apr 19 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
Windows 1 1 0 1 3 0 4 0 1 0 0 0 1 3 2 1 0 0 1 3 1 0 1 1 2 2 1 3 3 0 4 4 3 2 3 2 0 0 1 0 0 2 2 1 1 3
OS X 0 1 0 1 1 3 1 0 0 1 1 0 1 0 1 0 2 0 1 1 3 0 0 0 1 0 0 1 1 0 0 0 1 0 1 0 1 1 1 0 2 2 0 0 0 0
Linux 0 0 0 0 1 0 0 0 0 0 1 2 1 0 1 1 1 0 0 2 0 0 0 0 1 0 2 1 0 0 1 0 0 2 0 0 1 0 1 1 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