|
|
@@ -84,8 +84,13 @@ Type "help" for list of commands\n\
|
|
|
},
|
|
|
'search': {
|
|
|
'help': 'Search the web\nUsage: search [query]',
|
|
|
- 'run': function(args) {
|
|
|
- window.open('https://duckduckgo.com/?q=' + args.join('+'), '_blank')
|
|
|
+ 'run': function(args, shell, terminal) {
|
|
|
+ terminal.tags.commandline.hidePrompt()
|
|
|
+ setTimeout(function() {
|
|
|
+ window.open('https://duckduckgo.com/?q=' + args.join('+'), '_blank')
|
|
|
+ terminal.tags.commandline.showPrompt()
|
|
|
+ terminal.update()
|
|
|
+ }, 1000)
|
|
|
return 'Searching for "' + args.join(' ') + '" in new window...'
|
|
|
}
|
|
|
},
|