mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 11:14:11 +01:00
ES6-ify some things. Still a long way to go...
This commit is contained in:
@@ -456,13 +456,13 @@ var Highlights = Module("Highlight", {
|
||||
context.keys = { text: f => f.leafName.replace(extRe, ""),
|
||||
description: ".parent.path" };
|
||||
context.completions =
|
||||
Ary.flatten(
|
||||
io.getRuntimeDirectories("colors").map(
|
||||
dir => dir.readDirectory()
|
||||
.filter(file => extRe.test(file.leafName))))
|
||||
.concat([
|
||||
{ leafName: "default", parent: { path: /*L*/"Revert to builtin colorscheme" } }
|
||||
]);
|
||||
io.getRuntimeDirectories("colors")
|
||||
.flatMap(dir => dir.readDirectory()
|
||||
.filter(file => extRe.test(file.leafName)))
|
||||
.concat([
|
||||
{ leafName: "default",
|
||||
parent: { path: /*L*/"Revert to builtin colorscheme" } }
|
||||
]);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user