Textadept
- Home |
- Download |
- Lua API |
- Source |
- Language Modules |
- Stats |
- Wiki |
- Mailing List
gui.find
Textadept’s integrated find/replace dialog.
Fields
find_entry_text
(string)
The text in the find entry.
find_label_text
(string, Write-only)
The text of the ‘Find’ label. This is primarily used for localization.
find_next_button_text
(string, Write-only)
The text of the ‘Find Next’ button. This is primarily used for localization.
find_prev_button_text
(string, Write-only)
The text of the ‘Find Prev’ button. This is primarily used for localization.
in_files
(bool)
Search for the text in a list of files.
in_files_label_text
(string, Write-only)
The text of the ‘In files’ label. This is primarily used for localization.
lua
(bool)
The search text is interpreted as a Lua pattern.
lua_pattern_label_text
(string, Write-only)
The text of the ‘Lua pattern’ label. This is primarily used for localization.
match_case
(bool)
Searches are case-sensitive.
match_case_label_text
(string, Write-only)
The text of the ‘Match case’ label. This is primarily used for localization.
replace_all_button_text
(string, Write-only)
The text of the ‘Replace All’ button. This is primarily used for localization.
replace_button_text
(string, Write-only)
The text of the ‘Replace’ button. This is primarily used for localization.
replace_entry_text
(string)
The text in the replace entry.
replace_label_text
(string, Write-only)
The text of the ‘Replace’ label. This is primarily used for localization.
whole_word
(bool)
Only whole-word matches are allowed in searches.
whole_word_label_text
(string, Write-only)
The text of the ‘Whole word’ label. This is primarily used for localization.
Functions
find_in_files
(utf8_dir)
Performs a find in files with the given directory.
Use the gui.find
fields to set the text to find and option flags.
Parameters:
utf8_dir
: UTF-8 encoded directory name. If none is provided, the user is prompted for one.
find_incremental
()
Begins an incremental find using the Lua command entry. Lua command functionality will be unavailable until the search is finished (pressing ‘Escape’ by default).
find_next
()
Mimicks a press of the ‘Find Next’ button in the Find box.
find_prev
()
Mimicks a press of the ‘Find Prev’ button in the Find box.
focus
()
Displays and focuses the find/replace dialog.
goto_file_in_list
(next)
Goes to the next or previous file found relative to the file on the current line.
Parameters:
next
: Flag indicating whether or not to go to the next file.
replace
()
Mimicks a press of the ‘Replace’ button in the Find box.
replace_all
()
Mimicks a press of the ‘Replace All’ button in the Find box.