From 78c133302f99412e2a66ac2e7a036de7a35a9a10 Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 9 Jun 2012 18:51:58 +0900 Subject: Export some objects for add subcommand by user. And sample plugin (ril.tw). --- twittperator/ril.tw | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 twittperator/ril.tw (limited to 'twittperator') diff --git a/twittperator/ril.tw b/twittperator/ril.tw new file mode 100644 index 0000000..2b9c430 --- /dev/null +++ b/twittperator/ril.tw @@ -0,0 +1,21 @@ +/* + * Please write the below line into .vimperatorrc. + * let g:twittperator_plugin_ril = 1 + */ + +(function () { + const TW = liberator.plugins.twittperator; + + TW.SubCommands.add( + TW.SubCommand({ + command: ['ril'], + action: function(arg) { + liberator.execute('readitlater add https://twitter.com/' + arg); + }, + timelineCompleter: true, + completer: TW.Completers.statusPage(function(s) s.id) + }) + ); +})(); + +// vim: sw=2 ts=2 et fdm=marker ft=javascript: -- cgit v1.2.3