1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:42:26 +01:00

Add a rough :tabdo command.

This commit is contained in:
Doug Kearns
2009-04-30 22:01:47 +10:00
parent cb74c7f40c
commit 2fdc555c75
4 changed files with 37 additions and 7 deletions

View File

@@ -359,6 +359,22 @@ function Tabs() //{{{
literal: 0
});
commands.add(["tabd[o]", "bufd[o]"],
"Execute a command in each tab",
function (args)
{
for (let i = 0; i < tabs.count; i++)
{
tabs.select(i);
liberator.execute(args.string);
}
},
{
argCount: "1",
completer: function (context) completion.ex(context),
literal: 0
});
commands.add(["tabl[ast]", "bl[ast]"],
"Switch to the last tab",
function () tabs.select("$", false),