mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-28 10:55:45 +01:00
rename autocommand parameters fullscreen and colors to state and name
This commit is contained in:
@@ -479,7 +479,7 @@ function Events() //{{{
|
||||
{
|
||||
fullscreen = window.fullScreen;
|
||||
liberator.triggerObserver("fullscreen", fullscreen);
|
||||
autocommands.trigger("Fullscreen", {url: "", fullscreen: fullscreen});
|
||||
autocommands.trigger("Fullscreen", { state: fullscreen });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -381,7 +381,7 @@ liberator.registerObserver("load_commands", function ()
|
||||
let scheme = args.arguments[0];
|
||||
|
||||
if (io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
|
||||
autocommands.trigger("ColorScheme", { colors: scheme }); // XXX: Best name?
|
||||
autocommands.trigger("ColorScheme", { name: scheme });
|
||||
else
|
||||
liberator.echoerr("E185: Cannot find color scheme " + scheme);
|
||||
},
|
||||
|
||||
@@ -46,10 +46,10 @@ The following keywords are available where relevant:
|
||||
*<tags>* The tags applied to <url>. Only for *BookmarkAdd*.
|
||||
*<keyword>* The keywords applied to the bookmark. Only for *BookmarkAdd*.
|
||||
*<icon>* The icon associated with <url>. Only for *BookmarkAdd*.
|
||||
*<size>* The size of a downloaded file.
|
||||
*<file>* The target destination of a download.
|
||||
*<fullscreen>* The new fullscreen state.
|
||||
*<colors>* The color scheme name.
|
||||
*<size>* The size of a downloaded file. Only for *DownloadPost*.
|
||||
*<file>* The target destination of a download. Only for *DownloadPost*.
|
||||
*<state>* The new fullscreen state. Only for *Fullscreen*.
|
||||
*<name>* The color scheme name. Only for *ColorScheme*.
|
||||
--------------------------------------------------------------
|
||||
|
||||
________________________________________________________________________________
|
||||
|
||||
Reference in New Issue
Block a user