mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:58:00 +01:00
add new BookmarkPost autocommand event
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,6 +1,7 @@
|
||||
<pre>
|
||||
2008-08-16:
|
||||
* version 2.0 (probably)
|
||||
* new events BookmarkPost, ShellCmdPost, QuitPre
|
||||
* add 'cdpath' option
|
||||
* allow :dialog to open the cookies manager
|
||||
* add 'loadplugins' option
|
||||
|
||||
@@ -267,6 +267,9 @@ liberator.Bookmarks = function () //{{{
|
||||
|
||||
//also update bookmark cache
|
||||
bookmarks.unshift([url, title, keyword, tags || []]);
|
||||
|
||||
liberator.autocommands.trigger("BookmarkPost", "");
|
||||
|
||||
return true;
|
||||
},
|
||||
|
||||
|
||||
@@ -38,7 +38,8 @@ liberator.config = { //{{{
|
||||
|
||||
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"],
|
||||
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
|
||||
["QuitPre", "Triggered before exiting Firefox, just before destroying each module"],
|
||||
|
||||
@@ -20,6 +20,7 @@ Add {cmd} to the list of commands Vimperator will execute on {event} for a URL m
|
||||
Available {events}:
|
||||
|
||||
`----------------`--------------------------------------------
|
||||
*BookmarkPost* 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
|
||||
@@ -31,6 +32,9 @@ Available {events}:
|
||||
|
||||
{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}.
|
||||
|
||||
Warning: Autocommand events are, in general, currently only fired when
|
||||
Vimperator commands are executed.
|
||||
________________________________________________________________________________
|
||||
|
||||
section:Examples[autocmd_examples]
|
||||
|
||||
Reference in New Issue
Block a user