aboutsummaryrefslogtreecommitdiffstats
path: root/walk-input.js
diff options
context:
space:
mode:
Diffstat (limited to 'walk-input.js')
-rw-r--r--walk-input.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/walk-input.js b/walk-input.js
index 97391f1..caff76d 100644
--- a/walk-input.js
+++ b/walk-input.js
@@ -18,6 +18,36 @@
// <textarea name="comment"></textarea>
// </html>
+// PLUGIN_INFO {{{
+let PLUGIN_INFO =
+<VimperatorPlugin>
+ <name>Walk Input</name>
+ <description>The focus walks "input" and "textarea" elements.</description>
+ <version>1.1</version>
+ <author mail="tekezo@pqrs.org">Takayama Fumihiko</author>
+ <license>BSD</license>
+ <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/walk-input.js</updateURL>
+ <minVersion>2.0</minVersion>
+ <maxVersion>2.1pre</maxVersion>
+ <detail><![CDATA[
+ The focus walks <input> & <textarea> elements.
+ If you type M-i first, the focus moves to "<input name='search' />".
+ Then if you type M-i once more, the focus moves to "<input name='name' />".
+
+ >||
+ <html>
+ <input name="search" />
+ <a href="xxx">xxx</a>
+ <a href="yyy">yyy</a>
+ <a href="zzz">zzz</a>
+ <input name="name" />
+ <textarea name="comment"></textarea>
+ </html>
+ ||<
+ ]]></detail>
+</VimperatorPlugin>;
+// }}}
+
(function () {
var xpath = '//input[@type="text" or @type="password" or @type="search" or not(@type)] | //textarea';