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.
I.e. if there is a text selection in the editor, make S-&-R operate only within that region for convenience. Thread on nbusers for more. Workaround: move cursor to start of desired region, press Ctrl-H. Dialog will begin searching there. Close dialog when at end of desired region.
I suppose this would be desired as a context menu item when there is a text selection, and perhaps also a modification to the behavior of Ctrl-H or Edit -> Replace.
Set target milestone to TBD
*** Issue 36213 has been marked as a duplicate of this issue. ***
We should add something like: [x] Current Selection Only in Find/Replace dialog. Things to consider: 1. Selected text appears in Find/Replace dialog as default value. We want to keep this functionality, as this is default behavior in most editors 2. When should we make the option (Current Selection Only) pre-set? If 1 is true, then it doesn't make sense to pre-set the option everytime when user selects the code. So either 2.1 it will be false all the time and user will specifically check it, or 2.2 we need to find out a heuristic alghoritm. Example from non-IDE world - openoffice: if the selection is within one paragraph, it expects that user is looking in whole document. If the selection spawns multiple paragrahs, it defaults the option in File/Replace dialog to [x] Current selection only We might use similar approach - just limit it to one line, as the expectation is that if user selects multiple lines, he wants to select in this block. User that want to find exactly the same block (e.g. mutliple lines) can uncheck the option.
Changing subcomponent to "search"
*** Issue 41914 has been marked as a duplicate of this issue. ***
Setting target milestone to 4.1 according to 41914.
*** Issue 6801 has been marked as a duplicate of this issue. ***
implemented in [maintrunk] /cvs/editor/libsrc/org/netbeans/editor/BaseSettingsInitializer.java,v <-- BaseSettingsInitializer.java new revision: 1.24; previous revision: 1.23 /cvs/editor/libsrc/org/netbeans/editor/Bundle.properties,v <-- Bundle.properties new revision: 1.53; previous revision: 1.52 /cvs/editor/libsrc/org/netbeans/editor/DocumentFinder.java,v <-- DocumentFinder.java initial revision: 1.1 /cvs/editor/libsrc/org/netbeans/editor/DrawLayerFactory.java,v <-- DrawLayerFactory.java new revision: 1.43; previous revision: 1.42 /cvs/editor/libsrc/org/netbeans/editor/FindSupport.java,v <-- FindSupport.java new revision: 1.61; previous revision: 1.60 /cvs/editor/libsrc/org/netbeans/editor/SettingsDefaults.java,v <-- SettingsDefaults.java new revision: 1.45; previous revision: 1.44 /cvs/editor/libsrc/org/netbeans/editor/SettingsNames.java,v <-- SettingsNames.java new revision: 1.17; previous revision: 1.16 /cvs/editor/libsrc/org/netbeans/editor/ext/FindDialogPanel.form,v <-- FindDialogPanel.form new revision: 1.9; previous revision: 1.8 /cvs/editor/libsrc/org/netbeans/editor/ext/FindDialogPanel.java,v <-- FindDialogPanel.java new revision: 1.12; previous revision: 1.11 /cvs/editor/libsrc/org/netbeans/editor/ext/FindDialogSupport.java,v <-- FindDialogSupport.java new revision: 1.54; previous revision: 1.53 /cvs/editor/src/org/netbeans/modules/editor/options/BaseOptions.java,v <-- BaseOptions.java new revision: 1.98; previous revision: 1.97 /cvs/editor/src/org/netbeans/modules/editor/options/Bundle.properties,v <-- Bundle.properties new revision: 1.76; previous revision: 1.75
Verified.