1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 12:35:45 +01:00

add completion to :*unmap commands

This commit is contained in:
Doug Kearns
2008-08-20 12:10:44 +00:00
parent 0f260b7da4
commit 25eb1e134c

View File

@@ -234,7 +234,18 @@ liberator.Mappings = function () //{{{
if (!found)
liberator.echoerr("E31: No such mapping");
},
{ argCount: "1" });
{
argCount: "1",
completer: function (filter)
{
var mappings = []
for (var map in liberator.mappings.getUserIterator(modes))
mappings.push([map.names[0], ""]);
return [0, liberator.completion.filter(mappings, filter)];
}
});
}
/////////////////////////////////////////////////////////////////////////////}}}