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 243121

Summary: find in projects: Match should default to Basic Wildcards again, not Literal
Product: utilities Reporter: allanNB
Component: SearchAssignee: Jaroslav Havlin <jhavlin>
Status: RESOLVED WONTFIX    
Severity: normal CC: allanNB
Priority: P1    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description allanNB 2014-03-21 00:43:24 UTC
Ever since version 7? the Match dropdown has defaulted to Literal. 
Im sure I am not the only long time Netbeans user that has searched like mad for strings containing wildcards and wondered why there are no matches. There are no matches, because that damn dropdown has defaulted to Literal again!

Im sure many new users also assume that the search string can contain basic wildcards.

If this stays defaulted to Literal:
people get false search results suggesting less matches when they search with wildcards

If this defaults to "Basic wildcards" again:
Literal search still works as if Literal is selected. Its quite rare to search for any strings containing * or ?
Comment 1 Jaroslav Havlin 2014-03-21 13:54:55 UTC
The Literal match was chosen as the default option mainly because it's more consistent with Find in editor (which supports only Literal and Regexp match).

See bug 224328.

I understand that it's annoying for you, but the option is persisted. So if you change the match mode to "Basic Wildcards" after NetBeans installation, it'll be the preselected option in newly opened Find in Projects dialog.

Closing for now, I think that changing the default option again is not a good idea. Thank you for understanding.
Comment 2 allanNB 2014-03-21 14:09:29 UTC
its not persistent, never has been
if its not an actual bug, then is it a common problem?
Comment 3 Jaroslav Havlin 2014-03-21 14:31:01 UTC
(In reply to allanNB from comment #2)
> its not persistent, never has been
It works fine for me, I've just tested it (NetBeans 8, Windows 7 64 bit, JDK 8).
I'll also test it on Linux soon.

If persisting doesn't work for you, can you please attach your IDE Log? It may contain some warning or related info messages.

Thank you.
Comment 4 Jaroslav Havlin 2014-03-28 13:13:29 UTC
(In reply to Jaroslav Havlin from comment #3)
> I'll also test it on Linux soon.
It works fine for me on Linux.

My steps:
1.) Open Find in Projects dialog (Ctrl+Shift+F)
2.) Enter Containing Text value "Test123"
3.) Select Match "Basic Wildcards"
4.) Click "Find"
5.) Close the IDE
6.) Start the IDE again
7.) Open Find in Projects dialog
-> Match "Basic Wildcards" is preselected.

If it doesn't work for you in some scenario, please describe exact steps to reproduce and attach your IDE Log.
Also check and possibly attach contents of these files in ~/.netbeans/8.0/configPreferences/org/netbeans/api/search:
 - FindDialogMemory.properties
 - SearchHistory.properties

Thank you.