mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-02 00:13:34 +02:00
autocommands (:au[tocmd]... ; onPageLoad event for now only.
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user