aboutsummaryrefslogtreecommitdiffstats
path: root/ldrize_cooperation.js
diff options
context:
space:
mode:
authortrapezoid2008-04-01 15:24:07 +0000
committertrapezoid2008-04-01 15:24:07 +0000
commit9edad09e82bd894a45515d90cc5a036b7a48ad42 (patch)
tree6fe4e5037a8d3efb30ca13484099e059724f8808 /ldrize_cooperation.js
parent016ccafc3eb2b5527bb84879458ccac0318e016c (diff)
downloadvimperator-plugins-9edad09e82bd894a45515d90cc5a036b7a48ad42.tar.bz2
lang/javascript/vimperator-plugins/trunk/ldrize_cooperation.js: add 'g:ldrc_captureMappings' variable
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8621 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'ldrize_cooperation.js')
-rw-r--r--ldrize_cooperation.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/ldrize_cooperation.js b/ldrize_cooperation.js
index a0959c0..7ded9e3 100644
--- a/ldrize_cooperation.js
+++ b/ldrize_cooperation.js
@@ -1,13 +1,17 @@
// Vimperator plugin: 'Cooperation LDRize Mappings'
-// Version: 0.11
-// Last Change: 31-Mar-2008. Jan 2008
+// Version: 0.12
+// Last Change: 02-Apr-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
// Cooperation LDRize Mappings for vimperator0.6.*
//
+// Variable:
+// g:ldrc_captureMapping
+// Specifies keys that capture by LDRize
+// usage: let g:ldrc_captureMappings = "['j','k','p','o','?']"
// Mappings:
-// replace for captureMapppings
+// Mappings for LDRize
// default: 'j','k','p','o'
// Commands:
// 'm' or 'mb' or 'minibuffer':
@@ -30,7 +34,7 @@
// Disable LDRize Cooperation
// usage: :set noldrc
(function(){
- var captureMappings = ['j','k','p','o'];
+ var captureMappings = window.eval(liberator.globalVariables.ldrc_captureMappings) || ['j','k','p','o'];
//pattern: wildcard
//include: [regexp, option] or regexp
//handler: [programPath, [args]] or programPath or function(url,title)
@@ -73,9 +77,9 @@
},
wait: 5000
},
- //{
- // handler: ['C:\\usr\\irvine\\irvine.exe',['%URL%']],
- //},
+ {
+ handler: ['C:\\usr\\irvine\\irvine.exe',['%URL%']],
+ },
];
handlerInfo.forEach(function(x){