aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2019-09-22 19:15:04 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2019-09-22 19:15:04 -0400
commit8d691eedfb6c62c231fc95d1be786de6cc945cb7 (patch)
tree5aa4f0a77c403dad129b6ef7fcf4b0cbd6cf33a1 /modules/textadept/menu.lua
parentf7cfaf74fb0170bc65671c493bccd49b11835256 (diff)
downloadtextadept-8d691eedfb6c62c231fc95d1be786de6cc945cb7.tar.gz
textadept-8d691eedfb6c62c231fc95d1be786de6cc945cb7.zip
Replaced `ui.command_entry.*_mode()` with simplified `ui.command_entry.run()`.
The command entry no longer uses named key modes. Instead, mode keys are supplied to `run()` if necessary. The command entry remains modal, though.
Diffstat (limited to 'modules/textadept/menu.lua')
-rw-r--r--modules/textadept/menu.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua
index caaa3463..9b4cb9a4 100644
--- a/modules/textadept/menu.lua
+++ b/modules/textadept/menu.lua
@@ -103,7 +103,7 @@ local default_menubar = {
{_L['T_ranspose Characters'], textadept.editing.transpose_chars},
{_L['_Join Lines'], textadept.editing.join_lines},
{_L['_Filter Through'], function()
- ui.command_entry.enter_mode('filter_through', 'bash')
+ ui.command_entry.run(textadept.editing.filter_through, 'bash')
end},
{
title = _L['_Select'],
@@ -163,9 +163,7 @@ local default_menubar = {
},
{
title = _L['_Tools'],
- {_L['Command _Entry'], function()
- ui.command_entry.enter_mode('lua_command', 'lua')
- end},
+ {_L['Command _Entry'], ui.command_entry.run},
{_L['Select Co_mmand'], function() M.select_command() end},
SEPARATOR,
{_L['_Run'], textadept.run.run},