mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 08:07:58 +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:
@@ -570,7 +570,8 @@ const Editor = Module("editor", {
|
|||||||
["<S-Insert>"], "Insert clipboard/selection",
|
["<S-Insert>"], "Insert clipboard/selection",
|
||||||
function () { editor.pasteClipboard(); });
|
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",
|
["<C-i>"], "Edit text field with an external editor",
|
||||||
function () { editor.editFieldExternally(); });
|
function () { editor.editFieldExternally(); });
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,14 @@
|
|||||||
|
|
||||||
<h2 tag="cmdline-editing">Command line editing</h2>
|
<h2 tag="cmdline-editing">Command line editing</h2>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[c_<C-i>]]></tags>
|
||||||
|
<spec><C-i></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>Launch the external editor. See the <o>editor</o> option.</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
<tags><![CDATA[c_<C-c>]]></tags>
|
<tags><![CDATA[c_<C-c>]]></tags>
|
||||||
<spec><C-c></spec>
|
<spec><C-c></spec>
|
||||||
|
|||||||
@@ -140,6 +140,14 @@
|
|||||||
|
|
||||||
<h2 tag="text-edit-mode text-edit tedit-mode">Text Edit mode</h2>
|
<h2 tag="text-edit-mode text-edit tedit-mode">Text Edit mode</h2>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[t_<C-i>]]></tags>
|
||||||
|
<spec><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>
|
<h3 tag="tedit-cursor-motions">Cursor motions</h3>
|
||||||
|
|
||||||
<p>Left-right motions</p>
|
<p>Left-right motions</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user