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.
When "Find in Projects" is opened using ctrl+shift+p from an editor window that has selected text, the search field should be automatically populated with the selected text.
I see. This should be simple to implement. Probably all necessary modification would be in class org.netbeans.modules.search.BasicSearchForm.
*** Issue 109459 has been marked as a duplicate of this issue. ***
Created attachment 60055 [details] Suggested patch for BasicSearchForm.java (and project.xml)
Marian, please see the attached patch and comment. The code has been copied from org.netbeans.modules.editor.impl.SearchBar.initBlockSearch() of "Editor" project. The patch introduces new dependency on Editor Library 2, what could be bit strange.
*** Issue 141186 has been marked as a duplicate of this issue. ***
For the love of god, please do this.
The patch is almost correct. The only mistake is that it is maybe too aggressive. When the user presses button "Modify Criteria" in the Search Results window, they would probably expect that the original criteria are pre-filled in the Find dialogue, and not e.g. text currently selected in the editor. The current patch does not take care of this use-case.
implemented in core-main/rev/ae30d66d6de4
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/ae30d66d6de4 User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #68387: Find in Projects should automatically search on selected text
Hi all, impl. of this RFE is part of recent daily builds. Could someone verify it works as expected? The latest IDE build is available on http://bits.netbeans.org/download/trunk/nightly/latest/ Thanks
This is great, I downloaded netbeans-trunk-nightly-201108040600-ml-php-linux.sh and it worked exactly as expected. Thank you ! Is there any recommendation against NOT using nightly build for production use ? dev-only settings which would slow the IDE maybe ?
(In reply to comment #11) > Is there any recommendation [for] NOT using nightly build for production use? Just that they are barely tested, and from time to time serious bugs will appear in a nightly before they are detected and corrected. That said, they are usually fine.
it was asked by Studio users very much (Studio is based on 7.0.1)