Home Download Buy Blog Forum Support

Any way to match case when typing over multiple ctrl+Ds?

Any way to match case when typing over multiple ctrl+Ds?

Postby cutcopypaste on Mon Nov 12, 2012 8:08 pm

It'd be awesome if when I ctrl/cmd+D through a document there was some way to match the capitalization pattern of the original selection. So if I select featured and Featured and replace it with a different word it would end up capitalized in the second instance. This may be overly specific and hard to find the exact pattern on, but it comes up for me a LOT when working on HTML.
cutcopypaste
 
Posts: 41
Joined: Tue Feb 21, 2012 9:43 pm

Re: Any way to match case when typing over multiple ctrl+Ds?

Postby bizoo on Mon Nov 12, 2012 8:27 pm

I you need to replace your text by another one in a know list, you can use these plugins that take care of the case (like "left" -> "right" or "Left" -> "Right"):
https://github.com/rmaksim/Sublime-Text-2-Inc-Dec-Value
https://github.com/gordio/ToggleBool
I you need something more generic, you have to do it by yourself, don't think somewhat like this will ever be included in the core ST2.
You can modify the ToogleBool plugin and ask for the new value instead of getting it from a predefined list.
bizoo
 
Posts: 879
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Any way to match case when typing over multiple ctrl+Ds?

Postby agibsonsw on Mon Nov 12, 2012 8:32 pm

If you use the Find dialog and click the Case-Sensitive button to the left, ST remembers this setting for Ctrl-D (and many other features).
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm


Return to General Discussion

Who is online

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