1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:47:58 +01:00

Don't strip spaces from URLs in :open (grr!), poke 'urlsep' value a bit, moderately decode URLs in O/T/W.

This commit is contained in:
Kris Maglione
2011-05-05 14:58:35 -04:00
parent 47f90927d3
commit a4aa3b5bc4
3 changed files with 11 additions and 7 deletions

View File

@@ -1752,7 +1752,7 @@ var Buffer = Module("buffer", {
function () {
let url = dactyl.clipboardRead();
dactyl.assert(url, _("error.clipboardEmpty"));
dactyl.open(url);
dactyl.open(url.replace(/\s+/g, ""));
});
mappings.add([modes.NORMAL], ["P", "<tab-open-clipboard-url>"],
@@ -1760,7 +1760,7 @@ var Buffer = Module("buffer", {
function () {
let url = dactyl.clipboardRead();
dactyl.assert(url, _("error.clipboardEmpty"));
dactyl.open(url, { from: "paste", where: dactyl.NEW_TAB });
dactyl.open(url.replace(/\s+/g, ""), { from: "paste", where: dactyl.NEW_TAB });
});
// reloading