aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
AgeCommit message (Collapse)Author
2020-12-19Ensure a bare `ui.find.focus()` call resets incremental and in files options.mitchell
2020-11-10Added argument to `events.FIND_RESULT_FOUND`.mitchell
This fixes a bug introduced by r3029 when invoking search via a macro.
2020-10-30Moved find occurrence highlighting and counting into an event handler.mitchell
2020-10-23Small code cleanup.mitchell
2020-10-21Do not clear or perform find result highlighting in "Find in Files" buffer.mitchell
When manually searching inside this buffer, leave existing highlights alone.
2020-10-20Code cleanup.mitchell
Of note: * io.save_all_files() does not visit each buffer to save anymore. An unintended side-effect was checking for outside modification (but only if the file itself was modified), so outside changes will always be saved over now. * The menu clicked handler uses assert_type(), so the 'Unknown command' localization is no longer needed. * When printing to a new buffer type would split the view, use an existing split view when possible. * Prefer 'goto continue' construct in loops over nested 'if's. * Fixed clearing of ui.find.replace_entry_text on reset in the GUI version. * Fixed lack of statusbar updating when setting options like buffer EOL mode, indentation, and encoding. * Renamed internal new_snippet() to new() and put it in the snippet metatable.
2020-10-13Construct regex replacement pattern from previous commit just once.mitchell
2020-10-13Implement \U, \L, \u, and \l case transformations in regex replacements.mitchell
2020-10-12Removed accidentally committed experimental code.mitchell
2020-10-11Updated LuaDoc.mitchell
2020-10-05Fixed advancing caret for incremental find when text is not found.mitchell
2020-09-29Updated copyright information.mitchell
2020-09-16Record directory for "find in files" searches.mitchell
2020-09-16Always refresh in the terminal version during incremental find.mitchell
2020-09-12Fixed restoration of replace entry text after "Replace All".mitchell
2020-09-10Fixed error reporting the number of zero-length find results.mitchell
2020-09-07Added `ui.find.active` and prevent word highlighting when searching.mitchell
Word auto-highlighting when searching is too distracting.
2020-09-07Added `events.FIND_RESULT_FOUND` and reverted scrolling change.mitchell
Users who want to vertically center the caret or similar can connect to the event.
2020-09-02First scroll find results into view, then vertically center the caret.mitchell
Otherwise, find results on long lines will not be displayed.
2020-08-27Disable `ui.find.highlight_all_matches` by default.mitchell
It can be difficult to see what the current result is.
2020-08-27Fixed restoring find & replace pane's replace text outside of "Find in Files".mitchell
2020-08-23Fixed bug where jumping to a find in files result of length 1 highlights wrong.mitchell
2020-08-20Show "Match X/Y" in statusbar when searching for text.mitchell
2020-08-20Prevent infinite loops when highlighting found text.mitchell
2020-08-18Center the caret vertically for find results.mitchell
Iterating through find results seems a bit more intuitive. Also, for small views the scrolling was way too disorienting.
2020-08-16Fixed a bug where filter text could always be put in the "Replace" entry.mitchell
This happened when you activated "Find in Files" twice in a row.
2020-08-08Use comma-separated patterns in find & replace pane's "Filter" field.mitchell
2020-08-04Updated LuaDoc.mitchell
2020-08-02Fixed regression with showing "No results found" in searches.mitchell
2020-07-29Also updated stored filter of initial directory for Find in Files.mitchell
If no project is found, and a folder other than the initial one is selected, the filter stored for that directory should still be shown if the user wants to Find in Files again from the same initial directory.
2020-07-25Find & Replace Pane now allows file filters to be specified for Find in Files.mitchell
Also updated `ui.find.focus()` to accept an optional table of options (e.g. in_files, incremental, etc.) for convenience.
2020-07-25Fixed bug in incremental find in the terminal version.mitchell
Also fixed a bug in setting `ui.find.replace_entry_text`.
2020-07-25Moved incremental find into Find & Replace Pane.mitchell
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.
2020-07-25Added option to highlight all occurrences of found text.mitchell
This option is independent of `ui.highlight_words`.
2020-07-19Make `ui.highlight_words` a multi-option setting.mitchell
Highlighting the current word could be useful instead of just the selected word.
2020-07-16Minor LuaDoc updates and spelling corrections.mitchell
2020-07-13Auto-highlight all occurrences of selected words and find results.mitchell
This supercedes `textadept.editing.highlight_word()`, which has been removed. Changed the color of word highlights in themes.
2020-07-12Made `ui.find.goto_file_found()` and `textadept.run.goto_error()` args optional.mitchell
2020-06-28Changed keybinding modifier keys.mitchell
They had always been a bit counter-intuitive.
2020-06-10Replaced `lfs.dir_foreach()` with `lfs.walk()` generator.mitchell
2020-05-25Allow views to be used as buffers and update API.mitchell
This allows for a superficial separation of buffer- and view-specific Scintilla functionality. buffers and views can now be used interchangeably for the most part, and the APIs are guidance, not hard requirements. User scripts do not require any modification and will continue to function normally.
2020-03-26Switched to 1-based indices for buffer positions, lines, and countable entities.mitchell
2020-03-18Added `ui.dialogs.progressbar()` and utilize it with Find in Files.mitchell
2020-03-16Small documentation update.mitchell
2020-03-13More code cleanup and refactoring.mitchell
2020-03-12More code cleanup, refactoring, and reformatting.mitchell
2020-03-03Added test suite and API type checking for more helpful error messages.mitchell
2020-02-21Removed '_' mnemonics from locale keys.mitchell
Kept backward-compatibility for now.
2020-02-21Tweaked localization keys.mitchell
This is in anticipate of removing '_' from keys, which would have created duplicate keys.
2019-12-31Updated copyright year.mitchell