aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-12-16 23:02:25 +0900
committeranekos2010-12-16 23:02:57 +0900
commit6fe7a2b26a3dfbc4a551277f1f65b70560f4fd03 (patch)
tree2f9cd889c0d8a11c6408bee2db88c19e3b3aec48
parent3ca2b97d8f23c8b9550754d0ba17d3f473997a5c (diff)
downloadvimperator-plugins-6fe7a2b26a3dfbc4a551277f1f65b70560f4fd03.tar.bz2
:tw!? の補完追加
-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: ["/"],