Sublime Forum

Plugin Idea: Number Adder/substracter

#1

So here I have an idea for a plugin I would like to do myself, but I’m not sure how to do it yet.

The basic idea is to have a command to add or subtract 1 or 10 to any given number:

Example:

I have “10”, and I place my cursor anywhere direct to the number ( “|1|0|”, pipe being where the cursor can be.).
I press CTRL+UP and the number turns into “11”.
I press CTRL+ALT+UP and the number turns into “21”.
I press CTRL+ALT+DOWN and the number turns into “11”

I’ve done this with Ruby on TextMate, and it’s a good time saver when working on moving sizes of things.

Hope someone can do it.

0 Likes

Inc-Dec-Value (ST2 and ST3)
#2

Something like this?

0 Likes

#3

Totally! Thanks!

0 Likes