blob: b505e50d79e081bbac2caa3b3dd03fd6ed36aecc (
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
|
/*
* Please write the below line into .vimperatorrc.
* let g:twittperator_plugin_sbm = 1
* let g:twittperator_screen_sbm_default_tags = "[Twitter]"
*/
(function () {
const TW = liberator.plugins.twittperator;
TW.SubCommands.add(
TW.SubCommand({
command: ['sbm'],
description: "Direct SBM",
action: function(arg) {
let url = 'https://twitter.com/' + arg;
setTimeout(
function () {
let tags = liberator.globalVariables.twittperator_screen_sbm_default_tags || '';
commandline.open(
'',
'sbmother ' + url + ' ' + tags,
modes.EX
);
},
0
);
},
timelineComplete: true,
completer: TW.Completers.statusPage(function(s) s.id)
})
);
})();
|