aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
AgeCommit message (Collapse)Author
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
2019-11-22Fixed bug in "Replace All in selection" with a match at the end of a selection.mitchell
2019-09-22Replaced `ui.command_entry.*_mode()` with simplified `ui.command_entry.run()`.mitchell
The command entry no longer uses named key modes. Instead, mode keys are supplied to `run()` if necessary. The command entry remains modal, though.
2019-09-18Refactored "Replace All" to be more performant.mitchell
Avoid changing the selection and scrolling, as this drastically slows things down, particularly on long lines.
2019-05-02Do not advance the caret on failed incremental find.mitchell
2019-03-28Fixed scrolling found text into view on long lines.mitchell
2019-02-16Updated copyright year.mitchell
2018-11-26Changed filter format to be more flat and intuitive.mitchell
Filters are now simply lists of inclusive and exclusive patterns. Added temporary compatibility and notice for old-style filters.
2018-10-23Make find and menu command selection more macro-friendly.mitchell
2018-09-13Replaced `ui.find.find_in_files_filter` with `ui.find.find_in_files_filters`.mitchell
This allows for per-project "find in files" filters.
2018-07-28Removed optional '*' prefix in I/O reads.mitchell
Lua 5.3 made them optional and LuaJIT support has been dropped.
2018-05-22Fixed selection of find in files result if it's at the start of the line.mitchell
2018-05-18Only interpret \uXXXX in regex replacements and ignore \xYY.mitchell
\xYY may not yield UTF-8 characters.
2018-05-11Be more explicit with matching \uXXXX and \xYY replacement patterns.mitchell
2018-05-11Intepret \uXXXX and \xYY escapes in replacement text.mitchell
2018-05-07Fixed replace in selection infinite loop with empty matches.mitchell
2018-01-25Updated copyright year.mitchell
2017-07-02When searching in files, show more lines below a match.mitchell
2017-03-24Fixed some bugs in "Replace All"; modules/textadept/find.luamitchell
"Replace All" after an initial search would only "replace in selection" and "Replace All" with the selection at EOF would not work.
2016-12-31Updated copyright information.mitchell
2016-10-18Fixed bug in find/replace with consecutive matches; modules/textadept/find.luamitchell
2016-08-31Fixed infinite loop in "Replace All" with zero-length regex matches.mitchell
2016-07-22Fixed infinite loop with "Replace All" in selection; modules/textadept/find.luamitchell
This happens when the replacement text matches the find text and is longer in length.
2016-07-04Added timeout prompt for "Find in Files".mitchell
It is now possible to cancel a "Find in Files" search part-way through.
2016-07-04Replaced Lua pattern matching with Regex via Scintilla and TRE.mitchell
As a result, changed `ui.find.lua` to `ui.find.regex` Also removed luautf8 dependency since it is no longer needed. Regex replacements cannot contain embedded Lua code. Jumping to "find in files" results selects those results instead of just jumping to their respective lines.
2016-06-25Small code and documentation cleanup.mitchell
2016-06-16Changed arguments to `ui.goto_view()` and `view:goto_buffer()`.mitchell
They can accept either objects or relative numbers now. They do not accept absolute indices anymore.
2016-06-15`textadept.editing.goto_line()` takes 0-based line number.mitchell
It used to take a 1-based line number. Mimic Scintilla.
2016-06-15Lots of small LuaDoc improvements (grammar mainly).mitchell
2016-06-15Changed "find in files" API a bit.mitchell
Changed `ui.find.FILTER` to `ui.find.find_in_files_filter` and added an optional filter argument to `ui.find.find_in_files()`.
2016-06-15Renamed `ui.SILENT_PRINT` to `ui.silent_print`.mitchell
2016-06-15Changed some of 'lfs_ext' API.mitchell
Renamed `lfs.FILTER` to `lfs.default_filter` and removed `exclude_FILTER` argument from `lfs.dir_foreach()`.
2016-04-18Reverted r2149 (center found text in the view); modules/textadept/find.luamitchell
2016-04-16Find in files should not print the contents of binary files.mitchell
Use placeholder text instead. This is common in Unix tools.
2016-04-10Small documentation update.mitchell
2016-04-10Fixed "replace within selection" edge case; modules/textadept/find.luamitchell
Do not match one character past the end of the selection.
2016-04-10Center found text in the view; modules/textadept/find.luamitchell
2016-04-06Default to project root when finding in files; modules/textadept/find.luamitchell
2016-04-05Support UTF-8 searches in files; modules/textadept/find.luamitchell
2016-04-02Code cleanup.mitchell
Do not use `ipairs()` and use more consistent variable names among other things.