1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-11 08:35:47 +01:00

Add new autocommands to config and update the help file.

This commit is contained in:
Doug Kearns
2009-03-25 19:55:50 +11:00
parent 3979d4b5eb
commit 49f3984ba0
2 changed files with 26 additions and 8 deletions

View File

@@ -58,9 +58,17 @@ const config = { //{{{
["PageLoadPre", "Triggered after a page load is initiated"],
["PageLoad", "Triggered when a page gets (re)loaded/opened"],
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
["XulmusEnter", "Triggered after Xulmus starts"],
["XulmusLeavePre", "Triggered before exiting Xulmus, just before destroying each module"],
["XulmusLeave", "Triggered before exiting Xulmus"]],
["TrackChangePre", "Triggered before a playing track is changed"],
["TrackChange", "Triggered after a playing track has changed"],
["ViewChangePre", "Triggered before a sequencer view is changed"],
["ViewChange", "Triggered after a sequencer view is changed"],
["StreamStart", "Triggered after a stream has started"],
["StreamPause", "Triggered after a stream has paused"],
["StreamEnd", "Triggered after a stream has ended"],
["StreamStop", "Triggered after a stream has stopped"],
["XulmusEnter", "Triggered after Songbird starts"],
["XulmusLeavePre", "Triggered before exiting Songbird, just before destroying each module"],
["XulmusLeave", "Triggered before exiting Songbird"]],
// TODO: remove those which don't make sense, can't be provided.
dialogs: [
@@ -130,7 +138,7 @@ const config = { //{{{
//TODO : Write intro.html and tutorial.html
// they are sorted by relevance, not alphabetically
helpFiles: [ "player.html" ],
helpFiles: [ "player.html", "autocommands.html" ],
/* "intro.html", "tutorial.html", "starting.html", "browsing.html",
"buffer.html", "cmdline.html", "insert.html", "options.html",
"pattern.html", "tabs.html", "hints.html", "map.html", "eval.html",

View File

@@ -12,7 +12,7 @@ Execute commands automatically on events.
[c]:au[tocmd][c] {event} {pat} {cmd}
Add {cmd} to the list of commands Vimperator will execute on {event} for a URL matching {pat}:
Add {cmd} to the list of commands Xulmus will execute on {event} for a URL matching {pat}:
* [c]:autocmd[!][c] {events} {pat}: list/remove autocommands filtered by {events} and {pat}
* [c]:autocmd[!][c] {events}: list/remove autocommands matching {events}
@@ -31,9 +31,17 @@ Available {events}:
*PageLoadPre* Triggered after a page load is initiated
*PageLoad* Triggered when a page gets (re)loaded/opened
*ShellCmdPost* Triggered after executing a shell command with [c]:![c]#{cmd}
*VimperatorEnter* Triggered after Firefox starts
*VimperatorLeavePre* Triggered before exiting Firefox, just before destroying each module
*VimperatorLeave* Triggered before exiting Firefox
*TrackChangePre* Triggered before a playing track is changed
*TrackChange* Triggered after a playing track has changed
*ViewChangePre* Triggered before a sequencer view is changed
*ViewChange* Triggered after a sequencer view is changed
*StreamStart* Triggered after a stream has started
*StreamPause* Triggered after a stream has paused
*StreamEnd* Triggered after a stream has ended
*StreamStop* Triggered after a stream has stopped
*XulmusEnter* Triggered after Songbird starts
*XulmusLeavePre* Triggered before exiting Songbird, just before destroying each module
*XulmusLeave* Triggered before exiting Songbird
--------------------------------------------------------------
{pat} is a regular expression, use .* if you want to match all URLs.
@@ -53,6 +61,8 @@ The following keywords are available where relevant:
*<file>* The target destination of a download. Only for *DownloadPost*.
*<state>* The new fullscreen state. Only for *Fullscreen*.
*<name>* The color scheme name. Only for *ColorScheme*.
*<view>* The new sequencer view. Only for *ViewChangePre* and *ViewChange*.
*<track>* The new media track. Only for *TrackChangePre* and *TrackChange*.
--------------------------------------------------------------
________________________________________________________________________________