diff options
author | trapezoid | 2008-04-01 15:24:07 +0000 |
---|---|---|
committer | trapezoid | 2008-04-01 15:24:07 +0000 |
commit | 9edad09e82bd894a45515d90cc5a036b7a48ad42 (patch) | |
tree | 6fe4e5037a8d3efb30ca13484099e059724f8808 | |
parent | 016ccafc3eb2b5527bb84879458ccac0318e016c (diff) | |
download | vimperator-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
-rw-r--r-- | ldrize_cooperation.js | 18 |
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){
|