mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 02:35:47 +01:00
expanded autocmd docs.
This commit is contained in:
@@ -13,20 +13,32 @@ ________________________________________________________________________________
|
|||||||
|
|
||||||
Add {cmd} to the list of commands Vimperator will execute on {event}:
|
Add {cmd} to the list of commands Vimperator will execute on {event}:
|
||||||
|
|
||||||
* [c]:autocmd[!][c] {events} {pat}: list/remove autocommands filtered be {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}
|
||||||
* [c]:autocmd[!][c] * {pat}: list/remove autocommands matching {pat}
|
* [c]:autocmd[!][c] * {pat}: list/remove autocommands matching {pat}
|
||||||
* [c]:autocmd[!][c]: list/remove all autocommands
|
* [c]:autocmd[!][c]: list/remove all autocommands
|
||||||
|
|
||||||
Available {events}:
|
Available {events}:
|
||||||
|
|
||||||
* LocationChange
|
`----------------`--------------------------------------------
|
||||||
* PageLoad
|
*LocationChange* Triggered when changing tabs or when navigating to a new location
|
||||||
* Quit
|
*PageLoad* Triggered when a page gets (re)loaded/opened
|
||||||
* Startup
|
*Quit* Triggered before exiting Firefox
|
||||||
|
*Startup* Triggered after Firefox starts
|
||||||
|
--------------------------------------------------------------
|
||||||
|
|
||||||
{pat} is a regular expression, use .* if you want to match all events.
|
{pat} is a regular expression, use .* if you want to match all events.
|
||||||
|
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|
||||||
|
section:Examples[examples]
|
||||||
|
|
||||||
|
Enable _passthrough_ mode on all Google sites:
|
||||||
|
|
||||||
|
:au LocationChange .* js modes.passAllKeys = /google\.com/.test(buffer.URL)
|
||||||
|
|
||||||
|
Enable _passthrough_ mode on *some* Google sites:
|
||||||
|
|
||||||
|
:au LocationChange .* js modes.passAllKeys = /(www|mail)\.google\.com/.test(buffer.URL)
|
||||||
|
|
||||||
// vim: set syntax=asciidoc:
|
// vim: set syntax=asciidoc:
|
||||||
|
|||||||
Reference in New Issue
Block a user