From 2847413177ed0f6914ea45f8ab77f64a6a140613 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 3 Aug 2010 10:50:42 +0000 Subject: context.title まとめ git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38147 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index d3fdda1..34a99e6 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1391,27 +1391,22 @@ function loadPlugins() { // {{{ const Completers = { name: function (context, args) { - context.title = ["Name","Entry"]; context.completions = history.map(rt(function(s) ["@" + s.user.screen_name, s])); }, link: function (context, args) { - context.title = ["Name","Entry"]; context.completions = history.filter(function (s) /https?:\/\//(s.text)).map(rt(function(s) [s.text, s])); }, text: function (context, args) { - context.title = ["Name","Entry"]; context.completions = history.map(rt(function(s) [s.text, s])); }, name_id: function (context, args) { - context.title = ["Name","Entry"]; context.completions = history.map(rt(function(s) ["@" + s.user.screen_name + "#" + s.id, s])); }, name_id_text: function (context, args) { - context.title = ["Name","Entry"]; context.completions = history.map(rt(function(s) ["@" + s.user.screen_name + "#" + s.id + ": " + s.text, s])); } @@ -1497,6 +1492,7 @@ function loadPlugins() { // {{{ if (args.bang) { let subCmd = findSubCommand(args.literalArg); if (subCmd) { + context.title = ["Hidden", "Entry"]; subCmd.completer(context, args); len = 1; } -- cgit v1.2.3