1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 10:32:28 +01:00

Add first crude binary module implementation.

This commit is contained in:
Kris Maglione
2011-09-22 21:08:40 -04:00
parent d568ce8762
commit 6af256bc53
17 changed files with 1290 additions and 6 deletions

View File

@@ -509,7 +509,8 @@ var CommandHive = Class("CommandHive", Contexts.Hive, {
let closure = function () self._map[name];
memoize(this._map, name, function () commands.Command(specs, description, action, extra));
memoize(this._list, this._list.length, closure);
if (!extra.hidden)
memoize(this._list, this._list.length, closure);
for (let alias in values(names.slice(1)))
memoize(this._map, alias, closure);
@@ -1404,9 +1405,11 @@ var Commands = Module("commands", {
const { commands, contexts } = modules;
commands.add(["(", "-("], "",
function (args) { dactyl.echoerr(_("dactyl.cheerUp")); });
function (args) { dactyl.echoerr(_("dactyl.cheerUp")); },
{ hidden: true });
commands.add([")", "-)"], "",
function (args) { dactyl.echoerr(_("dactyl.somberDown")); });
function (args) { dactyl.echoerr(_("dactyl.somberDown")); },
{ hidden: true });
commands.add(["com[mand]"],
"List or define commands",