aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator/sbm.tw
diff options
context:
space:
mode:
Diffstat (limited to 'twittperator/sbm.tw')
-rw-r--r--twittperator/sbm.tw34
1 files changed, 34 insertions, 0 deletions
diff --git a/twittperator/sbm.tw b/twittperator/sbm.tw
new file mode 100644
index 0000000..b505e50
--- /dev/null
+++ b/twittperator/sbm.tw
@@ -0,0 +1,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)
+ })
+ );
+})();