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 26810 - Can't easily search/replace for tabs and newlines
Summary: Can't easily search/replace for tabs and newlines
Status: RESOLVED DUPLICATE of bug 112353
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 4 votes (vote)
Assignee: issues@editor
URL:
Keywords:
: 100407 (view as bug list)
Depends on: 19680
Blocks:
  Show dependency tree
 
Reported: 2002-08-27 14:47 UTC by ats37
Modified: 2007-11-05 13:42 UTC (History)
3 users (show)

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 ats37 2002-08-27 14:47:10 UTC
If I want to do a search & replace for tabs in a file (e.g. 
to replace them with 4 spaces), there's no easy way to 
enter the tabs in the "Find" field.  Hitting tab changes 
focus to the "Replace" field.  Instead I have to find an 
existing one in the file, copy it to the clipboard, then 
paste it into the field in the dialog.

Newlines are even worse.  Hitting Enter just performs the 
search/replace, and copying & pasting one into the field 
just gets taken as (and matched to) the space character.  
So, if I wanted to replace all occurences of >1 blank line 
with a single one, there's no way to do this using the 
Replace dialog.

It would be nice if the usual \t & \n (and, for that 
matter, the other character escape sequences as well e.g. 
\uXXXX unicode characters) were interpreted as tabs, 
newlines, etc. when searching and replacing.
Comment 1 psuk 2004-03-23 18:16:33 UTC
Changing subcomponent to "search"
Comment 2 lordpixel 2007-06-25 15:44:22 UTC
There doesn't seem to be any workaround for the 'replace' box.
Nothing entered in there will add a newline to the file
Comment 3 Jesse Glick 2007-08-08 16:17:45 UTC
*** Issue 100407 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2007-08-08 16:21:25 UTC
Some more comments in issue #100407. Seems there is a workaround for the editor, but none for file search.
Comment 5 Vitezslav Stejskal 2007-09-05 17:10:50 UTC

*** This issue has been marked as a duplicate of 112353 ***
Comment 6 ats37 2007-09-05 17:24:15 UTC
Hmm... this bug is a "duplicate" of one that wasn't raised until 5 years later, as opposed
to the other way round?  Well, I suppose that's one way to reduce the "average outstanding
issue age" statistics ;-)
Comment 7 Vitezslav Stejskal 2007-09-05 17:38:29 UTC
Ah, I'm sorry. Generally the newer the report the more recent/up-to-date info, which is not to say that old reports are
worthless of course. Also johnmuir in #112353 says he thinks it's rather defect than enhancement/feature request, so I
duped the others to his report.