diff options
author | anekos | 2010-12-16 23:02:25 +0900 |
---|---|---|
committer | anekos | 2010-12-16 23:02:57 +0900 |
commit | 6fe7a2b26a3dfbc4a551277f1f65b70560f4fd03 (patch) | |
tree | 2f9cd889c0d8a11c6408bee2db88c19e3b3aec48 | |
parent | 3ca2b97d8f23c8b9550754d0ba17d3f473997a5c (diff) | |
download | vimperator-plugins-6fe7a2b26a3dfbc4a551277f1f65b70560f4fd03.tar.bz2 |
:tw!? の補完追加
-rw-r--r-- | twittperator.js | 12 |
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: ["/"], |