1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 23:58:00 +01:00

:macro for playing a macro added

This commit is contained in:
Marco Candrian
2008-01-21 12:58:22 +00:00
parent 7982265c98
commit 2b71bd70b8
4 changed files with 37 additions and 4 deletions

View File

@@ -186,7 +186,21 @@ vimperator.Completion = function () //{{{
return [0, buildLongestCommonSubstring(mapped, filter)];
},
macros: function (filter)
{
var macros = [];
var tmp = vimperator.events.getMacros();
for (var item in tmp)
macros.push([item, tmp[item]]);
if (!filter)
return [0, macros];
var mapped = macros.map(function (macro) {
return [[macro[0]], macro[1]];
});
return [0, buildLongestCommonSubstring(mapped, filter)];
},
// filter a list of urls
//
// may consist of search engines, filenames, bookmarks and history,