Home Download Buy Blog Forum Support

Inc-Dec-Value (ST2 and ST3)

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby whololo on Thu Dec 08, 2011 11:58 am

Any good idea on how to easy convert something like
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>
<li>1</li>

to

<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>

thx
whololo
 
Posts: 12
Joined: Fri Jul 08, 2011 10:47 am

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby guillermooo on Thu Dec 08, 2011 1:23 pm

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 :/
guillermooo
 
Posts: 729
Joined: Thu Jul 23, 2009 9:06 am

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby rmaksim on Fri Dec 09, 2011 8:15 pm

whololo wrote:<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>

If you are using ZenCoding you can write the following:
Code: Select all
li*5>{$}
and press Tab
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby sleet on Fri Dec 16, 2011 7:50 am

I just want to say that this plugin is just fu****g great!!! :)
Awesome work!
sleet
 
Posts: 7
Joined: Wed Sep 14, 2011 5:28 pm

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby rmaksim on Mon Jan 02, 2012 6:39 pm

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

v0.1.0:
Code: Select all
hallo_World -> Hallo_world

v0.1.1:
Code: Select all
hallo_World -> Hallo_World
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby kuroir on Tue Jan 17, 2012 10:08 am

Awesome update. Thank you!
kuroir
 
Posts: 71
Joined: Thu Sep 01, 2011 11:28 pm
Location: Mexico

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby natebeaty on Tue Jan 17, 2012 10:36 pm

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:

Code: Select all

    { "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" } }

Last edited by natebeaty on Wed Jan 18, 2012 1:55 pm, edited 1 time in total.
natebeaty
 
Posts: 122
Joined: Wed Apr 06, 2011 8:28 pm
Location: Chicago, IL

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby rmaksim on Wed Jan 18, 2012 6:26 am

natebeaty wrote:i still think this makes the most sense for OSX:

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
rmaksim
 
Posts: 59
Joined: Sat Jul 02, 2011 7:31 pm

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby natebeaty on Wed Jan 18, 2012 1:59 pm

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.
natebeaty
 
Posts: 122
Joined: Wed Apr 06, 2011 8:28 pm
Location: Chicago, IL

Re: Inc-Dec-Value +BONUS:string actions(upper/lower/capitalize)

Postby aziz on Wed Jan 18, 2012 6:14 pm

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.
PlainTasks: my opinionated todo plugin
tmThemeEditor color-scheme editor for SumblimeText and Textmate (code on github)
aziz
 
Posts: 40
Joined: Thu Jan 12, 2012 6:29 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: Google [Bot] and 7 guests