1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 12:35:45 +01:00

add a bang version of delmacros to delete all macros

This commit is contained in:
Doug Kearns
2008-10-06 13:59:15 +00:00
parent 413e01da41
commit 2dd206df47
3 changed files with 11 additions and 5 deletions

View File

@@ -677,9 +677,15 @@ liberator.Events = function () //{{{
liberator.commands.add(["delmac[ros]"],
"Delete macros",
function (args) { liberator.events.deleteMacros(args); },
function (args, special)
{
argCount: "+", // pattern might contain whitespace
if (special)
args = ".*"; // XXX
liberator.events.deleteMacros(args);
},
{
bang: true,
completer: function (filter) liberator.completion.macro(filter)
});