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

More groups work, including -args flag and proper serialization.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-06 14:07:18 -05:00
parent 78e8c3c20e
commit 4211f6ee07
4 changed files with 57 additions and 17 deletions

View File

@@ -146,7 +146,11 @@ var AutoCommands = Module("autocommands", {
let uri = args.url ? util.newURI(args.url) : buffer.uri;
event = event.toLowerCase();
for (let hive in this.hives.iterValues())
for (let hive in this.hives.iterValues()) {
let args = update({},
hive.group.argsExtra(arguments[1]),
arguments[1]);
for (let autoCmd in values(hive._store))
if (autoCmd.eventName === event && autoCmd.filter(uri)) {
if (!lastPattern || lastPattern !== String(autoCmd.filter))
@@ -157,6 +161,7 @@ var AutoCommands = Module("autocommands", {
dactyl.trapErrors(autoCmd.command, autoCmd, args);
}
}
}
}, {
}, {