1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 23:02:27 +01:00

Fix to handle multiple arguments and allow completion

This commit is contained in:
Nelo Wallus
2016-01-08 19:53:06 +01:00
parent d7bc7cb3bf
commit d8e002fb43

View File

@@ -163,8 +163,23 @@ create_command_and_mapping(
"tabchildopen", "tabchildopen",
"Open one or more URLs in a new child tab", "Open one or more URLs in a new child tab",
function (args) { function (args) {
TreeStyleTabService.readyToOpenChildTab(); let tab = gBrowser.tabContainer.selectedItem;
dactyl.open(args, { where: dactyl.NEW_TAB }); TreeStyleTabService.readyToOpenChildTab(tab, true);
dactyl.open(args[0] || "about:blank",
{ from: "tabopen", where: dactyl.NEW_TAB, background: args.bang });
TreeStyleTabService.stopToOpenChildTab();
},
"",
{
bang: true,
completer: function (context) {
completion.url(context);
},
domains: function (args) {
return commands.get("open").domains(args);
},
literal: 0,
privateData: true
}, },
"" ""
); );