1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 12:14:12 +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) function getHelpCompletions(filter)
{ {
var res = []; for (var file in liberator.config.helpFiles)
// 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)
{ {
try try
{ {
@@ -399,6 +390,7 @@ const liberator = (function () //{{{
liberator.log("Error opening chrome://" + liberator.config.name.toLowerCase() + "/locale/" + files[file], 1); liberator.log("Error opening chrome://" + liberator.config.name.toLowerCase() + "/locale/" + files[file], 1);
continue; continue;
} }
var res = [];
var doc = xmlhttp.responseXML; var doc = xmlhttp.responseXML;
var elems = doc.getElementsByClassName("tag"); var elems = doc.getElementsByClassName("tag");
for (var i = 0; i < elems.length; i++) for (var i = 0; i < elems.length; i++)

View File

@@ -95,6 +95,14 @@ liberator.config = { //{{{
function () { liberator.buffer.viewSelectionSource(); }] function () { liberator.buffer.viewSelectionSource(); }]
], ],
// they are sorted by relevance, not alphabetically
helpFiles: ["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"
],
init: function () init: function ()
{ {
function incrementURL(count) function incrementURL(count)