# jEdit 2.6 User's Guide

Next, Prev

## Chapter 7. Search and Replace

# Searching in Multiple Files

jEdit has the ability to search and replace in multiple files. Clicking the Multi File button in the search and replace or HyperSearch dialog box will display a dialog box for configuring this.

The first two file sets ("current buffer only" and "all open buffers") should be self-explanatory. With "search in selected buffers", you must Control-click to select multiple buffers from the list. "Search in a directory" requires you to specify a starting path, a glob pattern that file names will be matched against (see Appendix F), and if the search should recurse into subdirectories or not. Keep in mind that directory searches could require a very large number of files to be opened, which might take a long time, and/or use a large amount of memory.

Once you have selected the appropriate buffer set and clicked OK, any subsequent search and replace operations will be performed on the specified file set.

Warning
The Undo command only undoes editing done in the current buffer. If a multi-file replace has been performed, Undo will have to be invoked in multiple buffers to fully reverse any changes.

Figure 7-3. The Multi File Search Settings dialog box

Home, Up
Prev: The HyperSearch Dialog Box
Next: Quick Search