mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 08:14:11 +01:00
extract editor.editFileExternally from buffer.viewSource and
editor.editWithExternalEditor
This commit is contained in:
@@ -131,7 +131,7 @@ const config = { //{{{
|
||||
// TODO: move mappings elsewhere, probably compose.js
|
||||
mappings.add([modes.COMPOSE],
|
||||
["e"], "Edit message",
|
||||
function () { editor.editWithExternalEditor(); });
|
||||
function () { editor.editFieldExternally(); });
|
||||
|
||||
mappings.add([modes.COMPOSE],
|
||||
["y"], "Send message now",
|
||||
@@ -178,7 +178,7 @@ const config = { //{{{
|
||||
if (options["autoexternal"] && !window.messageWasEditedExternally/* && !gMsgCompose.recycledWindow*/)
|
||||
{
|
||||
window.messageWasEditedExternally = true;
|
||||
editor.editWithExternalEditor();
|
||||
editor.editFieldExternally();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user