Home Download Buy Blog Forum Support

Find Replace Bug With Preserving Case

Find Replace Bug With Preserving Case

Postby rexibit on Thu Oct 13, 2011 4:49 pm

Sublime Text 2 Build 2127
Linux Mint 11

This has existed for months, but I haven't reported it because I figured it would eventually go away, but it hasn't.

Code: Select all
Text: <label for="field">Field Name</label>
Replace: field
Replace With: someNewField
Outputs: <label for="somenewfield">Field Name</label>


Why can't the lowercase version just copy and insert what's in the "Replace With" section?

Also, if the text to be replaced has capitalization, then what's replaced with will have capitalization based on that, so:

Code: Select all
Text: <label for="someField">Field Name</label>
Replace: someField
Replace With: anotherField
Outputs: <label for="anotHerfield">Field Name</label>


As you can see, this output is even less desirable.

I've tried playing with the replace filters, but they don't help. Is there some configuration I can edit to make the search and replace work like I want?
rexibit
 
Posts: 2
Joined: Thu Oct 13, 2011 4:36 pm

Re: Find Replace Bug With Preserving Case

Postby tito on Thu Oct 13, 2011 6:09 pm

There is a button "Preserve Case" which does exactly that. Unchecked :?: :roll:
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Find Replace Bug With Preserving Case

Postby rexibit on Fri Oct 14, 2011 2:28 pm

I must be retarded, I could have sworn it did that even with it unchecked, but I just tried and it works like I want. Thanks.
rexibit
 
Posts: 2
Joined: Thu Oct 13, 2011 4:36 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], JeriX, Yahoo [Bot] and 31 guests