Sublime Forum

Inc-Dec-Value (ST2 and ST3)

#31

Any good idea on how to easy convert something like

  • 1
  • 1
  • 1
  • 1
  • 1
  • to

  • 1
  • 2
  • 3
  • 4
  • 5
  • thx

    0 Likes

    #32

    One way:

    • Install PowerShellUtils package
    • Select all numbers
    • Run “run_powershell” command
    • Type “++$a” in the prompt (without quotes)
    • Press Enter

    There might be other plugins out there to do the same, but this is the one I use. Of course, it will only work on Windows :confused:

    0 Likes

    #33

    [quote=“whololo”]

  • 1
  • 2
  • 3
  • 4
  • 5
  • [/quote]

    If you are using ZenCoding you can write the following:

    li*5>{$}and press Tab

    0 Likes

    #34

    I just want to say that this plugin is just fu****g great!!! :smile:
    Awesome work!

    0 Likes

    #35

    UPDATE: v0.1.1 capitalize only first character in strings without affecting the remaining characters.

    v0.1.0: hallo_World -> Hallo_world
    v0.1.1: hallo_World -> Hallo_World

    0 Likes

    #36

    Awesome update. Thank you!

    0 Likes

    #37

    i’ve been having to go in and comment out the default Mac OSX bindings every time you update, since it took over the super-up/down shortcuts (top/bottom of document, something i use a lot apparently).

    now i see this is fixed, but you’ve switched to using ctrl, which conflicts with two common shortcuts: ctrl-up/down are page-up/down and super-ctrl-up/down move the current line up/down. both of which are frustrating to have overritten (mostly the latter, which i also quickly found out i use frequently – when it wouldn’t work).

    i still think this makes the most sense for OSX:

    
        { "keys": "alt+up"],         "command": "inc_dec_value", "args": { "action": "inc_min" } },
        { "keys": "alt+down"],       "command": "inc_dec_value", "args": { "action": "dec_min" } },
    
        { "keys": "alt+super+up"],       "command": "inc_dec_value", "args": { "action": "inc_max" } },
        { "keys": "alt+super+down"],     "command": "inc_dec_value", "args": { "action": "dec_max" } },
    
        { "keys": "super+alt+ctrl+up"],   "command": "inc_dec_value", "args": { "action": "inc_all" } },
        { "keys": "super+alt+ctrl+down"], "command": "inc_dec_value", "args": { "action": "dec_all" } }
    
    0 Likes

    #38

    natebeaty, thanks for your proposal, but… I’m unfortunately not Mac user - I can’t recommend anything.
    please see the issue#5 and issue#7

    0 Likes

    #39

    thanks, I realize I should have just sent a pull request, but was curious if these work for other Mac users. sounds like they do, great news.

    0 Likes

    #40

    I just removed this awesome plugin just because of the shortcut conflicts on the mac. totally agree with natebeaty suggestions about the shortcuts on mac.

    0 Likes

    #41

    UPDATE: v0.1.3 - added support for the mouse wheel

    Instead of the arrows can use your mouse wheel.

    0 Likes

    #42

    Fantastic plugin, thanks for the update!

    0 Likes

    #43

    UPDATE: v0.1.4 - Saving the position of the cursors/selections on the change
    github.com/rmaksim/Sublime-Text … ue/pull/14

    UPDATE: v0.1.5 - Don’t place action in undo history when nothing happens
    github.com/rmaksim/Sublime-Text … /issues/15

    0 Likes

    #44

    Great idea! I’ll definitely use it!

    0 Likes

    #45

    UPDATE: v0.1.6 - (upper, lower, capitalize) works on non-ascii strings
    github.com/rmaksim/Sublime-Text … /issues/20

    UPDATE: v0.1.7 - Swapping the color notation in CSS
    github.com/rmaksim/Sublime-Text … /issues/19

    from:

    color: rgba(0,17,34,0.4);

    to:

    color: #001122; /* alpha: 0.4 */

    again:

    color: rgba(0,17,34,0.4);
    0 Likes

    #46

    Now supports both ST2 and ST3!

    https://sublime.wbond.net/packages/Inc-Dec-Value

    0 Likes

    #47

    UPDATE: v0.1.8 - #29 Fix apply_hex_color exception
    github.com/rmaksim/Sublime-Text … ue/pull/29

    UPDATE: v0.1.9 - Fixed apply_integer (x -> -x when cursor before x)

    0 Likes

    #48

    great plugin. I was going to sit down and start work on essentially the same thing tonight since most of the others I found didn’t work or didn’t do what I wanted.
    I’m kind of glad I found this and dissapointed I don’t get to write it all at the same time.

    0 Likes

    #49

    UPDATE: (v0.1.10) v0.1.11 - #31 ST3: Fixed - Getting TypeError in console when using the number inc/dec functions
    github.com/rmaksim/Sublime-Text … /issues/31

    UPDATE: v0.1.12 - #27 Added ability to autosave after incrementing
    github.com/rmaksim/Sublime-Text … /issues/27

    Added “autosave” in inc_dec_value.sublime-settings

    0 Likes

    #50

    UPDATE: v0.1.13 - #35 Cycle through enum with Java capitalization
    github.com/rmaksim/Sublime-Text … /issues/35

    “centerX”, “centerY”]
    or
    “screenLeft”, “screenRight”]

    0 Likes