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:
@@ -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(); });
|
||||
|
||||
|
||||
@@ -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><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><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><C-c></spec>
|
||||
<strut/>
|
||||
<spec>:st<oa>op</oa></spec>
|
||||
|
||||
Reference in New Issue
Block a user