Bug 146998 - 'goto file' should return more matches (lazier matching by default, just like eclipses goto-file)
'goto file' should return more matches (lazier matching by default, just like...
Status: NEW
Product: utilities
Classification: Unclassified
Component: Jump To
6.x
All All
: P3 with 1 vote (vote)
: TBD
Assigned To: Tomas Zezula
Jiri Prox
:
: 129108 182550 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-09-11 22:28 UTC by fpauser
Modified: 2013-12-09 18:40 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fpauser 2008-09-11 22:28:43 UTC
Eclipses 'goto file'-plugin (http://muermann.org/gotofile/) joyfully
returns files containing a substring of the current query by default
('*' or '?' are not needed).

I think this should be the behavior of netbeans goto file too. Maybe
there should be an option: "[ ] exact matches using wildcards '*' and '?'"
which is disabled by default. All people I know who switched from eclipse
to netbeans notice the "not so lazy" goto-file pattern matching and
find it a bit annoying.

Maybe there is a chance for getting this feature into 6.5?
Comment 1 fpauser 2008-09-16 10:02:47 UTC
from eclipses goto-file plugin:

Exact Filename Matching
If the search term you enter matches the beginning of the name of an existing file exactly, this file will be opened.
Example: "struts-c" will match "struts-config.xml"

Fuzzy Filename Matching
You can also enter any number of characters that appear in the same sequence in the file you are trying to find. Names
where all capital letters are matched are given preference (CamelCase search). The more consecutive characters are
matched and the nearer the matches occur to the beginning of the filename, the higher the preference.
Examples:
"strc" will match "struts-config.xml"
"npa" will match "NewProductAction.java"
"tie" will match "tiles-defs.xml" and "TestInternal.java", with tiles-defs being given preference because two
consecutive characters are matched.

Force CamelCase matching
If you enter your search term in all caps, CamelCase matching will be forced. This is intensely useful when searching
for Java classes, which by convention are always named in CamelCase.
Example: "SC" will match "ServiceConfiguration.java", but not "struts-config.xml" 

this behavior in netbeans would be fine!
Comment 2 Petr Chytil 2008-09-17 08:09:09 UTC
reassigning to utilities/jumpto for evaluation
Comment 3 markiewb 2013-11-27 23:10:37 UTC
*** Bug 129108 has been marked as a duplicate of this bug. ***
Comment 4 markiewb 2013-11-27 23:10:57 UTC
*** Bug 182550 has been marked as a duplicate of this bug. ***
Comment 5 icaine 2013-12-06 16:16:10 UTC
Reported five years ago and still nothing:( NB is getting better and better, but this very handy feature is still missing :(especially behaviours described at https://netbeans.org/bugzilla/show_bug.cgi?id=146998#c1). Please please, implement it;)
Comment 6 Tomas Zezula 2013-12-09 15:48:39 UTC
It's not hard to implement it however it will be inconsistent with other navigation features like Go To Symbol, Go To File. It should be change globally.
If I change it it will be a regression for users which like the current behaviour.
Probably some setting or command line option will be required.
Comment 7 icaine 2013-12-09 18:40:30 UTC
Hello and thanks for the response..

I personally would appreciate this feature in all "Go To ...". Moreover i dont see any problem with users that like current behaviour because i think that there could be a simple checkbox to enable this feature (next to Case sensitive checkbox).


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo