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

Also groupify commands. Usage examples are in official plugins.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-06 22:26:25 -05:00
parent 2a99de96a0
commit 83d86f7f02
6 changed files with 253 additions and 204 deletions

View File

@@ -307,7 +307,7 @@ var Mappings = Module("mappings", {
repeat: Modes.boundProperty(),
hives: Group.Hive("mappings", MapHive),
hives: Group.Hives("mappings", MapHive),
get allHives() contexts.allGroups.mappings,
@@ -668,6 +668,7 @@ var Mappings = Module("mappings", {
iterate: function (args) {
let mainMode = this.getMode(args);
let seen = {};
// Bloody hell. --Kris
for (let mode in values([mainMode].concat(mainMode.bases)))
for (let hive in mappings.hives.iterValues())
for (let map in array.iterValues(hive.getStack(mode)))
@@ -677,7 +678,7 @@ var Mappings = Module("mappings", {
name: name,
columns: [
mode == mainMode ? "" : <span highlight="Object" style="padding-right: 1em;">{mode.name}</span>,
hive.name == "builtin" ? "" : <span highlight="Object" style="padding-right: 1em;">{hive.name}</span>
hive == mappings.builtin ? "" : <span highlight="Object" style="padding-right: 1em;">{hive.group.name}</span>
],
__proto__: map
};