From 8d691eedfb6c62c231fc95d1be786de6cc945cb7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 22 Sep 2019 19:15:04 -0400 Subject: 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. --- modules/textadept/menu.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/textadept/menu.lua') 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}, -- cgit v1.2.3