This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 117771 - Case insensitive replace should preserve case in the replacement text
Summary: Case insensitive replace should preserve case in the replacement text
Status: RESOLVED DUPLICATE of bug 80732
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-04 13:25 UTC by sjs
Modified: 2008-01-23 09:57 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sjs 2007-10-04 13:25:33 UTC
When doing a case insensitive search and replace, if the replacement text is all lowercase then it should be transformed
to match the case of the text it replaces.  For example, I search for 'username' and replace it with 'name' (case
insensitive).  The current behaviour is to replace everything with the provided replacement text verbatim, e.g.

 |  print "Username: "
 |  username = gets
 |  puts "Hello #{username}"

becomes

 |  print "name: "
 |  name = gets
 |  puts "Hello #{name}"


Ideally it should produce the following result:

 |  print "Name: "
 |  name = gets
 |  puts "Hello #{name}"

If I'm not mistaken the renaming refactoring tool suffers from the same problem.
Comment 1 Jiri Prox 2007-10-05 08:38:23 UTC
This is rather an enhancement
Comment 2 Vitezslav Stejskal 2008-01-23 09:57:44 UTC

*** This issue has been marked as a duplicate of 80732 ***