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:
@@ -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)];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
|
||||
Reference in New Issue
Block a user