Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Quick Open enhancements & API cleanup #1530

Open
core-ai-bot opened this issue Aug 29, 2021 · 3 comments
Open

[CLOSED] Quick Open enhancements & API cleanup #1530

core-ai-bot opened this issue Aug 29, 2021 · 3 comments

Comments

@core-ai-bot
Copy link
Member

Issue by peterflynn
Wednesday Sep 05, 2012 at 23:43 GMT
Originally opened as adobe/brackets#1565


  • 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

peterflynn included the following code: https://github.com/adobe/brackets/pull/1565/commits

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Thursday Sep 06, 2012 at 23:26 GMT


Done with initial code review.

@core-ai-bot
Copy link
Member Author

Comment by peterflynn
Sunday Sep 09, 2012 at 07:45 GMT


@redmunds: Code changes pushed. I think I've fixed or responded to all of the comments above -- please let me know if you'd like any other changes.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Monday Sep 10, 2012 at 16:44 GMT


Looks good. Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant