You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Christian Lenz (JIRA)" <ji...@apache.org> on 2019/02/21 17:10:00 UTC

[jira] [Commented] (NETBEANS-2156) Fuzzy search for Go To File/Symbol/Type

    [ https://issues.apache.org/jira/browse/NETBEANS-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16774322#comment-16774322 ] 

Christian Lenz commented on NETBEANS-2156:
------------------------------------------

Here is the description of the go to plugin (I don't know whether it still exists or not, maybe now native implemented:
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"

> Fuzzy search for Go To File/Symbol/Type
> ---------------------------------------
>
>                 Key: NETBEANS-2156
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2156
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: utilities - Jump To
>    Affects Versions: Next
>         Environment: Windows 10 - 64bit, NetBeans 10, JDK 10.0.2
>            Reporter: Christian Lenz
>            Priority: Major
>              Labels: fuzzy, performance, search
>
> When I want to jump to a file and I don't want to write the whole name, I use only a couple of characters, called fuzzy search (like Java code completion is using that). So when I open Go To File and write "page" I will got the result of all what page is inside AND and this is new, everything what have "p a g e" is inside.
> So I was searching for the package.json and when I type "page" it should be found too. Not on top, if there is more like "pagebla" or "PageBar" or "BlaPageBla/blapagebla" but it should be in the result list. So when I now search for "page.js" or "pagejs" it should be more clear what I want to find -> "package.json". This is how VS Code handles it and IDEA too. Maybe Eclipse too, but I don't know it.
> This will makes live easier. I know that the result list will be big but type one or two more characters to filter the list. That's it. See no problems with that.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists