Find & Replace
Search runs on a byte-level scanning engine that covers ten gigabytes in about a second — and every count it reports is exact.
The find bar
Press ⌘F. Matches highlight throughout the document as you type, with a live counter and, on big scans, a progress readout ("Searching… 42%").
160,846 matches in an 8-million-line log, found in about a quarter of a second. Enter walks matches; the current one gets the ring.
- Return / ⌘G — next match. ⇧⌘G — previous.
- Aa — match case. W — whole words. .* — ICU regular expressions.
- \n — escape sequences:
\n\t\r\0\\\xHH\uHHHHexpand in literal queries and replacements, so you can search across line boundaries. - The clock icon recalls recent searches.
- ⌘E uses the current selection as the search term.
At scale: finding all 1,613,344 occurrences of a term in the 10 GB benchmark log takes 1.3 s; a five-way regex alternation with 5.6M matches takes 2.1 s.
The same find bar against 10 GB — 1.61 million matches, counted exactly.
Replace
Press ⌥⌘F for the replace row.
Replace the current match or everything at once. Regex mode supports capture-group templates in the replacement.
Replace All is a single bulk operation, not a loop: replacing all 1.61 million matches in the 10 GB log takes 1.7 s, lands as one undo step, and the document is fully re-indexed the moment it returns. Very large batches (about a million sites and up) can exceed the undo-history memory cap — Caxton tells you rather than guessing.
The Advanced Find panel
Everything in one panel: search history, all options, Count, Find All, Bookmark All, and both replace actions.
- Count — exact match count without moving the cursor.
- Find All — every match in the results panel, clickable.
- Bookmark All — drop a bookmark on every matching line.
Find in Files
⇧⌘F searches across files on disk without opening them, streaming results as they're found.