mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 04:02:31 +02:00
Add commands.get completer. Add more JS completer tests.
--HG-- branch : groups
This commit is contained in:
1 parent
89020be0ee
commit
56a28ec0fa
3 files changed
+20
-10
No files matched your search
@@ -746,16 +746,10 @@ var Mappings = Module("mappings", {
|
||||
};
|
||||
},
|
||||
javascript: function () {
|
||||
JavaScript.setCompleter(mappings.get,
|
||||
JavaScript.setCompleter([mappings.get, mappings.builtin.get],
|
||||
[
|
||||
null,
|
||||
function (context, obj, args) {
|
||||
let mode = args[0];
|
||||
return array.flatten([
|
||||
[[name, map.description] for ([i, name] in Iterator(map.names))]
|
||||
for (map in mappings.iterate(mode))
|
||||
]);
|
||||
}
|
||||
function (context, obj, args) [[m.names, m.description] for (m in this.iterate(args[0]))]
|
||||
]);
|
||||
},
|
||||
options: function () {
|
||||
|
||||
Reference in new issue
Block a user