1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 05:38:01 +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(); });