1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-31 11:02:37 +01:00

add help for :colorscheme and move completion function to

completion.colorScheme
This commit is contained in:
Doug Kearns
2008-11-01 14:54:05 +00:00
parent dd7178dfc6
commit 3371398700
8 changed files with 37 additions and 19 deletions

View File

@@ -813,6 +813,19 @@ function Completion() //{{{
return [0, buildLongestCommonSubstring(items, filter)];
},
colorScheme: function colorScheme(filter)
{
let schemes = [];
let rtp = options["runtimepath"].split(",");
rtp.forEach(function (path) {
schemes = schemes.concat([[c[0].replace(/\.vimp$/, ""), ""]
for each (c in completion.file(path + "/colors/", true)[1])]);
});
return [0, completion.filter(schemes, filter)];
},
command: function command(filter)
{
var completions = [];