From fb7fae4cf921ee9e39073128554628663efc5403 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 19 May 2010 16:21:46 +0000 Subject: 補完をほんのり改良 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37648 d0d07461-0603-4401-acd4-de1884942a52 --- stella.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'stella.js') diff --git a/stella.js b/stella.js index f3983df..f806de7 100644 --- a/stella.js +++ b/stella.js @@ -39,7 +39,7 @@ let PLUGIN_INFO = すてら For Niconico/YouTube/Vimeo, Add control commands and information display(on status line). ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。 - 0.31.0 + 0.31.1 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -770,8 +770,8 @@ Thanks: get description () this._description, get thumbnail () this._thumbnail, get completionText () this.command, - completionItem: function (index) ({ - text: [this.completionText, index + ': ' + this.description], + get completionItem () ({ + text: this.completionText, description: this.description, thumbnail: this.thumbnail }) @@ -1797,6 +1797,7 @@ Thanks: if (!self.player.has('relations', 'r')) U.raiseNotSupportedFunction(); + context.filters = [CompletionContext.Filter.textDescription]; context.anchored = false; context.title = ['Tag/ID', 'Description']; context.keys = {text: 'text', description: 'description', thumbnail: 'thumbnail'}; @@ -1808,8 +1809,7 @@ Thanks: : process[1].apply(this, arguments)) ]; lastCompletions = self.player.relations; - context.completions = - lastCompletions.map(function (rel, index) rel.completionItem(index + 1)); + context.completions = lastCompletions.map(function (rel) rel.completionItem); }, }, true -- cgit v1.2.3