From 9edad09e82bd894a45515d90cc5a036b7a48ad42 Mon Sep 17 00:00:00 2001 From: trapezoid Date: Tue, 1 Apr 2008 15:24:07 +0000 Subject: 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 --- ldrize_cooperation.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'ldrize_cooperation.js') 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 - 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){ -- cgit v1.2.3