diff options
author | anekos | 2010-05-28 09:32:17 +0000 |
---|---|---|
committer | anekos | 2010-05-28 09:32:17 +0000 |
commit | 626d3dfc637adac6a989e4283ce782043ec89fb1 (patch) | |
tree | 532853a0ace08bb534e0f406747d3bfc5db81bbb /gmail-commando.js | |
parent | b549187381e69552fea5cf7653bc63d772625b22 (diff) | |
download | vimperator-plugins-626d3dfc637adac6a989e4283ce782043ec89fb1.tar.bz2 |
is in 追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37739 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'gmail-commando.js')
-rwxr-xr-x | gmail-commando.js | 16 |
1 files changed, 15 insertions, 1 deletions
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( |