1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 18:07:58 +01:00

Improve behavior of gf. Remove "|" alias.

This commit is contained in:
Kris Maglione
2010-08-28 18:02:03 -04:00
parent 924863cd61
commit e3a2df403d
4 changed files with 12 additions and 26 deletions

View File

@@ -940,7 +940,12 @@ const Buffer = Module("buffer", {
url = url.substr(PREFIX.length);
else
url = PREFIX + url;
dactyl.open(url, { hide: true });
let sh = history.session;
if (sh[sh.index].URI.spec == url)
window.getWebNavigation().gotoIndex(sh.index);
else
dactyl.open(url, { hide: true });
}
},
@@ -1470,17 +1475,13 @@ const Buffer = Module("buffer", {
{ count: true });
mappings.add(myModes, ["gf"],
"View source",
"Toggle between rendered and source view",
function () { buffer.viewSource(null, false); });
mappings.add(myModes, ["gF"],
"View source with an external editor",
function () { buffer.viewSource(null, true); });
mappings.add(myModes, ["|"],
"Toggle between rendered and source view",
function () { buffer.viewSource(null, false); });
mappings.add(myModes, ["gi"],
"Focus last used input field",
function (count) {