mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:48:00 +01:00
move some completion code to completion.js
This commit is contained in:
@@ -331,16 +331,7 @@ liberator.config = { //{{{
|
||||
},
|
||||
{
|
||||
argCount: "+",
|
||||
completer: function (filter)
|
||||
{
|
||||
var menu = document.getElementById("viewSidebarMenu");
|
||||
var nodes = [];
|
||||
|
||||
for (let i = 0; i < menu.childNodes.length; i++)
|
||||
nodes.push([menu.childNodes[i].label, ""]);
|
||||
|
||||
return [0, liberator.completion.filter(nodes, filter)];
|
||||
}
|
||||
completer: function (filter) liberator.completion.sidebar(filter)
|
||||
});
|
||||
|
||||
liberator.commands.add(["winc[lose]", "wc[lose]"],
|
||||
|
||||
Reference in New Issue
Block a user