adobe/brackets — pull request #1565 by peterflynn (2012-09-05 23:43:40+00:00)
Title: Quick Open enhancements & API cleanup

* Allow search() to return a result object instead of a string; this value is now passed to itemFocus/Select() instead of a raw DOM node. Upshot: no longer need to stash metadata in the list item HTML and parse it back out later.
* Better ranking of search results: prioritize into tiers (favoring exact matches, then matches starting at start of the string); sort identical filenames by path instead of arbitrary order
* Expose a public API to open a particular search mode (making it cleaner to add entirely new search modes with a new prefix character)
* Fix a few minor bugs:
* In HTML id search, attrs like "data-button-id" created many false positives (due to "id" suffix)
* Filenames with no extension were truncated
* JS and CSS search were showing results in reverse-alphabetical order
* Clarify / fix inaccuracies in documentation