aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--twittperator.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/twittperator.js b/twittperator.js
index a2c2259..d2ba9d0 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -1959,8 +1959,16 @@ let PLUGIN_INFO =
command: ["?"],
description: "Twitter search",
action: function(arg) Twittperator.showTwitterSearchResult(arg),
- timelineCompleter: true,
- completer: Completers.text()
+ completer: [
+ function (context, args) {
+ let lst = [[buffer.URL, 'Current Tab']];
+ let w = buffer.getCurrentWord();
+ if (w && w.length)
+ lst.push([w, 'Current word']);
+ context.completions = lst;
+ },
+ makeTimelineCompleter(Completers.text())
+ ]
}),
SubCommand({
command: ["/"],