aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/completion_search.coffee
AgeCommit message (Collapse)Author
2017-08-31Update URLs to HTTPS in code, pages and docsDavid Beitey
Updating URLs to use HTTPS provides greater privacy and reduces the potential of having content modified whilst in transit (as it happening more and more by ISPs, networks, state actors etc). These URLs themselves have been tested and confirmed to work over HTTPS.
2015-06-06Merge branch 'rework-completions'Stephen Blott
Conflicts: background_scripts/completion.coffee background_scripts/completion_engines.coffee
2015-06-06Re-work completions: extend engine wrapper to handle prefixes.Stephen Blott
This commit contains the bulk og the material changes for which the previous commits established the basis. 1) Add a general framework for detecting query prefixes in search URLs, adding them to query sent to the completion engine, and stripping them from the resulting suggestions. This allows the user to have a search engine... j: http://www.google.com/search?q=javascript+%s Javascript and have the prefix "javascript" included (automatically) in queries sent to completion engines, which results in substantially better suggestions. 2) Re-work completion for Google Maps in a simpler form.
2015-06-06Re-work completions: add engine wrapper.Stephen Blott
2015-06-06Re-work completions: initial refactor.Stephen Blott
The original completion-engine interface was based on three functions. With some experience, it seems there is a pattern involving explicit regular expressions which is used by all actual engine implementations. This is a refactoring to make those regular expressions explicit (and required), and is a first step towards adding additional fucntionality. This also simplifies the completion cache key (use JSON instead of some weird hash).
2015-06-04Fix issue with Google-Maps completion failing.Stephen Blott
2015-05-15Search completion; disable background-page logging.Stephen Blott
2015-05-13Search completion; complete rework of UX.Stephen Blott
This is a major reworking of how the search-completion systems works. Previously, the goal had been to emulate roughly how chrome itself handles completions. This has turned out to be a bad idea: - It creates issues around what it means to hit <Enter> in the vomnibar. - And the contents of the vomnibar change asynchronously (because we fetch completions asynchronously), so it creates the possibility that the effect of <Enter> changes depending on how long the user waits before typing <Enter>. All of that is bad. This commit changes things: - In normal omni mode, the vomnibar looks and behaves pretty much like it always has, just with some extra completion suggestions thrown in. - And in custom-search-engine mode it also behaves mostly as it has previously, but (again, possibly) with some extra completion suggestions thrown in, and with many useless suggestions excluded. This is all far more Vimium-like than Chrome-like.
2015-05-13Search completion; minor changes.Stephen Blott
2015-05-11Search completion; fix typos and small bugs.Stephen Blott
Bugs: - The serch-engine completer wasn't being configured correctly for the case when we don't have a completion engine. - Handle Control-Shift-Left/Right in vomnibar. Also: better comments.
2015-05-11Search completion; pre-merge tweaks.Stephen Blott
2015-05-11Search completion; tweak selection color.Stephen Blott
2015-05-10Search completion; even more minor tweaks.Stephen Blott
2015-05-10Search completion; move completion engines to their own file.Stephen Blott