aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion.coffee
AgeCommit message (Collapse)Author
2015-05-27Consistent highlighting of search suggestions.Stephen Blott
Also suppress highlighting of matching text in previous suggestions. (It looks odd to have highlighting in some suggestions but not others, with no apparent difference to the user.)
2015-05-27Fix significant typo.Stephen Blott
Fix incorrect property name from 764d70312f292882abe4940adf9fee3d6e834327.
2015-05-27Do not de-duplicate tabs vomnibar entries.Stephen Blott
2015-05-26Change vomnibar insert-text indicator.Stephen Blott
Use a rightwards hooked arrow instead of a small greater-than sign, which according to @philc, renders as a large greater-than sign on Macs, See #1651.
2015-05-21Search completion; must return an array from this filter.Stephen Blott
2015-05-20Search completion; tweak appearance of historical search queries (descriptions).Stephen Blott
2015-05-19Search completion; minor code review.Stephen Blott
2015-05-19Add insertText visual indicator.Stephen Blott
Conflicts: background_scripts/completion.coffee
2015-05-19Search completion; tweak appearance of historical search queries.Stephen Blott
2015-05-18Fully fix 3646b8c999a9e4b864e8c529f84b64a3c2c74ff0.Stephen Blott
2015-05-18Search completion; filter out the default search.Stephen Blott
See example in diff. Do not offer a suggestion if it is what the user would get anyway if they just hit <Enter>.
2015-05-18Revert "Search completion; promote the top completion."Stephen Blott
This reverts commit 4309dcd3030687f3ed02b86bbdf7c485baaee4a5. This is a bad idea. It pushes the suggestion at the top of the list out of the way. Users aren't going to like that if it's the one they're looking for. Conflicts: background_scripts/completion.coffee
2015-05-18Search completion; retain previous suggestions (tweak highlighting).Stephen Blott
2015-05-18Search completion; retain previous suggestions (comments and tweaks).Stephen Blott
2015-05-18Search completion; retain previous (matching) suggestions.Stephen Blott
This address "UX Issue 2" from #1651. If the user types "w lake vict" and sees a suggestion "lake victoria perch", and continues "w lake vict pe", then we retain the previous suggestion (which still matches) despite the fact that the completion no longer delivers it. This creates a more consistent, Vimium-like vomnibar UX.
2015-05-18Merge branch 'search-completion-UX-tweaks'Stephen Blott
2015-05-18Merge branch 'vomnibar-insert-history-with-tab'Stephen Blott
Conflicts: background_scripts/completion.coffee
2015-05-18Search completion; remove console.log().Stephen Blott
2015-05-18Search completion; promote the top completion.Stephen Blott
This puts the first (top) completion suggestion at the top of the list: either one or two <Tab>s away, depending upon whether a domain-completer suggestion is present or not.
2015-05-18Search completion; do not adapt completion scoring.Stephen Blott
The relevancy score of completion suggestions should not change as the user continues to type. See "UX Issue 1" in #1651. (The effect of the previous implementation was that search completions would jump, unpredictably, up the suggestion list, often displacing suggestions from other completers for no reason which was apparent to the user.)
2015-05-18Disable relevancy debugging (again).Stephen Blott
Oops. I left this on, again.
2015-05-17use a less brittle approach to decoding URIs.Stephen Blott
2015-05-17For shortened URLs, do not consider case.Stephen Blott
This ensures that URLs which differ only in their case are considered duplicates, hence one is dropped.
2015-05-17TabToOpen: remove console.log.Stephen Blott
2015-05-17TabToOpen: turn off relevancy debugging.Stephen Blott
2015-05-17TabToOpen: more tidy up pre-PR (additional comments).Stephen Blott
2015-05-17TabToOpen: more tidy up pre-PR.Stephen Blott
2015-05-17TabToOpen: tidy up pre-PR.Stephen Blott
2015-05-17TabToOpen: reactivate custom search engines.Stephen Blott
When the user begins editing the inserted text from a custom-search-engine suggestion, we reactivate the original custom-search-engine mode.
2015-05-17TabToOpen: reactivate previous custom search engine.Stephen Blott
Note: There's still an unpleasant flicker when this happens. TBD: Fix this.
2015-05-17TabToOpen: use search-engine description as suggestion type.Stephen Blott
2015-05-17TabToOpen: insert queries for custom search engines.Stephen Blott
2015-05-17TabToOpen: tab to open vomnibar.Stephen Blott
`o` then `Tab` opens the vomnibar completionlist with history completions (the only completions) ranked by recently only. Hence, the most recent requests are at the top. This is a (far) simpler approach than #1662 which catches the most important use case (repeat a search with an edited query).
2015-05-16Apply decodeURI when shortening URLs.Stephen Blott
If the URL contains a query term such as vierwaldstättersee, then we render the URL encoded version in the vomnibar. It looks considerably nicer to render URL-decoded version.
2015-05-16Merge pull request #1663 from ↵Stephen Blott
smblott-github/search-completion-with-regular-relevancy Search completion with regular relevancy calculation
2015-05-16Search completion; tweak comments.Stephen Blott
2015-05-16Refactor query extraction to Utils.extractQuery().Stephen Blott
If we go with this and #1662, then we can share the utility.
2015-05-16Add insertText visual indicator.Stephen Blott
2015-05-16Search completion; reinstate relevancy-score filter.Stephen Blott
See the comment in the diff. This test was in a previous version, but was dropped because with eb0e2964fca5ef2eccc06607944df6b208b2b99f, it was (thought to be) no longer possible to filter by relevancy score since we don't know what the relevancy score will be. The filter is reinstated here because we use the simple idea that, whatever relevancy scores are assigned to completion suggestions, they will be less than the score for a perfect suggestion.
2015-05-16Search completion; alternative relevancy scoring.Stephen Blott
This is an alternative relevancy-scoring scheme for search completion. It attempts to address the "clumping" effect described in #1651 by: - Using the regular relevancy scoring scheme (but based only on the title (so, not the URL). - Weighting relevancy scores (exponentially) by the length the query (so, search suggestions score higher as the length of the query gets longer). - Weighting suggestions (fairly moderately) by their position in the suggestion list as returned by the completion engine. We generally want to retain this ordering. - Applying a calibration fudge factor to roughly calibrate (boost) search-completion suggestions with those from other search engines.
2015-05-15Add a couple more useless Google search parameters.Stephen Blott
2015-05-15Add a couple more useless Google search parameters.Stephen Blott
2015-05-15Use query text as title, if necessary and possible.Stephen Blott
2015-05-15Better explaination of query-term extract.Stephen Blott
2015-05-15Add comment explaining why we use try/catch.Stephen Blott
2015-05-15Add ? to the list of query-term separators.Stephen Blott
2015-05-15Give the vomnibar a (kind of) history (autoSelect).Stephen Blott
If we insert the text of hostory completions into the vomnibar input, then when the completions change, we'll pick up the arbitrary text of whatever happens to be the current selection. So we need to always reset the selection when the vomnibar updates. This eliminates the need for the previous autoSelect logic.
2015-05-15Give the vomnibar a (kind of) history (relevancy).Stephen Blott
2015-05-15Give the vomnibar a (kind of) history.Stephen Blott
2015-05-14Search completion; add additional filtering stage.Stephen Blott
Two things: 1. Do not fire off requests to completion engines if the relevancy score they are assigned wouldn't be enough to be included. 2. Fix off-by-one error in prepareSuggestions.