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.
Let's say I have 3 files in my project: AArch64TargetInfo.java AArch64beTargetInfo.java AArch64leTargetInfo.java When I put in clipboard the full file name AArch64TargetInfo.java and press Go To File then instead of fully matched AArch64TargetInfo.java I see the selection of AArch64beTargetInfo.java. I'd expect "full match" to have priority over partially matched choices This problem is especially confusing when I use File:Line notation See attachement
Created attachment 154545 [details] incorrect choice in Go To File dialog
All the: AArch64TargetInfo.java AArch64beTargetInfo.java AArch64leTargetInfo.java match camel case insensitive query: a*arch*64*target*info*.java* The ordering is done by org.netbeans.modules.jumpto.EntityComparator written by CND team (vvg@netbeans.org). I've always preferred different one (ordering by levenshtein distance) but alphabet won. I still have prototype of LS ordering for GoToSymbol, see attached schreenshot. However this will remove the alphabetical ordering.
Created attachment 154552 [details] picture
Created attachment 154553 [details] patch for GTS
*** Bug 254910 has been marked as a duplicate of this bug. ***
@Tomas: How about this? Keep the alphabetic ordering, but select the best matching entry (f.e. by LS distance) F.e. in https://netbeans.org/bugzilla/attachment.cgi?id=154545 the third row has the selection focus
Fixed jet-main: http://hg.netbeans.org/jet-main/rev/8f3a3358b27f Added a possibility to change the ordering to similarity, the default is alphabetical sort due to compatibility but can be changed in the: Tools/Options/Editor/Go To.
Created attachment 164334 [details] Options Panel
So now it is as markiewb said? The 3rd row will be on top of it and will be selected, because this is the right/first match for AArch64TargetInfo.java?
No, if you switch the option, the ordering of items is changed to Levenshtein distance.
Thx, I got it.