After using Prepare to Search or pressing Ctrl+F and entering a search term, click the Fold button on the Search toolbar or select the Fold Lines item in the Search menu to fold all lines in which the search term cannot be found underneath lines in which it can be found. The result is that only lines in which the search term can be found remain visible. The only exception is that the very first line in the file remains visible even if it doesn’t have any search matches. All lines until the first line with a search match will be folded underneath the very first line in the file.
If there are no search matches at all then EditPad briefly flashes the Fold Lines button’s icon to indicate failure. If there are a lot of search matches, folding them all might take a while. A progress meter will pop up to indicate EditPad’s progress after a second or two.
Using Fold Lines together with Highlight All is a very quick way to get a condensed view of all the matches in the file. Unlike the match highlighting mode, Fold Lines is automatically disabled when you switch between files, or edit the search term. Click the Fold button again to refold the current file. Folding a file based on search matches deletes all automatic folding points, and all folding points that you created. When you disable the search match folding, new automatic folding points will appear. But folding points that you added with Fold|Fold are not restored. Also unlike match highlighting, which instantly updates itself, the folding is not updated as you insert or delete the search term while you edit the file.
After folding the lines with search matches, you can use Fold|Copy Visible Lines to copy the lines with search matches to the clipboard, and Fold|Delete Folded Lines to delete the lines without search matches. Since folding keeps the first line visible, however, the very first line in the file will be copied or remain behind, even if it doesn’t have any search matches.
Search|Prepare to Search
Fold|Copy Visible Lines
Fold|Delete Folded Lines