aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/keys.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-07-25 00:20:13 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-07-25 00:20:13 -0400
commit44beff91b257a9d7874e20790d50a8568990d9e6 (patch)
tree23167dab39f2475c9d65a73cffa1ccb59febcb39 /modules/textadept/keys.lua
parent8cfb09b23bf718af6a705291b74abb4e2c62b7e3 (diff)
downloadtextadept-44beff91b257a9d7874e20790d50a8568990d9e6.tar.gz
textadept-44beff91b257a9d7874e20790d50a8568990d9e6.zip
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.
Diffstat (limited to 'modules/textadept/keys.lua')
-rw-r--r--modules/textadept/keys.lua8
1 files changed, 2 insertions, 6 deletions
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