From 81c73455c17c80a82971563fcf1b338bde2b21d3 Mon Sep 17 00:00:00 2001
From: hogelog
Date: Mon, 15 Dec 2008 08:45:43 +0000
Subject: * fix lower-case hintchars bug.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26776 d0d07461-0603-4401-acd4-de1884942a52
---
char-hints-mod2.js | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
(limited to 'char-hints-mod2.js')
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 =
character hint mode.
hogelog
0.0.1
- 2.0pre
+ 2.0pre 2008/12/12
2.0pre
input hint command line.
UpperCase => select char-hint label.
+== OPTIONS ==
+set histchars="hjkl" => show char-hint use h, j, k, l.
+
+== TODO ==
+ * support hinttimeout.
+ ]]>
+ 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");
--
cgit v1.2.3