aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator/ril.tw
blob: 2b9c4306bab9b7a565df510e5212619777abe33a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: