1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-02 16:04:11 +01:00

Add :window to run a command in a new window.

Works like :tab.
This commit is contained in:
Doug Kearns
2009-08-10 21:56:23 +10:00
parent ccb7f5cb77
commit e842bf8cc9
5 changed files with 36 additions and 2 deletions

View File

@@ -267,6 +267,20 @@ const config = { //{{{
literal: 0
});
commands.add(["wind[ow]"],
"Execute a command and tell it to output in a new window",
function (args)
{
liberator.forceNewWindow = true;
liberator.execute(args.string, null, true);
liberator.forceNewWindow = false;
},
{
argCount: "+",
completer: function (context) completion.ex(context),
literal: 0
});
commands.add(["winc[lose]", "wc[lose]"],
"Close window",
function () { window.close(); },