mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:42:26 +01:00
Fix to handle multiple arguments and allow completion
This commit is contained in:
@@ -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
|
||||||
},
|
},
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user