diff options
Diffstat (limited to 'twittperator/mstrans.tw')
-rw-r--r-- | twittperator/mstrans.tw | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/twittperator/mstrans.tw b/twittperator/mstrans.tw new file mode 100644 index 0000000..9f4a582 --- /dev/null +++ b/twittperator/mstrans.tw @@ -0,0 +1,24 @@ +/* + * Please write the below line into .vimperatorrc. + * let g:twittperator_plugin_mstrans = 1 + * + * Require: mstrans.js + */ + +(function () { + const TW = liberator.plugins.twittperator; + + TW.SubCommands.add( + TW.SubCommand({ + command: ['mstrans'], + description: "Translate a tweet", + action: function(arg) { + liberator.execute('mstrans ' + arg); + }, + timelineComplete: true, + completer: TW.Completers.text(function(s) s.id) + }) + ); +})(); + +// vim: set et fdm=syntax fenc= ft=javascript sts=2 sw=2 ts=2 : |