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

add new BookmarkPost autocommand event

This commit is contained in:
Doug Kearns
2008-08-31 08:56:38 +00:00
parent 509a2cf75c
commit ab5ce77baf
4 changed files with 10 additions and 1 deletions

1
NEWS
View File

@@ -1,6 +1,7 @@
<pre> <pre>
2008-08-16: 2008-08-16:
* version 2.0 (probably) * version 2.0 (probably)
* new events BookmarkPost, ShellCmdPost, QuitPre
* 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

@@ -267,6 +267,9 @@ liberator.Bookmarks = function () //{{{
//also update bookmark cache //also update bookmark cache
bookmarks.unshift([url, title, keyword, tags || []]); bookmarks.unshift([url, title, keyword, tags || []]);
liberator.autocommands.trigger("BookmarkPost", "");
return true; return true;
}, },

View File

@@ -38,7 +38,8 @@ liberator.config = { //{{{
get visualbellWindow() { return getBrowser().mPanelContainer; }, get visualbellWindow() { return getBrowser().mPanelContainer; },
autocommands: [["LocationChange", "Triggered when changing tabs or when naviagtion to a new location"], autocommands: [["BookmarkPost", "Triggered after a page is bookmarked"],
["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"], ["QuitPre", "Triggered before exiting Firefox, just before destroying each module"],

View File

@@ -20,6 +20,7 @@ Add {cmd} to the list of commands Vimperator will execute on {event} for a URL m
Available {events}: Available {events}:
`----------------`-------------------------------------------- `----------------`--------------------------------------------
*BookmarkPost* 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
@@ -31,6 +32,9 @@ Available {events}:
{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
differs from Vim which uses a glob rather than a regexp for {pat}. differs from Vim which uses a glob rather than a regexp for {pat}.
Warning: Autocommand events are, in general, currently only fired when
Vimperator commands are executed.
________________________________________________________________________________ ________________________________________________________________________________
section:Examples[autocmd_examples] section:Examples[autocmd_examples]