aboutsummaryrefslogtreecommitdiffstats
path: root/mouse_gestures.js
diff options
context:
space:
mode:
authoranekos2011-09-23 19:53:31 +0900
committeranekos2011-09-23 19:54:48 +0900
commit7abe2c498c09534f8623a3c8d39cc980afa66f6a (patch)
tree8bf4e33cc1ef4e8daf256a6581061215ac19a1f8 /mouse_gestures.js
parent5166fa4fcb4859f504bacd993536b4d918a24527 (diff)
downloadvimperator-plugins-7abe2c498c09534f8623a3c8d39cc980afa66f6a.tar.bz2
認証を入れろと言われた
Diffstat (limited to 'mouse_gestures.js')
0 files changed, 0 insertions, 0 deletions
/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: