mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-16 23:03:32 +02:00
Add new autocommands to config and update the help file.
This commit is contained in:
@@ -58,9 +58,17 @@ const config = { //{{{
|
|||||||
["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"],
|
||||||
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
|
["ShellCmdPost", "Triggered after executing a shell command with :!cmd"],
|
||||||
["XulmusEnter", "Triggered after Xulmus starts"],
|
["TrackChangePre", "Triggered before a playing track is changed"],
|
||||||
["XulmusLeavePre", "Triggered before exiting Xulmus, just before destroying each module"],
|
["TrackChange", "Triggered after a playing track has changed"],
|
||||||
["XulmusLeave", "Triggered before exiting Xulmus"]],
|
["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.
|
// TODO: remove those which don't make sense, can't be provided.
|
||||||
dialogs: [
|
dialogs: [
|
||||||
@@ -130,7 +138,7 @@ const config = { //{{{
|
|||||||
|
|
||||||
//TODO : Write intro.html and tutorial.html
|
//TODO : Write intro.html and tutorial.html
|
||||||
// they are sorted by relevance, not alphabetically
|
// they are sorted by relevance, not alphabetically
|
||||||
helpFiles: [ "player.html" ],
|
helpFiles: [ "player.html", "autocommands.html" ],
|
||||||
/* "intro.html", "tutorial.html", "starting.html", "browsing.html",
|
/* "intro.html", "tutorial.html", "starting.html", "browsing.html",
|
||||||
"buffer.html", "cmdline.html", "insert.html", "options.html",
|
"buffer.html", "cmdline.html", "insert.html", "options.html",
|
||||||
"pattern.html", "tabs.html", "hints.html", "map.html", "eval.html",
|
"pattern.html", "tabs.html", "hints.html", "map.html", "eval.html",
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ Execute commands automatically on events.
|
|||||||
|
|
||||||
[c]:au[tocmd][c] {event} {pat} {cmd}
|
[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} {pat}: list/remove autocommands filtered by {events} and {pat}
|
||||||
* [c]:autocmd[!][c] {events}: list/remove autocommands matching {events}
|
* [c]:autocmd[!][c] {events}: list/remove autocommands matching {events}
|
||||||
@@ -31,9 +31,17 @@ Available {events}:
|
|||||||
*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
|
||||||
*ShellCmdPost* Triggered after executing a shell command with [c]:![c]#{cmd}
|
*ShellCmdPost* Triggered after executing a shell command with [c]:![c]#{cmd}
|
||||||
*VimperatorEnter* Triggered after Firefox starts
|
*TrackChangePre* Triggered before a playing track is changed
|
||||||
*VimperatorLeavePre* Triggered before exiting Firefox, just before destroying each module
|
*TrackChange* Triggered after a playing track has changed
|
||||||
*VimperatorLeave* Triggered before exiting Firefox
|
*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.
|
{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*.
|
*<file>* The target destination of a download. Only for *DownloadPost*.
|
||||||
*<state>* The new fullscreen state. Only for *Fullscreen*.
|
*<state>* The new fullscreen state. Only for *Fullscreen*.
|
||||||
*<name>* The color scheme name. Only for *ColorScheme*.
|
*<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*.
|
||||||
--------------------------------------------------------------
|
--------------------------------------------------------------
|
||||||
|
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user