From 50973a623bfe00cf06f638cade0d522152bc167c Mon Sep 17 00:00:00 2001 From: teramako Date: Thu, 19 Feb 2009 13:10:14 +0000 Subject: * fix bug * update pm command completer git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@30287 d0d07461-0603-4401-acd4-de1884942a52 --- pluginManager.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'pluginManager.js') diff --git a/pluginManager.js b/pluginManager.js index 145b0a7..49af9cd 100644 --- a/pluginManager.js +++ b/pluginManager.js @@ -4,7 +4,7 @@ var PLUGIN_INFO = Manage Vimperator Plugins Vimpeatorプラグインの管理 teramako -0.6.0 +0.6.1 2.0pre 2.0pre http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/pluginManager.js @@ -241,7 +241,7 @@ Plugin.prototype = { // {{{ data.Information = 'up to date.'; } else if (this.compVersion(this.info.version, serverResource.version) > 0 || localDate > serverDate){ - data.information = 'local version is newest.'; + data.Information = 'local version is newest.'; } else { data.Information = this.overwritePlugin(serverResource); localResource = {}; // cleanup pref. @@ -771,7 +771,6 @@ HTMLStack.prototype = { // {{{ // CODEREPOS_PLUGINS // -----------------------------------------------------{{{ var CODEREPOS = (function(){ - const codeURL = 'http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/'; const indexURL = 'http://vimperator.kurinton.net/plugins/info.xml'; var public = { plugins: [], @@ -870,6 +869,7 @@ commands.addUserCommand(['pluginmanager', 'pm'], 'Manage Vimperator plugins', }, { argCount: '*', completer: function(context, args){ + context.ignoreCase = true; if (args.length <= 1) { // for sub-command context.title = ['Sub-command', 'Description']; context.completions = [ @@ -889,10 +889,9 @@ commands.addUserCommand(['pluginmanager', 'pm'], 'Manage Vimperator plugins', ]).filter(function(row) row[0].toLowerCase().indexOf(context.filter.toLowerCase()) >= 0); } else if (args[0] == "install"){ + context.anchored = false; context.title = ["PluginName", "Name: Description"]; - context.completions = CODEREPOS.plugins.filter(function($_) - $_.URL.toLowerCase().indexOf(context.filter.toLowerCase()) >= 0 - ).filter(function($_){ + context.completions = CODEREPOS.plugins.filter(function($_){ return !getPlugins().some(function(installed){ return installed.items.updateURL ? installed.items.updateURL == $_.URL : false; }); -- cgit v1.2.3