From 4a2d35c4f454cbb01fbb4eda35326b02aeb259de Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 8 Nov 2010 18:35:18 +1100 Subject: [PATCH] Add external editor mappings to Command Line and Text Edit modes. This is bound to in each of these modes as it is for Insert mode. --HG-- extra : rebase_source : 846abe669c943637de39a8def11e30d812f01fc2 --- common/content/editor.js | 3 ++- common/locale/en-US/cmdline.xml | 8 ++++++++ common/locale/en-US/insert.xml | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/common/content/editor.js b/common/content/editor.js index 3a4c7b7a..7760fcf4 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -570,7 +570,8 @@ const Editor = Module("editor", { [""], "Insert clipboard/selection", function () { editor.pasteClipboard(); }); - mappings.add(modes.getCharModes("i"), + // TODO: a better way to specify mode types + mappings.add(modes.getCharModes("i").concat(modes.TEXT_EDIT, modes.COMMAND_LINE), [""], "Edit text field with an external editor", function () { editor.editFieldExternally(); }); diff --git a/common/locale/en-US/cmdline.xml b/common/locale/en-US/cmdline.xml index 2a9e3e1c..b7f03732 100644 --- a/common/locale/en-US/cmdline.xml +++ b/common/locale/en-US/cmdline.xml @@ -48,6 +48,14 @@

Command line editing

+ + ]]> + <C-i> + +

Launch the external editor. See the editor option.

+
+
+ ]]> <C-c> diff --git a/common/locale/en-US/insert.xml b/common/locale/en-US/insert.xml index da195f63..594ed56e 100644 --- a/common/locale/en-US/insert.xml +++ b/common/locale/en-US/insert.xml @@ -140,6 +140,14 @@

Text Edit mode

+ + ]]> + <C-i> + +

Launch the external editor. See the editor option.

+
+
+

Cursor motions

Left-right motions