From d8635338dac2fac8fe301ac5ec59aed4a988b9eb Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 10 Dec 2009 07:21:30 +0000 Subject: マルチポストの設定追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36112 d0d07461-0603-4401-acd4-de1884942a52 --- amebanow.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'amebanow.js') 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 = 2.3 _libly.js + == command == + :nau + == multi post setting == + >|| + let g:amebanow_multipost = "twitter|wassr" + ||< ]]> ; // }}} @@ -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, -- cgit v1.2.3