mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-26 09:55:45 +01:00
Replace weird mystery meat args of mapping actions with a proper object.
This commit is contained in:
@@ -95,12 +95,12 @@ var Browser = Module("browser", {
|
||||
|
||||
mappings.add([modes.NORMAL],
|
||||
["<C-a>"], "Increment last number in URL",
|
||||
function (count) { Browser.incrementURL(Math.max(count, 1)); },
|
||||
function (args) { Browser.incrementURL(Math.max(args.count, 1)); },
|
||||
{ count: true });
|
||||
|
||||
mappings.add([modes.NORMAL],
|
||||
["<C-x>"], "Decrement last number in URL",
|
||||
function (count) { Browser.incrementURL(-Math.max(count, 1)); },
|
||||
function (args) { Browser.incrementURL(-Math.max(args.count, 1)); },
|
||||
{ count: true });
|
||||
|
||||
mappings.add([modes.NORMAL], ["~"],
|
||||
@@ -120,7 +120,7 @@ var Browser = Module("browser", {
|
||||
|
||||
mappings.add([modes.NORMAL], ["gu"],
|
||||
"Go to parent directory",
|
||||
function (count) { Browser.climbUrlPath(Math.max(count, 1)); },
|
||||
function (args) { Browser.climbUrlPath(Math.max(args.count, 1)); },
|
||||
{ count: true });
|
||||
|
||||
mappings.add([modes.NORMAL], ["gU"],
|
||||
|
||||
Reference in New Issue
Block a user