aboutsummaryrefslogtreecommitdiffstats
path: root/amebanow.js
diff options
context:
space:
mode:
authoranekos2009-12-10 07:21:30 +0000
committeranekos2009-12-10 07:21:30 +0000
commitd8635338dac2fac8fe301ac5ec59aed4a988b9eb (patch)
tree0bce6b8673595852d7e3c6cbce6b71ea5b26f8ac /amebanow.js
parentcaf89ccd6bf4163c240dd9974be32996d0e9693b (diff)
downloadvimperator-plugins-d8635338dac2fac8fe301ac5ec59aed4a988b9eb.tar.bz2
マルチポストの設定追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36112 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'amebanow.js')
-rwxr-xr-xamebanow.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/amebanow.js b/amebanow.js
index 61233b0..9e2d13b 100755
--- a/amebanow.js
+++ b/amebanow.js
@@ -48,8 +48,12 @@ let PLUGIN_INFO =
<maxVersion>2.3</maxVersion>
<require>_libly.js</require>
<detail><![CDATA[
- == command ==
- :nau <MESSAGE>
+ == command ==
+ :nau <MESSAGE>
+ == multi post setting ==
+ >||
+ let g:amebanow_multipost = "twitter|wassr"
+ ||<
]]></detail>
</VimperatorPlugin>;
// }}}
@@ -101,7 +105,10 @@ let INFO =
['amebanow', 'nau'], //XXX nau は typo に非ず!かぶり防止
'Description',
function (args) {
- now(args.literalArg);
+ let msg = args.literalArg;
+ let mpCmds = (liberator.globalVariables.amebanow_multipost || '').split('|');
+ now(msg);
+ mpCmds.forEach(function (cmd) liberator.execute(cmd + ' ' + msg));
},
{
literal: 0,