Bug 301358 - Provide a way to search in open files.
Summary: Provide a way to search in open files.
Status: CLOSED DUPLICATE of bug 92178
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-31 07:45 EST by Fabio Zadrozny CLA
Modified: 2010-02-01 09:16 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Zadrozny CLA 2010-01-31 07:45:55 EST
Build Identifier: Build id: I20091210-1301

I'd like the possibility of searching all the currently opened files (a common use-case I have is that I start working on a task and add a number of print statements or other debug related things and before I do commit anything I want to remove those).

I think a nice option would be that the find/replace dialog (ctrl+f) had the option to 'cycle open documents' when the 'wrap search' option is specified (or a scope 'open documents).

A secondary option would be having the default search (ctrl+h) have an additional scope for open documents.

A different approach might be having it related to the files to be committed, but I think that would be complementary as I can go to the synchronize view and just open all those files (and would need an API to get the changed files -- which may be more work to implement as it'd need the adoption of version control implementors)

If this has the possibility of being accepted, I can write a patch for it (hopefully for 3.6m6).

Reproducible: Always

Steps to Reproduce:
Try to search in currently opened files.
Comment 1 Dani Megert CLA 2010-02-01 09:16:51 EST
See bug 92178 for reasons why we don't offer this in Search. Changing it in Find/Replace isn't a good idea either as this traditionally (not just in Eclipse) only looks in the current editor.

What you're looking for is already possible now:
1. choose Flat presentation in the Synchronize view
2. select all
3. search in selected resources

*** This bug has been marked as a duplicate of bug 92178 ***