1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-10 10:45:46 +01:00

add bangAllowed property to Command's extraInfo to specify whether the bang

version of the command is available
This commit is contained in:
Doug Kearns
2008-10-04 09:00:36 +00:00
parent 690ce8d8e2
commit 156fa5d56f
16 changed files with 166 additions and 171 deletions

View File

@@ -112,6 +112,7 @@ liberator.AutoCommands = function () //{{{
}
},
{
bangAllowed: true,
completer: function (filter)
{
return [0, liberator.completion.filter(liberator.config.autocommands || [], filter)];
@@ -658,9 +659,7 @@ liberator.Events = function () //{{{
else
liberator.events.deleteMacros(args);
},
{
completer: function (filter) liberator.completion.macro(filter)
});
{ completer: function (filter) liberator.completion.macro(filter) });
liberator.commands.add(["macros"],
"List all macros",
@@ -670,9 +669,7 @@ liberator.Events = function () //{{{
var str = liberator.template.tabular(["Macro", "Keys"], [], liberator.events.getMacros(args));
liberator.echo(str, liberator.commandline.FORCE_MULTILINE);
},
{
completer: function (filter) liberator.completion.macro(filter)
});
{ completer: function (filter) liberator.completion.macro(filter) });
liberator.commands.add(["pl[ay]"],
"Replay a recorded macro",
@@ -683,9 +680,7 @@ liberator.Events = function () //{{{
else
liberator.events.playMacro(args);
},
{
completer: function (filter) liberator.completion.macro(filter)
});
{ completer: function (filter) liberator.completion.macro(filter) });
/////////////////////////////////////////////////////////////////////////////}}}
////////////////////// PUBLIC SECTION //////////////////////////////////////////