aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-03-16 12:04:51 +0000
committeranekos2010-03-16 12:04:51 +0000
commit42d027256f21f1c0fcecf0c23d514f8b55d57803 (patch)
tree3bd16c31a508cf5b08740ae9ebe06ff30353d2d3
parentb9b25b555c38af923a9f644a1dc4d2fa2f652ccf (diff)
downloadvimperator-plugins-42d027256f21f1c0fcecf0c23d514f8b55d57803.tar.bz2
javascript 補完対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37037 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-xx-hint.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/x-hint.js b/x-hint.js
index 054c8ca..e5f8b79 100755
--- a/x-hint.js
+++ b/x-hint.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
<name lang="ja">X-Hint</name>
<description>Show the hints with given XPath.</description>
<description lang="ja">指定のXPathでヒントを表示する。</description>
- <version>1.1.0</version>
+ <version>1.1.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>
@@ -59,7 +59,7 @@ let PLUGIN_INFO =
// INFO {{{
let INFO =
<>
- <plugin name="X-Hint" version="1.0.0"
+ <plugin name="X-Hint" version="1.1.1"
href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/x-hint.js"
summary="Show the hints with given XPath."
lang="en-US"
@@ -79,7 +79,7 @@ let INFO =
</description>
</item>
</plugin>
- <plugin name="X-Hint" version="1.0.0"
+ <plugin name="X-Hint" version="1.1.1"
href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/x-hint.js"
summary="Show the hints with given XPath."
lang="ja"
@@ -176,7 +176,11 @@ let INFO =
hints.show(hintModeText);
},
{
- literal: 1
+ literal: 1,
+ completer: function (context, args) {
+ if (args.completeArg == 1)
+ completion.javascript(context);
+ }
},
true
);