Expand description
filesearchtext: the next match of a text, or a regular expression, in a UTF-8
file, for the Large text viewer’s find (case-insensitive, regex). Like
filesearchbytes the file is read here in blocks, each call does a bounded
amount of work and says where to go on from.
A match is found when it lies inside one block and the 64 KiB after it: a match
longer than that (a regex that spans many lines) is not found. A ^ or $ is
judged with 64 KiB of the file before the block, so on a line longer than that
it can match in the middle of the line.
docs/specs/SPEC_EDITOR_REVAMP_UNIFIED_VIEWERS_2026_10_15.md §4.4.6.
Functions§
- compile
- The expression for a query: a literal text is escaped;
^and$match at each line (a line ends at\nor\r\n). - register
filesearchtext. This computer’s files only, likefilesearchbytes.- search
- The search over
file(sizebytes). Forward: the first match starting at or afterfrom; backward: the last one starting at or before it.