1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 09:48: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>
2008-XX-XX:
* version 2.0 (probably)
* renamed Startup and Quit autocmd events to VimperatorEnter and
VimperatorLeave respectively
* add 'helpfile' option
* add 'wildignore' option
* add :finish command
* new events BookmarkPost, ShellCmdPost, QuitPre
* new events BookmarkAdd, ShellCmdPost, VimperatorLeavePre
* add 'cdpath' option
* allow :dialog to open the cookies manager
* add 'loadplugins' option

View File

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

View File

@@ -49,8 +49,9 @@ liberator.config = { //{{{
autocommands: [["FolderLoaded", "Triggered after switching folders in Thunderbird"],
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
["Quit", "Triggered before exiting Thunderbird"],
["Startup", "Triggered after Thunderbird starts"]],
["MuttatorEnter", "Triggered after Thunderbird starts"],
["MuttatorLeave", "Triggered before exiting Thunderbird"],
["MuttatorLeavePre", "Triggered before exiting Thunderbird"]],
dialogs: [
["about", "About Thunderbird",

View File

@@ -42,10 +42,10 @@ liberator.config = { //{{{
["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"]],
["VimperatorEnter", "Triggered after Firefox starts"],
["VimperatorLeavePre", "Triggered before exiting Firefox, just before destroying each module"],
["VimperatorLeave", "Triggered before exiting Firefox"]],
dialogs: [
["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}:
`----------------`--------------------------------------------
`--------------------`----------------------------------------
*BookmarkAdd* Triggered after a page is bookmarked
*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
*VimperatorEnter* Triggered after Firefox starts
*VimperatorLeavePre* Triggered before exiting Firefox, just before destroying each module
*VimperatorLeave* Triggered before exiting Firefox
--------------------------------------------------------------
{pat} is a regular expression, use .* if you want to match all URLs. Note: This