mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 16:25:48 +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); });
|
function () { dactyl.clipboardWrite(buffer.uri.spec, true); });
|
||||||
|
|
||||||
mappings.add([modes.NORMAL],
|
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)); },
|
function (args) { buffer.incrementURL(Math.max(args.count, 1)); },
|
||||||
{ count: true });
|
{ count: true });
|
||||||
|
|
||||||
mappings.add([modes.NORMAL],
|
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)); },
|
function (args) { buffer.incrementURL(-Math.max(args.count, 1)); },
|
||||||
{ count: true });
|
{ count: true });
|
||||||
|
|
||||||
mappings.add([modes.NORMAL], ["gu"],
|
mappings.add([modes.NORMAL], ["gu", "<parent-url-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"],
|
mappings.add([modes.NORMAL], ["gU", "<root-url-path>"],
|
||||||
"Go to the root of the website",
|
"Go to the root of the website",
|
||||||
function () { buffer.climbUrlPath(-1); });
|
function () { buffer.climbUrlPath(-1); });
|
||||||
|
|
||||||
@@ -1629,7 +1629,7 @@ var Buffer = Module("buffer", {
|
|||||||
"Start caret mode",
|
"Start caret mode",
|
||||||
function () { modes.push(modes.CARET); });
|
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",
|
"Stop loading the current web page",
|
||||||
function () { ex.stop(); });
|
function () { ex.stop(); });
|
||||||
|
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
|
|||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags><![CDATA[<C-x>]]></tags>
|
<tags><![CDATA[<decrement-url-path> <C-x>]]></tags>
|
||||||
<strut/>
|
<strut/>
|
||||||
<spec><oa>count</oa><C-x></spec>
|
<spec><oa>count</oa><C-x></spec>
|
||||||
<description>
|
<description>
|
||||||
@@ -237,7 +237,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
|
|||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags><![CDATA[<C-a>]]></tags>
|
<tags><![CDATA[<increment-url-path> <C-a>]]></tags>
|
||||||
<strut/>
|
<strut/>
|
||||||
<spec><oa>count</oa><C-a></spec>
|
<spec><oa>count</oa><C-a></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>gu</tags>
|
<tags><![CDATA[<parent-url-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>gU</tags>
|
<tags><![CDATA[<root-url-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>
|
||||||
@@ -394,7 +394,7 @@ want to bypass &dactyl.appName;'s key handling and pass keys directly to
|
|||||||
<h2 tag="stopping">Stopping</h2>
|
<h2 tag="stopping">Stopping</h2>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags><![CDATA[<C-c> :st :stop]]></tags>
|
<tags><![CDATA[<stop-load> <C-c> :st :stop]]></tags>
|
||||||
<spec><C-c></spec>
|
<spec><C-c></spec>
|
||||||
<strut/>
|
<strut/>
|
||||||
<spec>:st<oa>op</oa></spec>
|
<spec>:st<oa>op</oa></spec>
|
||||||
|
|||||||
Reference in New Issue
Block a user