1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 11:18:00 +01:00

Add some path manipulation map aliases.

This commit is contained in:
Doug Kearns
2011-06-12 22:20:12 +10:00
parent df984fae58
commit eee7cff10f
2 changed files with 10 additions and 10 deletions

View File

@@ -1597,21 +1597,21 @@ var Buffer = Module("buffer", {
function () { dactyl.clipboardWrite(buffer.uri.spec, true); });
mappings.add([modes.NORMAL],
["<C-a>"], "Increment last number in URL",
["<C-a>", "<increment-url-path>"], "Increment last number in URL",
function (args) { buffer.incrementURL(Math.max(args.count, 1)); },
{ count: true });
mappings.add([modes.NORMAL],
["<C-x>"], "Decrement last number in URL",
["<C-x>", "<decrement-url-path>"], "Decrement last number in URL",
function (args) { buffer.incrementURL(-Math.max(args.count, 1)); },
{ count: true });
mappings.add([modes.NORMAL], ["gu"],
mappings.add([modes.NORMAL], ["gu", "<parent-url-path>"],
"Go to parent directory",
function (args) { buffer.climbUrlPath(Math.max(args.count, 1)); },
{ count: true });
mappings.add([modes.NORMAL], ["gU"],
mappings.add([modes.NORMAL], ["gU", "<root-url-path>"],
"Go to the root of the website",
function () { buffer.climbUrlPath(-1); });
@@ -1629,7 +1629,7 @@ var Buffer = Module("buffer", {
"Start caret mode",
function () { modes.push(modes.CARET); });
mappings.add([modes.NORMAL], ["<C-c>"],
mappings.add([modes.NORMAL], ["<C-c>", "<stop-load>"],
"Stop loading the current web page",
function () { ex.stop(); });

View File

@@ -223,7 +223,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item>
<item>
<tags><![CDATA[<C-x>]]></tags>
<tags><![CDATA[<decrement-url-path> <C-x>]]></tags>
<strut/>
<spec><oa>count</oa>&lt;C-x></spec>
<description>
@@ -237,7 +237,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item>
<item>
<tags><![CDATA[<C-a>]]></tags>
<tags><![CDATA[<increment-url-path> <C-a>]]></tags>
<strut/>
<spec><oa>count</oa>&lt;C-a></spec>
<description>
@@ -324,7 +324,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
</item>
<item>
<tags>gu</tags>
<tags><![CDATA[<parent-url-path> gu]]></tags>
<spec><oa>count</oa>gu</spec>
<description short="true">
<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>
<tags>gU</tags>
<tags><![CDATA[<root-url-path> gU]]></tags>
<spec>gU</spec>
<description short="true">
<p>Go to the root of the web site.</p>
@@ -394,7 +394,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
<h2 tag="stopping">Stopping</h2>
<item>
<tags><![CDATA[<C-c> :st :stop]]></tags>
<tags><![CDATA[<stop-load> <C-c> :st :stop]]></tags>
<spec>&lt;C-c></spec>
<strut/>
<spec>:st<oa>op</oa></spec>