diff options
author | anekos | 2008-10-20 11:02:46 +0000 |
---|---|---|
committer | anekos | 2008-10-20 11:02:46 +0000 |
commit | f50bc1b9efc0685e842b8b68370c26c17227f763 (patch) | |
tree | 83b656fef5a3209674cad34e3abe43d57ebaf701 /auto_detect_link.js | |
parent | 1bbcbf14b54e8dc0d6b57ab0cc32836ee28b46cf (diff) | |
download | vimperator-plugins-f50bc1b9efc0685e842b8b68370c26c17227f763.tar.bz2 |
Vimperator の仕様変更に対応。
for 69f699080c10
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21699 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'auto_detect_link.js')
-rw-r--r-- | auto_detect_link.js | 13 |
1 files changed, 7 insertions, 6 deletions
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) |