diff options
author | anekos | 2011-11-23 01:37:54 +0900 |
---|---|---|
committer | anekos | 2011-11-23 01:37:54 +0900 |
commit | 863c4ce44a31c3aceb51f7f4002d86400d49a141 (patch) | |
tree | 05ce50559ba7c84fa98abf726efab6db306384c1 /direct_bookmark.js | |
parent | 16d295bf3ec8f0633de675de56fd26288a716a40 (diff) | |
download | vimperator-plugins-863c4ce44a31c3aceb51f7f4002d86400d49a141.tar.bz2 |
コメントに " や - を使えるようにした
Diffstat (limited to 'direct_bookmark.js')
-rw-r--r-- | direct_bookmark.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/direct_bookmark.js b/direct_bookmark.js index 9b4c35d..895ff13 100644 --- a/direct_bookmark.js +++ b/direct_bookmark.js @@ -645,11 +645,10 @@ for Migemo search: require XUL/Migemo Extension }, {}, true);
liberator.modules.commands.addUserCommand(['sbm'],"Post to Social Bookmark",
function(arg){
- var comment = "";
var targetServices = useServicesByPost;
if (arg["-s"]) targetServices = arg["-s"];
- if (arg.length > 0) comment = arg.join(" ");
+ comment = arg.literalArg;
var tags = [];
var re = /\[([^\]]+)\]([^\[].*)?/g;
@@ -692,6 +691,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);
},{
+ literal: 0,
completer: function(context, arg){
let filter = context.filter;
var match_result = filter.match(/((?:\[[^\]]*\])*)\[?(.*)/); //[all, commited, now inputting]
|