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