1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 19:44:11 +01:00

move the help files list to Vimperator's liberator.config

This commit is contained in:
Doug Kearns
2008-08-12 17:55:47 +00:00
parent 055555d81a
commit 85ecff4957
2 changed files with 10 additions and 10 deletions

View File

@@ -377,16 +377,7 @@ const liberator = (function () //{{{
function getHelpCompletions(filter)
{
var res = [];
// they are sorted by relevance, not alphabetically
// TODO: move files to liberator.config
var files = ["intro.html", "tutorial.html", "starting.html",
"browsing.html", "buffer.html", "pattern.html", "options.html",
"tabs.html", "hints.html", "map.html", "eval.html", "marks.html",
"repeat.html", "autocommands.html", "print.html", "developer.html",
"various.html"];
for (var file in files)
for (var file in liberator.config.helpFiles)
{
try
{
@@ -399,6 +390,7 @@ const liberator = (function () //{{{
liberator.log("Error opening chrome://" + liberator.config.name.toLowerCase() + "/locale/" + files[file], 1);
continue;
}
var res = [];
var doc = xmlhttp.responseXML;
var elems = doc.getElementsByClassName("tag");
for (var i = 0; i < elems.length; i++)