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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user