mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:18:00 +01:00
Add \ mapping to toggle between rendered and source view.
Like lynx, elinks et al.
This commit is contained in:
@@ -365,6 +365,18 @@ function Buffer() //{{{
|
||||
"View source with an external editor",
|
||||
function () { buffer.viewSource(null, true); });
|
||||
|
||||
mappings.add(myModes, ["\\"],
|
||||
"Toggle between rendered and source view",
|
||||
function ()
|
||||
{
|
||||
const scheme = "view-source";
|
||||
|
||||
if (util.newURI(buffer.URL).scheme == scheme)
|
||||
liberator.open(buffer.URL.substr(scheme.length + 1));
|
||||
else
|
||||
liberator.open(scheme + ":" + buffer.URL)
|
||||
});
|
||||
|
||||
mappings.add(myModes, ["gi"],
|
||||
"Focus last used input field",
|
||||
function (count)
|
||||
|
||||
Reference in New Issue
Block a user