Sublime Text plugin to increase/decrease selected values.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
Default.sublime-commands
LICENSE
increment_decrement.py
readme.md

readme.md

Increment Decrement

GitHub license GitHub tag

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