aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
authoranekos2010-05-19 16:21:46 +0000
committeranekos2010-05-19 16:21:46 +0000
commitfb7fae4cf921ee9e39073128554628663efc5403 (patch)
tree7d28ec625d64fa9fb30a346353c6493e305db46d /stella.js
parent4cd9f6154e52fec1bce73e9f7fdf42814b1a8b71 (diff)
downloadvimperator-plugins-fb7fae4cf921ee9e39073128554628663efc5403.tar.bz2
補完をほんのり改良
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37648 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js10
1 files changed, 5 insertions, 5 deletions
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 =
<name lang="ja">すてら</name>
<description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description>
<description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description>
- <version>0.31.0</version>
+ <version>0.31.1</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -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