From 6fe7a2b26a3dfbc4a551277f1f65b70560f4fd03 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 16 Dec 2010 23:02:25 +0900 Subject: :tw!? の補完追加 --- twittperator.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'twittperator.js') 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: ["/"], -- cgit v1.2.3