mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 00:07:59 +01:00
First work towards cleaning up the commandline.js rat's nest. Don't expect any of these new interfaces to stay remotely as they are.
--HG-- branch : key-processing
This commit is contained in:
@@ -71,27 +71,27 @@ var Browser = Module("browser", {
|
||||
// opening websites
|
||||
mappings.add([modes.NORMAL],
|
||||
["o"], "Open one or more URLs",
|
||||
function () { commandline.open(":", "open ", modes.EX); });
|
||||
function () { CommandExMode().open("open "); });
|
||||
|
||||
mappings.add([modes.NORMAL], ["O"],
|
||||
"Open one or more URLs, based on current location",
|
||||
function () { commandline.open(":", "open " + buffer.uri.spec, modes.EX); });
|
||||
function () { CommandExMode().open("open " + buffer.uri.spec); });
|
||||
|
||||
mappings.add([modes.NORMAL], ["t"],
|
||||
"Open one or more URLs in a new tab",
|
||||
function () { commandline.open(":", "tabopen ", modes.EX); });
|
||||
function () { CommandExMode().open("tabopen "); });
|
||||
|
||||
mappings.add([modes.NORMAL], ["T"],
|
||||
"Open one or more URLs in a new tab, based on current location",
|
||||
function () { commandline.open(":", "tabopen " + buffer.uri.spec, modes.EX); });
|
||||
function () { CommandExMode().open("tabopen " + buffer.uri.spec); });
|
||||
|
||||
mappings.add([modes.NORMAL], ["w"],
|
||||
"Open one or more URLs in a new window",
|
||||
function () { commandline.open(":", "winopen ", modes.EX); });
|
||||
function () { CommandExMode().open("winopen "); });
|
||||
|
||||
mappings.add([modes.NORMAL], ["W"],
|
||||
"Open one or more URLs in a new window, based on current location",
|
||||
function () { commandline.open(":", "winopen " + buffer.uri.spec, modes.EX); });
|
||||
function () { CommandExMode().open("winopen " + buffer.uri.spec); });
|
||||
|
||||
mappings.add([modes.NORMAL],
|
||||
["<C-a>"], "Increment last number in URL",
|
||||
|
||||
Reference in New Issue
Block a user