mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 00:28:00 +01:00
Add <scroll-{top,bottom}> map aliases.
This commit is contained in:
@@ -1662,12 +1662,12 @@ var Buffer = Module("buffer", {
|
||||
"Scroll to the absolute right of the document",
|
||||
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",
|
||||
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 0); },
|
||||
{ count: true });
|
||||
|
||||
mappings.add([modes.COMMAND], ["G", "<End>"],
|
||||
mappings.add([modes.COMMAND], ["G", "<End>", "<scroll-bottom>"],
|
||||
"Go to the end of the document",
|
||||
function (args) { buffer.scrollToPercent(null, args.count != null ? args.count : 100); },
|
||||
{ count: true });
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<tags><![CDATA[<Home> gg]]></tags>
|
||||
<tags><![CDATA[<scroll-top> <Home> gg]]></tags>
|
||||
<strut/>
|
||||
<spec><oa>count</oa>gg</spec>
|
||||
<description>
|
||||
@@ -128,7 +128,7 @@
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<tags><![CDATA[<End> G]]></tags>
|
||||
<tags><![CDATA[<scroll-bottom> <End> G]]></tags>
|
||||
<strut/>
|
||||
<spec><oa>count</oa>G</spec>
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user