From 4c838de4f764f905edad530bdc2d17068f73fff9 Mon Sep 17 00:00:00 2001 From: suVene Date: Mon, 8 Dec 2008 14:53:50 +0000 Subject: *PLUGIN_INFO対応(@see http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/pluginManager.js) git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26143 d0d07461-0603-4401-acd4-de1884942a52 --- multi_requester.js | 141 ++++++++++++++++++++++++++--------------------------- 1 file changed, 70 insertions(+), 71 deletions(-) (limited to 'multi_requester.js') diff --git a/multi_requester.js b/multi_requester.js index 0f3833f..41e8610 100644 --- a/multi_requester.js +++ b/multi_requester.js @@ -1,75 +1,74 @@ -/** - * ==VimperatorPlugin== - * @name multi_requester.js - * @description request, and the result is displayed to the buffer. - * @description-ja リクエストの結果をバッファに出力する。 - * @author suVene suvene@zeromemory.info - * @version 0.4.3 - * @minVersion 2.0pre - * @maxVersion 2.0pre - * Last Change: 08-Dec-2008. - * ==/VimperatorPlugin== - * - * HEAD COMMENT {{{ - * Usage: - * command[!] subcommand [ANY_TEXT] - * - * ! create new tab. - * ANY_TEXT your input text - * - * :mr alc[,goo,any1,any2…] ANY_TEXT -> request by the input text, and display to the buffer. - * :mr! goo[,any1,any2,…] {window.selection} -> request by the selected text, and display to the new tab. - * - * other siteinfo by wedata. - * @see http://wedata.net/databases/Multi%20Requester/items - * - * CUSTOMIZE .vimperatorrc: - * - * [COMMAND](default [mr]) - * let g:multi_requester_command = "ANY1, ANY2, ……" - * or - * liberator.globalVariables.multi_requester_command = [ANY1, ANY2, ……]; - * - * [SITEINFO] - * ex.) - * javascript < + {NAME} + request, and the result is displayed to the buffer. + リクエストの結果をバッファに出力する。 + suVene + 0.4.3 + 2.0pre + 2.0pre + request by the input text, and display to the buffer. +:mr! goo[,any1,any2,…] {window.selection} -> request by the selected text, and display to the new tab. + +== CUSTUMIZE .vimperatorrc == +== COMMAND(default [mr]) == +let g:multi_requester_command = "ANY1, ANY2, ……" +or +liberator.globalVariables.multi_requester_command = [ANY1, ANY2, ……]; + +== SITEINFO == +ex.) +javascript <<EOM +liberator.globalVariables.multi_requester_siteinfo = [ + { + map: ',me', // optional: keymap for this siteinfo call + bang: true, // optional: + args: 'any' // optional: + name: 'ex', // required: subcommand name + description: 'example', // required: commandline short help + url: 'http://example.com/?%s', // required: %s <-- replace string + xpath: '//*', // optional: default all + srcEncode: 'SHIFT_JIS', // optional: default UTF-8 + urlEncode: 'SHIFT_JIS', // optional: default srcEncode + ignoreTags: 'img', // optional: default script, syntax 'tag1,tag2,……' + extractLink: '//xpath' // optional: extract permalink + }, +]; +EOM + +* other siteinfo by wedata. + @see http://wedata.net/databases/Multi%20Requester/items + +== MAPPINGS == +ex.) +javascript < +; +//}}} (function() { -io.sourceFromRuntimePath(['libly.js']); if (!liberator.plugins.libly) { liberator.log('multi_requester: needs libly.js'); return; -- cgit v1.2.3