mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-21 23:05:46 +01:00
added LocationChange autocmd
This commit is contained in:
@@ -1445,6 +1445,8 @@ liberator.Events = function () //{{{
|
|||||||
liberator.statusline.updateUrl();
|
liberator.statusline.updateUrl();
|
||||||
liberator.statusline.updateProgress();
|
liberator.statusline.updateProgress();
|
||||||
|
|
||||||
|
liberator.autocommands.trigger("LocationChange", liberator.buffer.URL);
|
||||||
|
|
||||||
// if this is not delayed we get the position of the old buffer
|
// if this is not delayed we get the position of the old buffer
|
||||||
setTimeout(function () { liberator.statusline.updateBufferPosition(); }, 100);
|
setTimeout(function () { liberator.statusline.updateBufferPosition(); }, 100);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -20,9 +20,10 @@ Add {cmd} to the list of commands Vimperator will execute on {event}:
|
|||||||
|
|
||||||
Available {events}:
|
Available {events}:
|
||||||
|
|
||||||
* Startup
|
* LocationChange
|
||||||
* Quit
|
|
||||||
* PageLoad
|
* PageLoad
|
||||||
|
* Quit
|
||||||
|
* Startup
|
||||||
|
|
||||||
{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.
|
||||||
________________________________________________________________________________
|
________________________________________________________________________________
|
||||||
|
|||||||
Reference in New Issue
Block a user