1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 23:57:59 +01:00

fix :colorscheme completion

This commit is contained in:
Doug Kearns
2008-12-05 23:34:01 +11:00
parent 0e13ddd166
commit 64b4d5f9da
2 changed files with 7 additions and 5 deletions

View File

@@ -1217,12 +1217,12 @@ function Completion() //{{{
colorScheme: function colorScheme(context)
{
options.get("runtimepath").values.forEach(function (path) {
context.fork(path, 0, null, function (context) {
context.filter = path + "/colors/" + context.filter;
io.getRuntimeDirectories("colors").forEach(function (dir) {
context.fork(dir.path, 0, null, function (context) {
context.filter = dir.path + io.pathSeparator + context.filter;
completion.file(context, true);
context.title = [path + "/colors/"];
context.quote = function (text) text.replace(/\.vimp$/, "");
context.title = [dir.path]; // TODO: why not "Colorscheme"?
context.quote = ["", function (text) text.replace(/\.vimp$/, ""), ""];
});
});
},

View File

@@ -413,6 +413,8 @@ function IO() //{{{
sourcing: null,
pathSeparator: WINDOWS ? "\\" : "/",
expandPath: function (path)
{
// TODO: proper pathname separator translation like Vim - this should be done elsewhere