[Webkit-unassigned] [Bug 93166] Web Inspector: Select the shortest match in the FilteredItemSelectionDialog

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 9 15:34:04 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=93166





--- Comment #9 from johnjbarton <johnjbarton at chromium.org>  2012-08-09 15:34:28 PST ---
Here is a better version, and a test for it.

Now we select the shortest regex match, so we favor correct consecutive characters, and we break ties by selecting the shortest strings. Eg if the choices are

AStringClass.js
String.js
NotMatched.js
ZStringClass.js

and the search is "String" we pick String.js.

For scale-ability we only select among the items in the viewport. I think this is ok, it will only matter for cases with lots of nearly identical entries.

I'd look into the issue of CamelCase matching if we had a test case....

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list