1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 10:55:45 +01:00

Kill :dia import.

This commit is contained in:
Kris Maglione
2011-10-05 05:00:31 -04:00
parent 35bc2fb201
commit f7493160ca
8 changed files with 20 additions and 11 deletions

View File

@@ -7,7 +7,7 @@
Components.utils.import("resource://dactyl/bootstrap.jsm");
defineModule("help", {
exports: ["help"],
require: ["cache", "dom", "javascript", "protocol", "services", "util"]
require: ["cache", "dom", "protocol", "services", "util"]
}, this);
this.lazyRequire("completion", ["completion"]);
@@ -290,7 +290,7 @@ var Help = Module("Help", {
dactyl.open("dactyl://help/" + page, { from: "help" });
},
exportHelp: JavaScript.setCompleter(function (path) {
exportHelp: function (path) {
const FILE = io.File(path);
const PATH = FILE.leafName.replace(/\..*/, "") + "/";
const TIME = Date.now();
@@ -401,7 +401,7 @@ var Help = Module("Help", {
if (zip)
zip.close();
}, [function (context, args) overlay.activeModules.completion.file(context)]),
}
})
}, {
@@ -455,6 +455,10 @@ var Help = Module("Help", {
mappings.add([modes.MAIN], ["<open-single-help>", "<A-F1>"],
"Open the single, consolidated help page",
function () { modules.ex.helpall(); });
},
javascript: function init_javascript(dactyl, modules, window) {
modules.JavaScript.setCompleter([this.exportHelp],
[function (context, args) overlay.activeModules.completion.file(context)]);
}
});