1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 18:07:58 +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", "Open one or more URLs in a new window, based on current location",
function () { CommandExMode().open("winopen " + decode(buffer.uri.spec)); }); function () { CommandExMode().open("winopen " + decode(buffer.uri.spec)); });
mappings.add([modes.NORMAL], ["~"], mappings.add([modes.NORMAL], ["<open-home-directory>", "~"],
"Open home directory", "Open home directory",
function () { dactyl.open("~"); }); function () { dactyl.open("~"); });
mappings.add([modes.NORMAL], ["gh"], mappings.add([modes.NORMAL], ["<open-homepage>", "gh"],
"Open homepage", "Open homepage",
function () { BrowserHome(); }); function () { BrowserHome(); });
mappings.add([modes.NORMAL], ["gH"], mappings.add([modes.NORMAL], ["<tab-open-homepage>", "gH"],
"Open homepage in a new tab", "Open homepage in a new tab",
function () { function () {
let homepages = gHomeButton.getHomePage(); let homepages = gHomeButton.getHomePage();
dactyl.open(homepages, { from: "homepage", where: dactyl.NEW_TAB }); 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", "Redraw the screen",
function () { ex.redraw(); }); function () { ex.redraw(); });
} }

View File

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

View File

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

View File

@@ -1565,7 +1565,7 @@ var Events = Module("events", {
mappings: function () { mappings: function () {
mappings.add([modes.MAIN], 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 () { function () {
events.processor = ProcessorStack(modes.getStack(0), mappings.hives.array, true); events.processor = ProcessorStack(modes.getStack(0), mappings.hives.array, true);
events.processor.keyEvents = events.keyEvents; events.processor.keyEvents = events.keyEvents;

View File

@@ -20,7 +20,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
&dactyl.host; or to a web page, you have two options: &dactyl.host; or to a web page, you have two options:
<item> <item>
<tags><![CDATA[<A-b>]]></tags> <tags><![CDATA[<pass-next-key-builtin> <A-b>]]></tags>
<spec><![CDATA[<A-b>]]></spec> <spec><![CDATA[<A-b>]]></spec>
<description> <description>
<p> <p>
@@ -249,7 +249,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item> </item>
<item> <item>
<tags>~</tags> <tags><![CDATA[<open-home-directory> ~]]></tags>
<spec>~</spec> <spec>~</spec>
<description short="true"> <description short="true">
<p>Open home directory. Equivalent to <ex>:open ~/</ex></p> <p>Open home directory. Equivalent to <ex>:open ~/</ex></p>
@@ -303,7 +303,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item> </item>
<item> <item>
<tags>gh</tags> <tags><![CDATA[<open-homepage> gh]]></tags>
<spec>gh</spec> <spec>gh</spec>
<description short="true"> <description short="true">
<p>Go home. Opens the homepage in the current tab.</p> <p>Go home. Opens the homepage in the current tab.</p>
@@ -311,7 +311,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item> </item>
<item> <item>
<tags>gH</tags> <tags><![CDATA[<tab-open-homepage> gH]]></tags>
<strut/> <strut/>
<spec>gH</spec> <spec>gH</spec>
<description> <description>
@@ -324,7 +324,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item> </item>
<item> <item>
<tags><![CDATA[<parent-url-path> gu]]></tags> <tags><![CDATA[<open-parent-path> gu]]></tags>
<spec><oa>count</oa>gu</spec> <spec><oa>count</oa>gu</spec>
<description short="true"> <description short="true">
<p>Go to <oa>count</oa>th parent directory.</p> <p>Go to <oa>count</oa>th parent directory.</p>
@@ -338,7 +338,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item> </item>
<item> <item>
<tags><![CDATA[<root-url-path> gU]]></tags> <tags><![CDATA[<open-root-path> gU]]></tags>
<spec>gU</spec> <spec>gU</spec>
<description short="true"> <description short="true">
<p>Go to the root of the web site.</p> <p>Go to the root of the web site.</p>

View File

@@ -55,7 +55,7 @@
</item> </item>
<item> <item>
<tags>gf</tags> <tags><![CDATA[<view-source> gf]]></tags>
<strut/> <strut/>
<spec>gf</spec> <spec>gf</spec>
<description> <description>
@@ -67,7 +67,7 @@
</item> </item>
<item> <item>
<tags>gF</tags> <tags><![CDATA[<view-source-externally> gF]]></tags>
<strut/> <strut/>
<spec>gF</spec> <spec>gF</spec>
<description> <description>

View File

@@ -87,7 +87,7 @@
</item> </item>
<item> <item>
<tags><![CDATA[<C-l> CTRL-L :redr :redraw]]></tags> <tags><![CDATA[<redraw-screen> <C-l> CTRL-L :redr :redraw]]></tags>
<strut/> <strut/>
<spec>:redr<oa>aw</oa></spec> <spec>:redr<oa>aw</oa></spec>
<description> <description>
@@ -166,7 +166,7 @@
<h2 tag="online-help">Online help</h2> <h2 tag="online-help">Online help</h2>
<item> <item>
<tags><![CDATA[<F1> :help :h help]]></tags> <tags><![CDATA[<open-help> <F1> :help :h help]]></tags>
<spec>:h<oa>elp</oa> <oa>subject</oa></spec> <spec>:h<oa>elp</oa> <oa>subject</oa></spec>
<spec>&lt;F1></spec> <spec>&lt;F1></spec>
<description> <description>
@@ -180,7 +180,7 @@
</item> </item>
<item> <item>
<tags><![CDATA[<A-F1> :helpall :helpa help-all]]></tags> <tags><![CDATA[<open-single-help> <A-F1> :helpall :helpa help-all]]></tags>
<spec>:helpa<oa>ll</oa> <oa>subject</oa></spec> <spec>:helpa<oa>ll</oa> <oa>subject</oa></spec>
<spec>&lt;A-F1></spec> <spec>&lt;A-F1></spec>
<description> <description>