mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:27:58 +01:00
add QuitPre and ShellCmdPost autocommand events
This commit is contained in:
@@ -198,6 +198,8 @@ liberator.IO = function () //{{{
|
|||||||
var command = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>";
|
var command = ":" + liberator.util.escapeHTML(liberator.commandline.getCommand()) + "<br/>";
|
||||||
|
|
||||||
liberator.echo(command + liberator.util.escapeHTML(output));
|
liberator.echo(command + liberator.util.escapeHTML(output));
|
||||||
|
|
||||||
|
liberator.autocommands.trigger("ShellCmdPost", "");
|
||||||
});
|
});
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////}}}
|
/////////////////////////////////////////////////////////////////////////////}}}
|
||||||
|
|||||||
@@ -1026,6 +1026,8 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
shutdown: function ()
|
shutdown: function ()
|
||||||
{
|
{
|
||||||
|
liberator.autocommands.trigger("QuitPre", "");
|
||||||
|
|
||||||
// save our preferences
|
// save our preferences
|
||||||
liberator.commandline.destroy();
|
liberator.commandline.destroy();
|
||||||
liberator.options.destroy();
|
liberator.options.destroy();
|
||||||
|
|||||||
@@ -41,7 +41,9 @@ liberator.config = { //{{{
|
|||||||
autocommands: [["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
|
autocommands: [["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"],
|
||||||
["PageLoadPre", "Triggered after a page load is initiated"],
|
["PageLoadPre", "Triggered after a page load is initiated"],
|
||||||
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
|
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
|
||||||
|
["QuitPre", "Triggered before exiting Firefox, just before destroying each module"],
|
||||||
["Quit", "Triggered before exiting Firefox"],
|
["Quit", "Triggered before exiting Firefox"],
|
||||||
|
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
|
||||||
["Startup", "Triggered after Firefox starts"]],
|
["Startup", "Triggered after Firefox starts"]],
|
||||||
|
|
||||||
dialogs: [
|
dialogs: [
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ Available {events}:
|
|||||||
*LocationChange* Triggered when changing tabs or when navigating to a new location
|
*LocationChange* Triggered when changing tabs or when navigating to a new location
|
||||||
*PageLoadPre* Triggered after a page load is initiated.
|
*PageLoadPre* Triggered after a page load is initiated.
|
||||||
*PageLoad* Triggered when a page gets (re)loaded/opened
|
*PageLoad* Triggered when a page gets (re)loaded/opened
|
||||||
|
*QuitPre* Triggered before exiting Firefox, just before destroying each module
|
||||||
*Quit* Triggered before exiting Firefox
|
*Quit* Triggered before exiting Firefox
|
||||||
|
*ShellCmdPost* Triggered after executing a shell command with :!cmd
|
||||||
*Startup* Triggered after Firefox starts
|
*Startup* Triggered after Firefox starts
|
||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user