From 2b9a622f104d459af1e2da51cea1bf72a716c212 Mon Sep 17 00:00:00 2001 From: trapezoid Date: Tue, 22 Jul 2008 12:23:47 +0000 Subject: :tombloo!でプロンプトあり、:tomblooでプロンプト無しでポストするように変更 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@16092 d0d07461-0603-4401-acd4-de1884942a52 --- tombloo.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'tombloo.js') diff --git a/tombloo.js b/tombloo.js index 165420e..6be966b 100644 --- a/tombloo.js +++ b/tombloo.js @@ -4,12 +4,13 @@ * @description Tombloo integrate plugin * @description-ja Tombloo経由で選択領域などをpostする * @author Trapezoid - * @version 0.1a + * @version 0.1b * ==/VimperatorPlugin== * * Usage: - * :tombloo arg -> post by Tombloo - * :tomblooAction arg -> execute Tombloo's action in tool menu + * :tombloo arg -> post by Tombloo (don't use prompt) + * :tombloo! arg -> post by Tombloo (use prompt) + * :tomblooAction arg -> execute Tombloo's action in tool menu **/ var TomblooService = Components.classes['@brasil.to/tombloo-service;1'].getService().wrappedJSObject; function update(target, src, keys){ @@ -55,8 +56,8 @@ liberator.commands.addUserCommand(['tomblooAction'],'Execute Tombloo actions', ); liberator.commands.addUserCommand(['tombloo'],'Post by Tombloo', - function(arg){ - TomblooService.Tombloo.Service.share(getContext(), TomblooService.Tombloo.Service.extracters[arg],true); + function(arg,special){ + TomblooService.Tombloo.Service.share(getContext(), TomblooService.Tombloo.Service.extracters[arg],special); },{ completer: function(filter){ var completionList = new Array(); @@ -68,3 +69,10 @@ liberator.commands.addUserCommand(['tombloo'],'Post by Tombloo', } } ); + +liberator.options.add(['tomblooprompt'],'Use Tombloo prompt','boolean',this.isEnable, + { + setter: function(value){ self.isEnable = value; }, + getter: function(){ return self.isEnable; } + } +); -- cgit v1.2.3