From 1687b49a0e6575ad14a3664ab88a090a7c16c968 Mon Sep 17 00:00:00 2001
From: anekos
Date: Fri, 28 May 2010 09:31:54 +0000
Subject: マッピング設定追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37735 d0d07461-0603-4401-acd4-de1884942a52
---
gmail-commando.js | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
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 =
GMail コマンドー
The handy commands for GMail
便利なGMail用コマンドー
- 1.0.0
+ 1.1.0
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -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:
--
cgit v1.2.3