From f50bc1b9efc0685e842b8b68370c26c17227f763 Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 20 Oct 2008 11:02:46 +0000 Subject: Vimperator の仕様変更に対応。 for 69f699080c10 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21699 d0d07461-0603-4401-acd4-de1884942a52 --- auto_detect_link.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'auto_detect_link.js') diff --git a/auto_detect_link.js b/auto_detect_link.js index ed76a1e..f3f8576 100644 --- a/auto_detect_link.js +++ b/auto_detect_link.js @@ -2,7 +2,8 @@ // @name Auto Detect Link // @description-ja (次|前)っぽいページへのリンクを探してジャンプ // @license Creative Commons 2.1 (Attribution + Share Alike) -// @version 1.1.0 +// @version 1.3 +// @author anekos (anekos@snca.net) // ==/VimperatorPlugin== // // Usage: @@ -160,7 +161,7 @@ // 開いたURIなどの表示 function displayOpened (link) { let msg = 'open: ' + link.type + ' <' + link.text + '> ' + link.uri; - setTimeout(function () liberator.echo(msg, liberator.commandline.FORCE_SINGLELINE), 1000); + setTimeout(function () liberator.echo(msg, commandline.FORCE_SINGLELINE), 1000); liberator.log(msg); } @@ -441,8 +442,8 @@ //////////////////////////////////////////////////////////////// if (gv().nextMappings.length) { - liberator.mappings.addUserMap( - [liberator.modes.NORMAL], + mappings.addUserMap( + [modes.NORMAL], gv().nextMappings, 'Go next', function () go(true) @@ -451,8 +452,8 @@ if (gv().backMappings.length) { - liberator.mappings.addUserMap( - [liberator.modes.NORMAL], + mappings.addUserMap( + [modes.NORMAL], gv().backMappings, 'Go back', function () go(false) -- cgit v1.2.3