aboutsummaryrefslogtreecommitdiffstats
path: root/tombloo.js
diff options
context:
space:
mode:
authortrapezoid2008-07-22 12:23:47 +0000
committertrapezoid2008-07-22 12:23:47 +0000
commit2b9a622f104d459af1e2da51cea1bf72a716c212 (patch)
treeba7826a73f7be9c54809975fe68296a2c6d7a5c4 /tombloo.js
parentc16ce0519cd17cf6e07164cec9aae75bca8ea1d5 (diff)
downloadvimperator-plugins-2b9a622f104d459af1e2da51cea1bf72a716c212.tar.bz2
:tombloo!でプロンプトあり、:tomblooでプロンプト無しでポストするように変更
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@16092 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'tombloo.js')
-rw-r--r--tombloo.js18
1 files changed, 13 insertions, 5 deletions
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; }
+ }
+);