mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 00:32:27 +01:00
Add completion for :colo default. Closes issue #544.
This commit is contained in:
@@ -416,10 +416,14 @@ var Highlights = Module("Highlight", {
|
|||||||
|
|
||||||
context.title = ["Color Scheme", "Runtime Path"];
|
context.title = ["Color Scheme", "Runtime Path"];
|
||||||
context.keys = { text: function (f) f.leafName.replace(extRe, ""), description: ".parent.path" };
|
context.keys = { text: function (f) f.leafName.replace(extRe, ""), description: ".parent.path" };
|
||||||
context.completions = array.flatten(
|
context.completions =
|
||||||
io.getRuntimeDirectories("colors").map(
|
array.flatten(
|
||||||
function (dir) dir.readDirectory().filter(
|
io.getRuntimeDirectories("colors").map(
|
||||||
function (file) extRe.test(file.leafName))));
|
function (dir) dir.readDirectory().filter(
|
||||||
|
function (file) extRe.test(file.leafName))))
|
||||||
|
.concat([
|
||||||
|
{ leafName: "default", parent: { path: /*L*/"Revert to builtin colorscheme" } }
|
||||||
|
]);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user