1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 16:17:57 +01:00

Add external editor mappings to Command Line and Text Edit modes.

This is bound to <C-i> in each of these modes as it is for Insert mode.

--HG--
extra : rebase_source : 846abe669c943637de39a8def11e30d812f01fc2
This commit is contained in:
Doug Kearns
2010-11-08 18:35:18 +11:00
parent a8b16ec635
commit 4a2d35c4f4
3 changed files with 18 additions and 1 deletions

View File

@@ -570,7 +570,8 @@ const Editor = Module("editor", {
["<S-Insert>"], "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),
["<C-i>"], "Edit text field with an external editor",
function () { editor.editFieldExternally(); });

View File

@@ -48,6 +48,14 @@
<h2 tag="cmdline-editing">Command line editing</h2>
<item>
<tags><![CDATA[c_<C-i>]]></tags>
<spec>&lt;C-i></spec>
<description short="true">
<p>Launch the external editor. See the <o>editor</o> option.</p>
</description>
</item>
<item>
<tags><![CDATA[c_<C-c>]]></tags>
<spec>&lt;C-c></spec>

View File

@@ -140,6 +140,14 @@
<h2 tag="text-edit-mode text-edit tedit-mode">Text Edit mode</h2>
<item>
<tags><![CDATA[t_<C-i>]]></tags>
<spec>&lt;C-i></spec>
<description short="true">
<p>Launch the external editor. See the <o>editor</o> option.</p>
</description>
</item>
<h3 tag="tedit-cursor-motions">Cursor motions</h3>
<p>Left-right motions</p>