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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user