aboutsummaryrefslogtreecommitdiffstats
path: root/gmail-commando.js
diff options
context:
space:
mode:
authoranekos2010-05-28 09:31:54 +0000
committeranekos2010-05-28 09:31:54 +0000
commit1687b49a0e6575ad14a3664ab88a090a7c16c968 (patch)
tree6a1314bfc7eca49d26d622f4d344cc13889ca039 /gmail-commando.js
parentd3c1834ee6ee5f3cd5a78ce06bcbc2d2d33debf8 (diff)
downloadvimperator-plugins-1687b49a0e6575ad14a3664ab88a090a7c16c968.tar.bz2
マッピング設定追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37735 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'gmail-commando.js')
-rwxr-xr-xgmail-commando.js22
1 files changed, 21 insertions, 1 deletions
diff --git a/gmail-commando.js b/gmail-commando.js
index 088f6d8..dde97b5 100755
--- a/gmail-commando.js
+++ b/gmail-commando.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
<name lang="ja">GMail コマンドー</name>
<description>The handy commands for GMail</description>
<description lang="ja">便利なGMail用コマンドー</description>
- <version>1.0.0</version>
+ <version>1.1.0</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -160,6 +160,26 @@ let INFO =
true
);
+
+ 'translate'.split(/\s/).forEach(function (cmd) {
+ let gv = liberator.globalVariables['gmail_commando_map_' + cmd];
+ if (!gv)
+ return;
+ mappings.addUserMap(
+ [modes.NORMAL],
+ gv.split(/\s+/),
+ cmd + ' - Gmail Commando',
+ function () {
+ Commands.translate();
+ },
+ {
+ matchingUrls: RegExp('https://mail\\.google\\.com/mail/*')
+ }
+ );
+ });
+
+ __context__.command = Commands;
+
})();
// vim:sw=2 ts=2 et si fdm=marker: