From 626d3dfc637adac6a989e4283ce782043ec89fb1 Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 28 May 2010 09:32:17 +0000 Subject: is in 追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37739 d0d07461-0603-4401-acd4-de1884942a52 --- gmail-commando.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'gmail-commando.js') diff --git a/gmail-commando.js b/gmail-commando.js index 10d821d..586270f 100755 --- a/gmail-commando.js +++ b/gmail-commando.js @@ -135,7 +135,21 @@ let INFO = [label.textContent.replace(/\s*\(\d+\+?\)$/, ''), label.textContent] for ([, label] in Iterator(Elements.labels)) ]; - } + }, + + is: function (context) { + const values = 'anywhere inbox drafts span trash'.split(/\s/); + context.completions = [ + [v, v] for ([, v] in Iterator(values)) + ]; + }, + + in: function (context) { + const values = 'starred chat voicemail muted sent'.split(/\s/); + context.completions = [ + [v, v] for ([, v] in Iterator(values)) + ]; + }, }; commands.addUserCommand( -- cgit v1.2.3