From 44beff91b257a9d7874e20790d50a8568990d9e6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 25 Jul 2020 00:20:13 -0400 Subject: Moved incremental find into Find & Replace Pane. Added new `events.FIND_TEXT_CHANGED` to help facilitate this. "Whole word" and "Regex" are now supported in addition to "Match case". Also updated tests. --- modules/textadept/keys.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/textadept/keys.lua') diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua index 90cb2000..e105d57b 100644 --- a/modules/textadept/keys.lua +++ b/modules/textadept/keys.lua @@ -349,7 +349,8 @@ local bindings = { -- Find Prev is ap when find pane is focused in GUI. -- Replace is ar when find pane is focused in GUI. -- Replace All is aa when find pane is focused in GUI. - [ui.find.find_incremental] = {'ctrl+alt+f', 'ctrl+cmd+f', 'ctrl+meta+f'}, + [m_search[_L['Find Incremental']][2]] = + {'ctrl+alt+f', 'ctrl+cmd+f', 'ctrl+meta+f'}, [m_search[_L['Find in Files']][2]] = {'ctrl+F', 'cmd+F', nil}, -- Find in Files is ai when find pane is focused in GUI. [m_search[_L['Goto Next File Found']][2]] = {'ctrl+alt+g', 'ctrl+cmd+g', nil}, @@ -529,9 +530,4 @@ end -- not propagate it. if OSX then keys.fn = function() return true end end --- Reverse incremental find. -ui.find.find_incremental_keys['ctrl+r'] = function() - ui.find.find_incremental(ui.command_entry:get_text(), false, true) -end - return M -- cgit v1.2.3