From 31cfad9f0cf0bee62a9e7faf957532715c9b35cd Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 4 Mar 2010 11:26:54 +0000 Subject: ドキュメント追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36930 d0d07461-0603-4401-acd4-de1884942a52 --- feedSomeKeys_3.js | 275 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 187 insertions(+), 88 deletions(-) (limited to 'feedSomeKeys_3.js') diff --git a/feedSomeKeys_3.js b/feedSomeKeys_3.js index 71f002a..7dd29cd 100755 --- a/feedSomeKeys_3.js +++ b/feedSomeKeys_3.js @@ -39,7 +39,7 @@ let PLUGIN_INFO = feedSomeKeys 3 feed some defined key events into the Web content キーイベントをWebコンテンツ側に送る - 1.6.0 + 1.6.1 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -78,93 +78,192 @@ lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u ; // }}} // INFO {{{ -let INFO = - - anekos - New BSD License - -

- Feed key events directly into web contents. -

- - :fmap - :fmap -events=event-name-list -urls=urlpattern lhs rhs - -

- Define one mapping. -

-

- If -urls=urlpattern is given, - the mappings becomes effective mappings only on the page specifed by urlpattern. -

-
-
- - :fmaps - :fmaps -events=event-name-list -urls=urlpattern mapping-pair .... - -

- Two or more mappings are defined at once. - mapping-pair is a pair of key names separated by ",". -

e.g. "<Leader><S-j>,j"

-

-

- If -urls=urlpattern is given, - the mappings becomes effective mappings only on the page specifed by urlpattern. -

-
-
- - :fmapc - :fmapc! url-pattern - -

- Remove the mappings matched with url-pattern. - If "!" is given, remove all mappings. -

-
-
- - :funmap - :funmap -urls=urlpattern lhs - -

- Remove the mappings. -

-

- If you wish to remove url-local mappings, give -urls=urlpattern. -

-
-
-

event-name

-

- event-name-list option follows a list of below values. -

- "v-" values use virtual key code. -

-

fmaps examples for .vimperatorrc

-

If you input directly these commands in vimperator commandline, remove the ":lazy".

- -:command! -nargs=+ lazy autocmd VimperatorEnter .* <args> -:lazy fmaps -u='mail\.google\.com/mail' c / j k n p o u e x s r a # [ ] ? gi gs gt gd ga gc -:lazy fmaps -u='mail\.google\.com/mail/.*/[0-9a-f]+$' c / j,n k,p n,j p,k o u e x s r a # [ ] ? gi gs gt gd ga gc -:lazy fmaps -u='www\.google\.co\.jp/reader' -events=vkeypress j k n p m s v A r S N P X O gh ga gs gt gu u / ? J K -:lazy fmaps -u='(fastladder|livedoor)\.com/reader' j k s a p o v c i,p <Space> <S-Space> z b < > q w e,g -:lazy fmaps -u='https?://www\.rememberthemilk\.com/home/' j k m i c t ? d F,f G,g S,s L,l Y,y H,h M,m <Del> <C-S-Left> <C-S-Right> -:lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/list' o j k -:lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u - -
; +let INFO = <> + + anekos + New BSD License + +

+ Feed key events directly into web contents. +

+ + :fmap + :fmap -events=eventnamelist -urls=urlpattern lhs rhs + +

+ Define one mapping. +

+

+ If -urls=urlpattern is given, + the mappings becomes effective mappings only on the page specifed by urlpattern. +

+
+
+ + :fmaps + :fmaps -events=eventnamelist -urls=urlpattern mapping-pair .... + +

+ Two or more mappings are defined at once. + mapping-pair is a pair of key names separated by ",". +

e.g. "<Leader><S-j>,j"

+

+

+ If -urls=urlpattern is given, + the mappings becomes effective mappings only on the page specifed by urlpattern. +

+
+
+ + :fmapc + :fmapc! urlpattern + +

+ Remove the mappings matched with urlpattern. + If "!" is given, remove all mappings. +

+
+
+ + :funmap + :funmap -urls=urlpattern lhs + +

+ Remove the mappings. +

+

+ If you wish to remove url-local mappings, give -urls=urlpattern. +

+
+
+

urlpattern

+

+ The value of urlpattern should be regular expression. +

+

eventnamelist

+

+ eventnamelist is a list of below values. +

+

"v-" values use virtual key code.

+

The default value of this option is "keypress".

+

+

fmaps examples for .vimperatorrc

+

If you input directly these commands in vimperator commandline, remove the ":lazy".

+ + :command! -nargs=+ lazy autocmd VimperatorEnter .* <args> + :lazy fmaps -u='mail\.google\.com/mail' c / j k n p o u e x s r a # [ ] ? gi gs gt gd ga gc + :lazy fmaps -u='mail\.google\.com/mail/.*/[0-9a-f]+$' c / j,n k,p n,j p,k o u e x s r a # [ ] ? gi gs gt gd ga gc + :lazy fmaps -u='www\.google\.co\.jp/reader' -events=vkeypress j k n p m s v A r S N P X O gh ga gs gt gu u / ? J K + :lazy fmaps -u='(fastladder|livedoor)\.com/reader' j k s a p o v c i,p <Space> <S-Space> z b < > q w e,g + :lazy fmaps -u='https?://www\.rememberthemilk\.com/home/' j k m i c t ? d F,f G,g S,s L,l Y,y H,h M,m <Del> <C-S-Left> <C-S-Right> + :lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/list' o j k + :lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u + +
+ + anekos + New BSD License + +

+ Web コンテンツに直接キーイベントを送ります。 +

+ + :fmap + :fmap -events=eventnamelist -urls=urlpattern lhs rhs + +

+ マッピングを一つ定義します。 +

+

+ -urls=urlpattern が与えられたとき、 + そのマッピングは urlpattern で指定されたページのみで有効になります。 +

+
+
+ + :fmaps + :fmaps -events=eventnamelist -urls=urlpattern mapping-pair .... + +

+ 一度に複数のマッピングを定義できます。 + mapping-pair は、"," で区切られたキー名の組です。 +

例: "<Leader><S-j>,j"

+

+

+ -urls=urlpattern が与えられたとき、 + そのマッピングは urlpattern で指定されたページのみで有効になります。 +

+
+
+ + :fmapc + :fmapc! urlpattern + +

+ urlpattern のマッピングを削除します。 + "!" が与えられたときは、全てのマッピングが削除されます。 +

+
+
+ + :funmap + :funmap -urls=urlpattern lhs + +

+ マッピングを削除します。 +

+

+ urlpattern 付きのマッピングを削除するときは、-urls を指定する必要があります。 +

+
+
+

urlpattern

+

+ urlpattern の値は正規表現でなければいけません。 +

+

eventnamelist

+

+ eventnamelist は以下の値のリストです。 +

+

"v-" のものは、仮想キーコードでイベントを発行します。

+

このオプションのデフォルト値は "keypress" です。

+

+

.vimperatorrc 用の fmaps サンプル

+

コマンドラインで直接に入力するときは、":lazy" を除いてください。

+ + :command! -nargs=+ lazy autocmd VimperatorEnter .* <args> + :lazy fmaps -u='mail\.google\.com/mail' c / j k n p o u e x s r a # [ ] ? gi gs gt gd ga gc + :lazy fmaps -u='mail\.google\.com/mail/.*/[0-9a-f]+$' c / j,n k,p n,j p,k o u e x s r a # [ ] ? gi gs gt gd ga gc + :lazy fmaps -u='www\.google\.co\.jp/reader' -events=vkeypress j k n p m s v A r S N P X O gh ga gs gt gu u / ? J K + :lazy fmaps -u='(fastladder|livedoor)\.com/reader' j k s a p o v c i,p <Space> <S-Space> z b < > q w e,g + :lazy fmaps -u='https?://www\.rememberthemilk\.com/home/' j k m i c t ? d F,f G,g S,s L,l Y,y H,h M,m <Del> <C-S-Left> <C-S-Right> + :lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/list' o j k + :lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u + +
+; + // }}} (function () { -- cgit v1.2.3