aboutsummaryrefslogtreecommitdiffstats
path: root/char-hints-mod2.js
diff options
context:
space:
mode:
authorhogelog2008-12-15 08:45:43 +0000
committerhogelog2008-12-15 08:45:43 +0000
commit81c73455c17c80a82971563fcf1b338bde2b21d3 (patch)
treeebc60c090b532c0313abc6c6ccf5bc89731ce114 /char-hints-mod2.js
parentc6781d0398885e1c9aa05a4484d044a7b6c42e2d (diff)
downloadvimperator-plugins-81c73455c17c80a82971563fcf1b338bde2b21d3.tar.bz2
* fix lower-case hintchars bug.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26776 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'char-hints-mod2.js')
-rw-r--r--char-hints-mod2.js17
1 files changed, 13 insertions, 4 deletions
diff --git a/char-hints-mod2.js b/char-hints-mod2.js
index 74eb418..3ab86e6 100644
--- a/char-hints-mod2.js
+++ b/char-hints-mod2.js
@@ -5,7 +5,7 @@ var PLUGIN_INFO =
<description>character hint mode.</description>
<author mail="konbu.komuro@gmail.com" homepage="http://d.hatena.ne.jp/hogelog/">hogelog</author>
<version>0.0.1</version>
- <minVersion>2.0pre</minVersion>
+ <minVersion>2.0pre 2008/12/12</minVersion>
<maxVersion>2.0pre</maxVersion>
<detail><![CDATA[
@@ -13,6 +13,15 @@ var PLUGIN_INFO =
LowerCase => input hint command line.
UpperCase => select char-hint label.
+== OPTIONS ==
+set histchars="hjkl" => show char-hint use h, j, k, l.
+
+== TODO ==
+ * support hinttimeout.
+ ]]></detail>
+ <detail lang="ja"><![CDATA[
+
+== Usage ==
小文字は候補を絞るためのテキスト入力に使います。
大文字は文字ラベルの選択に使います。
@@ -46,7 +55,7 @@ set histchars="hjkl" => show char-hint use h, j, k, l.
function num2chars(num) //{{{
{
var chars = "";
- var hintchars = options.hintchars;
+ var hintchars = options.hintchars.toUpperCase();
var base = hintchars.length;
do {
chars = hintchars[((num % base))] + chars;
@@ -57,9 +66,9 @@ set histchars="hjkl" => show char-hint use h, j, k, l.
} //}}}
function showCharHints(win) //{{{
{
-
- if (!win)
+ if(!win)
win = window.content;
+
for(let elem in buffer.evaluateXPath("//*[@liberator:highlight and @number]", win.document))
{
let num = elem.getAttribute("number");