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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user