diff options
| author | Phil Crosby | 2012-05-05 18:13:48 -0700 |
|---|---|---|
| committer | Phil Crosby | 2012-05-05 18:32:14 -0700 |
| commit | 0638daca21aef47b8cc91a366e21676679903c0c (patch) | |
| tree | beeec9a78fb1c9c4070805f736bc67691afc55f9 /background_page.html | |
| parent | c2e8618fabd68fb9a920e5b6310e92fe31313e9d (diff) | |
| download | vimium-0638daca21aef47b8cc91a366e21676679903c0c.tar.bz2 | |
Name everything "completor". There's very little different between completors and completorSources.
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/background_page.html b/background_page.html index 0a120997..e4b3e915 100644 --- a/background_page.html +++ b/background_page.html @@ -53,17 +53,17 @@ var tabLoadedHandlers = {}; // tabId -> function() var completionSources = { - smart: new completion.SmartCompletionSource({ - 'wiki ': [ 'Wikipedia (en)', 'http://en.wikipedia.org/wiki/%s' ], - 'luck ': [ 'Google Lucky (en)', 'http://www.google.com/search?q=%s&btnI=I%27m+Feeling+Lucky' ], - 'cc ' : [ 'dict.cc', 'http://www.dict.cc/?s=%s' ], - ';' : [ 'goto', '%s' ], - '?' : [ 'search', function(query) { return utils.createSearchUrl(query) } ], + smart: new completion.SmartKeywordCompleter({ + "wiki ": [ "Wikipedia (en)", "http://en.wikipedia.org/wiki/%s" ], + "luck ": [ "Google Lucky (en)", "http://www.google.com/search?q=%s&btnI=I%27m+Feeling+Lucky" ], + "cc " : [ "dict.cc", "http://www.dict.cc/?s=%s" ], + ";" : [ "goto", "%s" ], + "?" : [ "search", function(query) { return utils.createSearchUrl(query); }], }), - domain: new completion.DomainCompletionSource(), - bookmarks: new completion.FuzzyBookmarkCompletionSource(), - history: new completion.FuzzyHistoryCompletionSource(20000), - tabs: new completion.FuzzyTabCompletionSource(), + domain: new completion.DomainCompleter(), + bookmarks: new completion.FuzzyBookmarkCompleter(), + history: new completion.FuzzyHistoryCompleter(20000), + tabs: new completion.FuzzyTabCompleter(), } var completers = { omni: new completion.MultiCompleter([ |
