1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:58:00 +01:00

renamed Startup, Quit and QuitPre autocmd events to VimperatorEnter,

VimperatorLeave and VimperatorLeavePre
This commit is contained in:
Doug Kearns
2008-09-10 16:50:52 +00:00
parent 1d83391c54
commit 6c9238fe74
5 changed files with 29 additions and 26 deletions

4
NEWS
View File

@@ -1,10 +1,12 @@
<pre> <pre>
2008-XX-XX: 2008-XX-XX:
* version 2.0 (probably) * version 2.0 (probably)
* renamed Startup and Quit autocmd events to VimperatorEnter and
VimperatorLeave respectively
* add 'helpfile' option * add 'helpfile' option
* add 'wildignore' option * add 'wildignore' option
* add :finish command * add :finish command
* new events BookmarkPost, ShellCmdPost, QuitPre * new events BookmarkAdd, ShellCmdPost, VimperatorLeavePre
* add 'cdpath' option * add 'cdpath' option
* allow :dialog to open the cookies manager * allow :dialog to open the cookies manager
* add 'loadplugins' option * add 'loadplugins' option

View File

@@ -1075,7 +1075,7 @@ const liberator = (function () //{{{
option.reset(); option.reset();
} }
liberator.autocommands.trigger("Startup", ""); liberator.autocommands.trigger(liberator.config.name + "Enter", "");
}, 0); }, 0);
liberator.statusline.update(); liberator.statusline.update();
@@ -1085,7 +1085,7 @@ const liberator = (function () //{{{
shutdown: function () shutdown: function ()
{ {
liberator.autocommands.trigger("QuitPre", ""); liberator.autocommands.trigger(liberator.config.name + "LeavePre", "");
// save our preferences // save our preferences
liberator.commandline.destroy(); liberator.commandline.destroy();
@@ -1096,7 +1096,7 @@ const liberator = (function () //{{{
liberator.dump("All liberator modules destroyed\n"); liberator.dump("All liberator modules destroyed\n");
liberator.autocommands.trigger("Quit", ""); liberator.autocommands.trigger(liberator.config.name + "Leave", "");
}, },
sleep: function (ms) sleep: function (ms)

View File

@@ -46,11 +46,12 @@ liberator.config = { //{{{
get visualbellWindow() { return document.getElementById(this.mainWindowID); }, get visualbellWindow() { return document.getElementById(this.mainWindowID); },
isComposeWindow: false, isComposeWindow: false,
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"], autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
["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"],
["Quit", "Triggered before exiting Thunderbird"], ["MuttatorEnter", "Triggered after Thunderbird starts"],
["Startup", "Triggered after Thunderbird starts"]], ["MuttatorLeave", "Triggered before exiting Thunderbird"],
["MuttatorLeavePre", "Triggered before exiting Thunderbird"]],
dialogs: [ dialogs: [
["about", "About Thunderbird", ["about", "About Thunderbird",

View File

@@ -38,14 +38,14 @@ liberator.config = { //{{{
get visualbellWindow() { return getBrowser().mPanelContainer; }, get visualbellWindow() { return getBrowser().mPanelContainer; },
autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"], autocommands: [["BookmarkAdd", "Triggered after a page is bookmarked"],
["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"], ["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"], ["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
["Quit", "Triggered before exiting Firefox"], ["VimperatorEnter", "Triggered after Firefox starts"],
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"], ["VimperatorLeavePre", "Triggered before exiting Firefox, just before destroying each module"],
["Startup", "Triggered after Firefox starts"]], ["VimperatorLeave", "Triggered before exiting Firefox"]],
dialogs: [ dialogs: [
["about", "About Firefox", ["about", "About Firefox",

View File

@@ -19,15 +19,15 @@ Add {cmd} to the list of commands Vimperator will execute on {event} for a URL m
Available {events}: Available {events}:
`----------------`-------------------------------------------- `--------------------`----------------------------------------
*BookmarkAdd* Triggered after a page is bookmarked *BookmarkAdd* Triggered after a page is bookmarked
*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 *ShellCmdPost* Triggered after executing a shell command with :!cmd
*Quit* Triggered before exiting Firefox *VimperatorEnter* Triggered after Firefox starts
*ShellCmdPost* Triggered after executing a shell command with :!cmd *VimperatorLeavePre* Triggered before exiting Firefox, just before destroying each module
*Startup* Triggered after Firefox starts *VimperatorLeave* Triggered before exiting Firefox
-------------------------------------------------------------- --------------------------------------------------------------
{pat} is a regular expression, use .* if you want to match all URLs. Note: This {pat} is a regular expression, use .* if you want to match all URLs. Note: This