1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-21 08:05:45 +01:00

More assorted map aliases.

--HG--
extra : rebase_source : 8614d45db94c8415542c0a264b602b24d898971e
This commit is contained in:
Doug Kearns
2011-06-16 01:09:05 +10:00
parent 12df37b179
commit 68629f3fd5
7 changed files with 20 additions and 20 deletions

View File

@@ -233,22 +233,22 @@ var Browser = Module("browser", XPCOM(Ci.nsISupportsWeakReference, ModuleBase),
"Open one or more URLs in a new window, based on current location",
function () { CommandExMode().open("winopen " + decode(buffer.uri.spec)); });
mappings.add([modes.NORMAL], ["~"],
mappings.add([modes.NORMAL], ["<open-home-directory>", "~"],
"Open home directory",
function () { dactyl.open("~"); });
mappings.add([modes.NORMAL], ["gh"],
mappings.add([modes.NORMAL], ["<open-homepage>", "gh"],
"Open homepage",
function () { BrowserHome(); });
mappings.add([modes.NORMAL], ["gH"],
mappings.add([modes.NORMAL], ["<tab-open-homepage>", "gH"],
"Open homepage in a new tab",
function () {
let homepages = gHomeButton.getHomePage();
dactyl.open(homepages, { from: "homepage", where: dactyl.NEW_TAB });
});
mappings.add([modes.MAIN], ["<C-l>"],
mappings.add([modes.MAIN], ["<redraw-screen>", "<C-l>"],
"Redraw the screen",
function () { ex.redraw(); });
}

View File

@@ -1606,12 +1606,12 @@ var Buffer = Module("buffer", {
function (args) { buffer.incrementURL(-Math.max(args.count, 1)); },
{ count: true });
mappings.add([modes.NORMAL], ["gu", "<parent-url-path>"],
mappings.add([modes.NORMAL], ["gu", "<open-parent-path>"],
"Go to parent directory",
function (args) { buffer.climbUrlPath(Math.max(args.count, 1)); },
{ count: true });
mappings.add([modes.NORMAL], ["gU", "<root-url-path>"],
mappings.add([modes.NORMAL], ["gU", "<open-root-path>"],
"Go to the root of the website",
function () { buffer.climbUrlPath(-1); });

View File

@@ -1713,11 +1713,11 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
},
mappings: function () {
mappings.add([modes.MAIN], ["<F1>"],
mappings.add([modes.MAIN], ["<open-help>", "<F1>"],
"Open the introductory help page",
function () { dactyl.help(); });
mappings.add([modes.MAIN], ["<A-F1>"],
mappings.add([modes.MAIN], ["<open-single-help>", "<A-F1>"],
"Open the single, consolidated help page",
function () { ex.helpall(); });

View File

@@ -1565,7 +1565,7 @@ var Events = Module("events", {
mappings: function () {
mappings.add([modes.MAIN],
["<A-b>"], "Process the next key as a builtin mapping",
["<A-b>", "<pass-next-key-builtin>"], "Process the next key as a builtin mapping",
function () {
events.processor = ProcessorStack(modes.getStack(0), mappings.hives.array, true);
events.processor.keyEvents = events.keyEvents;