aboutsummaryrefslogtreecommitdiff
path: root/core/ext
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2008-11-08 23:40:50 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2008-11-08 23:40:50 -0500
commit4ac940a813d54ff401db80c7c6f1ba80bfbe7802 (patch)
treedb9e0ba8cd1faa375527d238ea48b5da15ff9352 /core/ext
parent0ebcbf679cd1c31ebae6af640869df98675add4f (diff)
downloadtextadept-4ac940a813d54ff401db80c7c6f1ba80bfbe7802.tar.gz
textadept-4ac940a813d54ff401db80c7c6f1ba80bfbe7802.zip
Added Lua interface functions to mimick find box button presses.
Diffstat (limited to 'core/ext')
-rw-r--r--core/ext/menu.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/ext/menu.lua b/core/ext/menu.lua
index 459d3f61..913155fb 100644
--- a/core/ext/menu.lua
+++ b/core/ext/menu.lua
@@ -88,6 +88,8 @@ t.menubar = {
'Find _Next',
'Find _Prev',
'gtk-find-and-replace',
+ 'Replace',
+ 'Replace _All',
'separator',
'gtk-jump-to',
},
@@ -244,10 +246,11 @@ local actions = {
Scope = { m_editing.select_scope },
-- Search
Find = { t.find.focus },
- ['Find Next'] = { }, -- TODO:
- ['Find Prev'] = { }, -- TODO:
- Replace = { }, -- TODO:
+ ['Find Next'] = { t.find.call_find_next },
+ ['Find Prev'] = { t.find.call_find_prev },
['Find and Replace'] = { t.find.focus },
+ Replace = { t.find.call_replace },
+ ['Replace All'] = { t.find.call_replace_all },
['Jump to'] = { m_editing.goto_line },
-- Tools
['Focus Command Entry'] = { t.command_entry.focus },