mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-25 10:11:23 +02:00
add completion to :*unmap commands
This commit is contained in:
+12
-1
@@ -234,7 +234,18 @@ liberator.Mappings = function () //{{{
|
|||||||
if (!found)
|
if (!found)
|
||||||
liberator.echoerr("E31: No such mapping");
|
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