diff options
author | anekos | 2012-06-09 18:51:58 +0900 |
---|---|---|
committer | anekos | 2012-06-09 18:52:56 +0900 |
commit | 78c133302f99412e2a66ac2e7a036de7a35a9a10 (patch) | |
tree | 983cbf1cbf7c5cdd62351e2237b5af1be0bcde50 /twittperator | |
parent | 56578a454a139c6eab3c4ea84588d1733e13caae (diff) | |
download | vimperator-plugins-78c133302f99412e2a66ac2e7a036de7a35a9a10.tar.bz2 |
Export some objects for add subcommand by user.
And sample plugin (ril.tw).
Diffstat (limited to 'twittperator')
-rw-r--r-- | twittperator/ril.tw | 21 |
1 files changed, 21 insertions, 0 deletions
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: |