### Searching

#### Find shortcuts

You may open the find window by using Alt-F, type in your search string and hit return to find it. In the default case the Find window searches for the search string in the Target window - the window right under the Find window.

When typing in the find string, you may need to enter a Tab or a Return character. These are normally mapped to switching to the next control and invoking the default command (Find in this case).

Win-Return | Insert return
Win-Tab | Insert Tab

To work around this standard mapping, Eddie lets you use Win-Return and Win-Tab respectively.

Find can be initiated with or without using the Find window, Eddie defines the common set of find shortcuts:

Alt-F | Open find window
Alt-E | Enter selection as find string
Alt-Control-E | Enter selection as replace string
Alt-G | Find again
Alt-Shift-G | Find again reverse
Alt-H | Enter selection as find string and find
Alt-Shift-H | Enter selection as find string and find reverse

You may expand the Find window to get at the extra features. You may use the Replace selected, which works like Replace All inside the current selection. You may also select wether or not the Find window stays in front after you hit the Find button.

You may also access the multi-file search options.

#### Searching multiple files

With the Multi-File Search check box, Eddie can perform four kinds of multi-file searches. You may choose the different search type by selecting an item in the search type popup:

##### Searching all open documents

If you choose the Open Windows item all the open documents are searched.

##### Searching files in a workset

In the Workset Multi-File files of the selected workset will be searched. You may select a specific workset or all open worksets.

If the Directory check box is not checked, only the files specifically included in the workset are searched. If the check box is checked, all directories belonging to the workset are searched. Checking the Deep checkbox will enable all workset directories to be searched recursively.

Workset multi-file search may be also activated using keyboard shortcuts from a document or from a workset window.

Alt-Control-G | Enable Workset Multi-File search in all open worksets
Alt-F from a Workset window | Enable Workset Multi-File search in the respective workset

##### Searching files in a directory

In the Directory Multi-File files of a specific directory will be searched. If the Deep check box is checked, the specified directory will be searched recursively.

Besides just typing it in, you may use several other ways to choose the directory path to search. A pop up menu of a few common search paths and ten most recent search paths used is available.

You may use the Other directory menu item to bring up a File panel.

You may also switch the Find panel to a Multi-File directory search in the directory of a specific document (or in the current directory of a shell window) by using the SetMultiFileSearchInTargetDir shortcut:

Alt-Control-P | Enable Directory Multi-File search in the document/shell directory

##### Choosing which files to search

In both the Directory and Workset Multi-File search mode you may choose which types of source files to search. The options are - all text files or a combination of .c (.cpp, etc.) files, .h files and makefiles.

##### Using a Query to search multiple files

In the Query Multi-File search mode you may type in a Query formula to specify which files are searched.

##### Using drag&drop to set up Multi-File search

If you drag a workset file into the Multi-File Search box in the Find panel the panel will switch to Workset Multi-File Search mode and set the workset to the one you dropped into the panel.

If you drag a directory into the Multi-File Search box in the Find panel the panel will switch to Directory Multi-File Search mode and set the directory to the one you dropped into the panel.

##### More Multi-File search keyboard shortcuts

Alt-Control-M | Toggle multi-file search on/off (does not change the search type)
Alt-T | Find in next document
Alt-T | Find in previous document

Note that there are several other keyboard primitives that control multi-file searching that you can bind to keyboard shortcuts to suit your preferences.

##### Stopping a Multi-File search

If you drag a workset file into the Multi-File Search box in the Find panel the panel will switch to Workset Multi-File Search mode and set the workset to the one you dropped into the panel.

#### Recent find string popup

A pop-up menu with recent find strings lets you select from up to ten search strings you have searched in the past. These search strings get saved when Eddie quits and will be available the next time you run it.

You may toggle the different search options by using a keyboard shortcut without even bringing up the Find window.

Alt-Control-S | turn case sensitive search on or off
Alt-Control-W | turn whole word search on or off
Alt-Control-X | turn regular expression search on or off
Alt-Control-A | turn wrap around on or off
Alt-Control-F | turn keep find window in front on or off
Alt-Control-M | Toggle multi-file search
Alt-Control-P | Activate Directory multi-file search
Alt-Control-G | Activate Workset multi-file search

#### Replace shortcuts

Alt-= | Replace and find
Alt-Win-E | Enter selection as replace string

##### Replace selected in multiple files

Replace selected works even in the Multi-File search mode - you may pre-select portions of text in several documents that you wan't to edit using Replace selected and use Multi-File search in the Open Windows mode.

### Quick Find

QuickFind works much like incremental search in Emacs and other editors.

Bring up the QuickFind Window by pressing Command-Option-F, starting the incremental search at the top of the document. Bring up the QuickFind Window by pressing Command-Control-F, starting the incremental search at the current position.

Alt-Win-F | Open QuickFind window, start searching from document top
Alt-Control-F | Open QuickFind window, start searching from current position

Bring up the QuickFind Window by pressing Command-Option-F, starting the incremental search at the top of the document. Bring up the QuickFind Window by pressing Command-Control-F, starting the incremental search at the current position. As you type in a search text, an instance of the text is interactively found in the target window. As you type in more characters, the search text becomes more accurate (this feature is also described as incremental search). Hitting the Next button will look for the next occurrence of the search string. If you delete the search text using Backspace the previous, less accurate find match will be selected.

To close the QuickFind window you may hit Esc, Alt-W or click anywhere outside the dialog.