aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattn2008-10-22 02:14:35 +0000
committermattn2008-10-22 02:14:35 +0000
commit1665695a4a04fbb74be8856a4795a66ae8008213 (patch)
treef5e28b7abc252687fdba51c574d45c91fa6dad73
parente621e1e43bda618521827f2233e9b45c7df3598e (diff)
downloadvimperator-plugins-1665695a4a04fbb74be8856a4795a66ae8008213.tar.bz2
follow latest vimperator.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21821 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--googlesuggest.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/googlesuggest.js b/googlesuggest.js
index ff6da04..9be9cfd 100644
--- a/googlesuggest.js
+++ b/googlesuggest.js
@@ -1,15 +1,15 @@
// Vimperator plugin: 'Completion by Google Suggest'
-// Last Change: 21-Mar-2008. Jan 2008
+// Last Change: 22-Oct-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
// search word completion using Google Suggest script for Vimperator 0.6.*
-liberator.commands.addUserCommand(['google'],"Search Web sites with Google Suggest",
+commands.addUserCommand(['google'],"Search Web sites with Google Suggest",
function(arg){
const endpoint = "http://www.google.co.jp/search?q=";
- //liberator.open(endpoint + encodeURIComponent(arg));
- liberator.open(endpoint + encodeURIComponent(arg),liberator.NEW_TAB);
+ //liberator.open(endpoint + encodeURIComponent(arg.string));
+ liberator.open(endpoint + encodeURIComponent(arg.string),liberator.NEW_TAB);
},
{
completer: function (filter) {