1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 11:02:37 +01:00

autocommands (:au[tocmd]... ; onPageLoad event for now only.

This commit is contained in:
Marco Candrian
2007-12-28 03:18:49 +00:00
parent 5344af4d02
commit efb48b6195
4 changed files with 225 additions and 2 deletions

View File

@@ -129,7 +129,22 @@ vimperator.Completion = function () //{{{
}
return longest;
},
autocommands: function (filter)
{
substrings = [];
var nodes = [
["onPageLoad", "when a page gets (re)loaded/opened"]
];
if (!filter)
return [0, nodes];
var mapped = nodes.map(function (node) {
return [[node[0]], node[1]];
});
return [0, buildLongestCommonSubstring(mapped, filter)];
},
dialog: function (filter)
{
substrings = [];