From 114da65a5965d623aa12e9cda02ef5cef1e12bac Mon Sep 17 00:00:00 2001 From: teramako Date: Thu, 19 Nov 2009 13:55:06 +0000 Subject: new Help System git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35949 d0d07461-0603-4401-acd4-de1884942a52 --- feedSomeKeys_2.js | 148 ++++++++++++++++++++++++++---------------------------- 1 file changed, 72 insertions(+), 76 deletions(-) diff --git a/feedSomeKeys_2.js b/feedSomeKeys_2.js index c8acd3c..729f65e 100644 --- a/feedSomeKeys_2.js +++ b/feedSomeKeys_2.js @@ -1,86 +1,82 @@ +let INFO = + + teramako + MPL 1.1 + +

+ keyイベントをWebコンテンツ側へ送る事を可能にするプラグイン。 + GmailやGreasemonkeyでキーを割り当てている場合に活躍するでしょう。 +

+ + :fmap :feedmap + :feedmap -depath=frameNumber -vkey -event=eventName lhs,frameNumberrhs + +

+ Feed to the Web contents lhs. + If specified rhs, feed rhs key events when hit lhs. +

+

The following options are interpreted.

+
+
-vkey
+
仮想キーコードでイベントを送る
+
-event
+
+ 以下のeventNameが設定可能 +
    +
  • keypress (default)
  • +
  • keydown
  • +
  • keyup
  • +
+
+
+
+
+ + :fmapc :feedmapclear + :fmapc + :feedmapclear + +

clear fmap entries

+
+
+

Combine fmap with autocmd

+ +:autocmd LocationChange .* fmapc +:autocmd LocationChange 'example\.com' fmap a b c + +

fmap examples

+

+ At first, you need to write following code + :autocmd LocationChange .* :fmapc +

+

Gmail

+ +:autocmd LocationChange 'mail\.google\.com/mail' :fmap c / j k n p o u e x s r a # [ ] z ? gi gs gt gd ga gc + +

Livedoor Reader

+ +:autocmd LocationChange 'reader\.livedoor\.com/reader' :fmap j k s a p o v c <Space> <S-Space> z b < > + +

Google Reader

+ +:autocmd LocationChange 'www\.google\.co\.jp/reader' :fmap! -vkey j k n p m s t v A r S N P X O gh ga gs gt gu u / ? + +

Google Calendar

+ +:autocmd LocationChange 'www\.google\.com/calendar/' :fmap! -vkey -event keydown t a d w m x c e <Del> / + q s ? + +
var PLUGIN_INFO= {NAME} feed some defined key events into the Web content -定義したkeyイベントをWebページへ送ってあげる 2.2.3 teramako -2.0pre -2.2 +2.3 http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/feedSomeKeys_2.js -|| -:autocmd LocationChange .* :fmapc -||< -を最初に登録してください。でないと対象外のページに移ったときに設定が前のものを引きずることになります。 - -== 用例 == -最初に登録すべき ->|| -:autocmd LocationChange .* :fmapc -||< -は省略 - -=== LDR の場合 === ->|| -:autocmd LocationChange 'reader\.livedoor\.com/reader' :fmap j k s a p o v c z b < > -||< - -=== Gmail の場合 === ->|| -:autocmd LocationChange 'mail\.google\.com/mail' :fmap c / j k n p o u e x s r a # [ ] z ? gi gs gt gd ga gc -||< - -=== Google Reader の場合 === ->|| -:autocmd LocationChange 'www\.google\.co\.jp/reader' :fmap! -vkey j k n p m s t v A r S N P X O gh ga gs gt gu u / ? -||< - -=== Google Calendar の場合 === ->|| -:autocmd LocationChange 'www\.google\.com/calendar/' :fmap! -vkey -event keydown t a d w m x c e / + q s ? -||< - -=== FriendFeed の場合 === ->|| -:autocmd LocationChange 'friendfeed\.com/' :fmap! -vkey -event keydown p P q / gh gd gm gb -||< - -Greasemonkey LDRizeの場合などにも使用可 -]]> ; liberator.plugins.feedKey = (function(){ -- cgit v1.2.3