mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-07 20: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;
|
fullscreen = window.fullScreen;
|
||||||
liberator.triggerObserver("fullscreen", 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];
|
let scheme = args.arguments[0];
|
||||||
|
|
||||||
if (io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
|
if (io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
|
||||||
autocommands.trigger("ColorScheme", { colors: scheme }); // XXX: Best name?
|
autocommands.trigger("ColorScheme", { name: scheme });
|
||||||
else
|
else
|
||||||
liberator.echoerr("E185: Cannot find color scheme " + scheme);
|
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*.
|
*<tags>* The tags applied to <url>. Only for *BookmarkAdd*.
|
||||||
*<keyword>* The keywords applied to the bookmark. Only for *BookmarkAdd*.
|
*<keyword>* The keywords applied to the bookmark. Only for *BookmarkAdd*.
|
||||||
*<icon>* The icon associated with <url>. Only for *BookmarkAdd*.
|
*<icon>* The icon associated with <url>. Only for *BookmarkAdd*.
|
||||||
*<size>* The size of a downloaded file.
|
*<size>* The size of a downloaded file. Only for *DownloadPost*.
|
||||||
*<file>* The target destination of a download.
|
*<file>* The target destination of a download. Only for *DownloadPost*.
|
||||||
*<fullscreen>* The new fullscreen state.
|
*<state>* The new fullscreen state. Only for *Fullscreen*.
|
||||||
*<colors>* The color scheme name.
|
*<name>* The color scheme name. Only for *ColorScheme*.
|
||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
|
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user