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

Add <scroll-{top,bottom}> map aliases.

This commit is contained in:
Doug Kearns
2011-06-12 14:11:23 +10:00
parent 3cc9ce2f8c
commit a6f1417220
2 changed files with 4 additions and 4 deletions

View File

@@ -1662,12 +1662,12 @@ var Buffer = Module("buffer", {
"Scroll to the absolute right of the document", "Scroll to the absolute right of the document",
function () { buffer.scrollToPercent(100, null); }); function () { buffer.scrollToPercent(100, null); });
mappings.add([modes.COMMAND], ["gg", "<Home>"], mappings.add([modes.COMMAND], ["gg", "<Home>", "<scroll-top>"],
"Go to the top of the document", "Go to the top of the document",
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 0); }, function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 0); },
{ count: true }); { count: true });
mappings.add([modes.COMMAND], ["G", "<End>"], mappings.add([modes.COMMAND], ["G", "<End>", "<scroll-bottom>"],
"Go to the end of the document", "Go to the end of the document",
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 100); }, function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 100); },
{ count: true }); { count: true });

View File

@@ -115,7 +115,7 @@
</item> </item>
<item> <item>
<tags><![CDATA[<Home> gg]]></tags> <tags><![CDATA[<scroll-top> <Home> gg]]></tags>
<strut/> <strut/>
<spec><oa>count</oa>gg</spec> <spec><oa>count</oa>gg</spec>
<description> <description>
@@ -128,7 +128,7 @@
</item> </item>
<item> <item>
<tags><![CDATA[<End> G]]></tags> <tags><![CDATA[<scroll-bottom> <End> G]]></tags>
<strut/> <strut/>
<spec><oa>count</oa>G</spec> <spec><oa>count</oa>G</spec>
<description> <description>