aboutsummaryrefslogtreecommitdiffstats
path: root/encodingSwitcher.js
AgeCommit message (Expand)Author
2009-01-26Follow the HEAD.anekos
2008-09-08:set fenc=で同じ処理が繰り返されていた問題を修正(無駄な...hogelog
2008-04-08lang/javascript/vimperator-plugins/trunk/encodingSwitcher.js:drry
2008-03-23lang/javascript/vimperator-plugins/trunk/encodingSwitcher.js:drry
2008-03-21lang/javascript/vimperator-plugins/trunk/encodingSwitcher.js: 0.6pre対応し...trapezoid
2008-03-21lang/javascript/vimperator-plugins/trunk: 08/03/19のCVS HEADに対応trapezoid
2008-03-20lang/javascript/vimperator-plugins/trunkshunirr
span class="err">/author> <version>0.1</version> <minVersion>2.0pre</minVersion> <maxVersion>2.0pre</maxVersion> <updateURL>https://github.com/vimpr/vimperator-plugins/raw/master/tinyurl.js</updateURL> <detail><![CDATA[ == COMMANDS == tinyurl [URL]: echo and copy URL expandurl URL: expand URL == LIBRARY == plugins.tinyurl.getTiny(url): return TinyURL plugins.tinyurl.getExpand(url): return ExpandURL ]]></detail> </VimperatorPlugin>; //}}} (function() { const TinyAPI = 'http://tinyurl.com/api-create.php?url='; commands.add(['tinyurl'], 'echo and copy TinyURL', function(args) util.copyToClipboard(tiny.getTiny(args.length==0 ? buffer.URL : args.string), true), { argCount: '?', }); commands.add(['expandurl'], 'expand TinyURL', function(args) util.copyToClipboard(tiny.getExpand(args.string), true), { argCount: '1', }); var tiny = plugins.tinyurl = { getTiny: function(url) util.httpGet(TinyAPI+encodeURIComponent(url)).responseText, getExpand: function (url) util.httpGet(url).channel.name }; })(); // vim: fdm=marker sw=4 ts=4 et: