Incremental Search

Click the Incremental button on the Search toolbar of the AceText Editor to toggle incremental search mode on or off. When off, entering a search term has no immediate effect. When on, editing the search term makes AceText look for the next search match immediately, starting from the current position of the text cursor.

While you enter the search term in instant incremental search mode, AceText remembers previous search matches as you type. If you type “Test”, AceText searches for “T” starting from the position of the text cursor. As you type, it searches for “Te” beginning at the start of the match for “T”, then for “Tes” at the start of the match for “Te”, and finally for “Test”. If there is no search match, nothing happens.

When you press Backspace, AceText goes back to the previously highlighted match for “Tes”. If you continue pressing Backspace, it goes back to the match for “Te”, “T”, and finally goes back to where the search started. So while entering the search term, you can easily change your mind about the search term you’re looking for by backing up with the Backspace key, and typing in the new search term. Backing up does not cause AceText to forget match positions. If you type in “Joe” after erasing “Test”, AceText searches for “J” until “Joe” beginning from the original starting position. If you then back up again and retype “Test”, the match previously found for “Test” is highlighted.

What does cause AceText to forget previous incremental search matches is taking any action in the main editor, including something as trivial as moving the text cursor or switching to another clip. AceText then moves the starting position for the next incremental search to the new position of the text cursor.