blob: e6dd41d3b48d4641f2c3838eda7e74a7f0a9c029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* Please write the below line into .vimperatorrc.
* let g:twittperator_plugin_me = 1
*
*/
(function () {
const TW = liberator.plugins.twittperator;
TW.SubCommands.add(
TW.SubCommand({
command: ['me'],
description: 'reply to myself',
action: function(arg) {
setTimeout(
function () {
commandline.open(
'',
'tw ' + arg + ' ',
modes.EX
);
},
0
);
},
timelineComplete: true,
completer: TW.Completers.name_id(
function (s)
(s.user &&
s.user.screen_name == liberator.globalVariables.twittperator_screen_name)
? s.id : false
)
})
);
})();
// vim: set et fdm=syntax ft=javascript sts=2 sw=2 ts=2 :
|