aboutsummaryrefslogtreecommitdiffstats
path: root/gmail-commando.js
diff options
context:
space:
mode:
Diffstat (limited to 'gmail-commando.js')
-rwxr-xr-xgmail-commando.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/gmail-commando.js b/gmail-commando.js
index 30440c8..1d49486 100755
--- a/gmail-commando.js
+++ b/gmail-commando.js
@@ -225,10 +225,10 @@ let INFO =
return result;
},
- search: function (args) {
+ search: function (args, newtab) {
const URL = 'https://mail.google.com/mail/#search/';
- if (this.inGmail) {
+ if (this.inGmail && !newtab) {
Elements.input.value = args;
buffer.followLink(Elements.searchButton);
} else {
@@ -294,9 +294,10 @@ let INFO =
['gmail'],
'GMail Commando',
function (args) {
- Commando.search(args.literalArg);
+ Commando.search(args.literalArg, args.bang);
},
{
+ bang: true,
literal: 0,
completer: function (context, args) {
let input = args.string.slice(0, context.caret);