1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 12: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",
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 });