1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 17:05:46 +01:00

:delmacros regex added

This commit is contained in:
Marco Candrian
2008-01-21 12:12:26 +00:00
parent 09a4c0e15b
commit 7982265c98
3 changed files with 26 additions and 3 deletions

View File

@@ -1458,7 +1458,20 @@ vimperator.Commands = function () //{{{
help: "List recorded macros matching the optional regular expression. If no regex is given, list all."
}
));
commandManager.add(new vimperator.Command(["delmac[ros]"],
function (arg)
{
if (!arg)
vimperator.echoerr("E474: Invalid argument");
else
vimperator.events.delMacros(arg);
},
{
usage: ["delmac[ros] [regex]"],
shortHelp: "Delete macros matching a regex",
help: "Delete recorded macros matching a regular expression."
}
));
// 0 args -> list all maps
// 1 arg -> list the maps starting with args
// 2 args -> map arg1 to arg*