From 0b901855cd596445b9e5f86d911e415a2c76847f Mon Sep 17 00:00:00 2001 From: teramako Date: Fri, 20 Feb 2009 18:18:57 +0000 Subject: * add option -event * Google Reader, Google Calendarに対応..したと思う git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@30395 d0d07461-0603-4401-acd4-de1884942a52 --- feedSomeKeys_2.js | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'feedSomeKeys_2.js') diff --git a/feedSomeKeys_2.js b/feedSomeKeys_2.js index 9e35111..3818c8e 100644 --- a/feedSomeKeys_2.js +++ b/feedSomeKeys_2.js @@ -3,10 +3,10 @@ var PLUGIN_INFO= {NAME} feed some defined key events into the Web content 定義したkeyイベントをWebページへ送ってあげる -2.1 +2.2 teramako -2.0a1 -2.0 +2.0pre +2.0b3pre http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/feedSomeKeys_2.js || -:autocmd LocationChange reader\\.livedoor\\.com/reader :fmap j k s a p o v c z b < > +: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 -depth 4 c / j k n p o u e x s r a # [ ] z ? gi gs gt gd ga gc +:autocmd LocationChange 'mail\.google\.com/mail' :fmap -depth 4 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 / ? +: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 ? ||< Greasemonkey LDRizeの場合などにも使用可 @@ -185,7 +196,7 @@ function init(keys, useVkey){ replaceUserMap(origKey, feedKey, useVkey); }); } -function replaceUserMap(origKey, feedKey, useVkey){ +function replaceUserMap(origKey, feedKey, useVkey, eventName){ if (mappings.hasMap(modes.NORMAL, origKey)){ var origMap = mappings.get(modes.NORMAL,origKey); if (origMap.description.indexOf(origKey+' -> ') != 0) { @@ -203,7 +214,7 @@ function replaceUserMap(origKey, feedKey, useVkey){ function(count){ count = count > 1 ? count : 1; for (var i=0; i