Community
Participate
Working Groups
Build ID: I20080617-2000 Steps To Reproduce: Just ... try to use file search more than a couple times in a row. More information: Seriously, though, binding search scope to the current selection causes really obnoxious behavior with the File Search dialog. It's almost ALWAYS wrong. I click on a folder and Search, which correctly chooses "Selected Resources". You then click into some code to make a change and realize you want to search for something different, so you open search again, and invariably it's now reset to Workspace, which is almost NEVER desirable. Likewise, if you select "Enclosing Project" and search then just want to change your search terms and reopen, Enclosing Project is now grayed out and workspace is selected. I think search is trying to be too smart for its own good here ... I would rather see it trying to be less clever about dynamically looking at the current selection and instead just preserve my previous settings. If i open search twice, it's far more intuitive to be able to just re-execute the search I just executed. Especially with "enclosing project," at least preserve that one. I know this is a classic vague bug where I don't know exactly how I want it to behavior, nor have I thought out all the ramifications of this request, but what I can say for sure is that the vast majority of the time, the scope selection is incorrect and often fighting against what I have previousl explicitly set.
The problem is that the 'Selected resources' setting is lost (turned into 'Workspace') when opening the search dialog when in an editor. This is true for all searches not just File Search. Fixing bug 108247 will fix this issue. *** This bug has been marked as a duplicate of bug 108247 ***