diff options
author | anekos | 2009-08-27 12:37:51 +0000 |
---|---|---|
committer | anekos | 2009-08-27 12:37:51 +0000 |
commit | 9f691e05aae8b0ad1c4f3fe559b0f2f2c9559ea2 (patch) | |
tree | 689761603b8b70c9830913d57cfa5c6f5422787b /direct_bookmark.js | |
parent | b17b6f377d2a877f8fa15bdd561e9d2f251208e6 (diff) | |
download | vimperator-plugins-9f691e05aae8b0ad1c4f3fe559b0f2f2c9559ea2.tar.bz2 |
Follow HEAD
for http://vimperator.org/trac/gitweb/?p=liberator.git;a=commit;h=f20c2b315bb05c2e88d0c672f07dc229cc9267d2
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35099 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'direct_bookmark.js')
-rw-r--r-- | direct_bookmark.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/direct_bookmark.js b/direct_bookmark.js index dbec3f4..9b65b6c 100644 --- a/direct_bookmark.js +++ b/direct_bookmark.js @@ -589,8 +589,8 @@ for Migemo search: require XUL/Migemo Extension liberator.modules.commands.addUserCommand(['btags'],"Update Social Bookmark Tags",
function(arg){setTimeout(function(){getTagsAsync().call([])},0)}, {});
liberator.modules.commands.addUserCommand(['bentry'],"Goto Bookmark Entry Page",
- function(service, special){
- service = service.string || useServicesByPost.split(/\s*/)[0];
+ function(args){
+ var service = args.string || useServicesByPost.split(/\s*/)[0];
var currentService = services[service] || null;
if(!currentService || !currentService.entryPage) {
return;
@@ -616,7 +616,7 @@ for Migemo search: require XUL/Migemo Extension }
return ascii.join('').toLowerCase();
}
- }), special ? liberator.NEW_TAB : liberator.CURRENT_TAB);
+ }), args.bang ? liberator.NEW_TAB : liberator.CURRENT_TAB);
},{
completer: function(filter)
[0, useServicesByPost.split(/\s*/).map(function(p) [p, services[p].description])]
@@ -673,7 +673,7 @@ for Migemo search: require XUL/Migemo Extension d.error(function(e){liberator.echoerr("direct_bookmark.js: Exception throwed! " + e);liberator.log(e);});
setTimeout(function(){first.call();},0);
},{
- completer: function(context, arg, special){
+ completer: function(context, arg){
let filter = context.filter;
var match_result = filter.match(/((?:\[[^\]]*\])*)\[?(.*)/); //[all, commited, now inputting]
var m = new RegExp(XMigemoCore && isUseMigemo ? "^(" + XMigemoCore.getRegExp(match_result[2]) + ")" : "^" + match_result[2],'i');
|