You may open the find window by using Command-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 document 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).
Option-Return | Insert return |
Option-Tab | Insert Tab |
To work around this standard mapping, Eddie lets you use Option-Return and Option-Tab to type a Return and a Tab, respectively.
Find can be initiated with or without using the Find window, Eddie defines the common set of find shortcuts:
Command-F | Open find window |
Command-E | Enter selection as find string |
Command-Option-E | Enter selection as a replace string |
Command-G | Find again |
Command-Shift-G | Find again reverse |
Command-J | Enter selection as find string and find |
Command-Shift-J | Enter selection as find string and find reverse |
By expanding the Find window to get at the extra features. The "Keep In Front" checkbox controls wether or not the Find window stays in front after you hit the Find button. If you enable the Wrap around mode, you may have it beep the first time the end of a searched document is reached, a successive Find will wrap — this helps you detect when you actually wrapped.
The "Regular expressions" let's you use grep-style regular expressions in your searches. You may reference the matched portions of the expressions in the replace pattern, just like in sed or Perl.
By clicking on the plus button next to the Find and Replace text fields, you can configure the Find dialog with several Find and Replace patterns.
In this mode, as you search and replace, Eddie will match the next of the multiple search patterns and then replace it with the corresponding replace pattern. In the example above, you can do a Find/Replace sweep converting YES to true, NO to false and BOOL to bool in a single replace operation.
With the Multi-File Search check box, Eddie can perform two kinds of multi-file searches. You may choose the different search type by selecting an item in the search type popup:
In the Directory Multi-File files of a specific directory will be searched.
When checked off, The Leave windows open checkbox makes the multi-file search automatically close all windows opened during the search that you didn't interact with. This helps in not leaving a big pile of open windows after a search for a common pattern that occurs in many documents.
The directory search comes pre-configured with some common folder names to skip during a search, you can customize these with your own names or wildcard patterns.
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:
Command-Option-P | Enable Directory Multi-File search in the document/shell directory |
In the Workset Multi-File files of the selected workset will be searched. You may select a specific workset or all open worksets.
Workset multi-file search may be also activated using keyboard shortcuts from a document or from a workset window.
Command-Shift-F | Enable Workset Multi-File 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.
Command-Control-M | Toggle multi-file search on/off (does not change the search type) |
Command-Option-G | Find in next file |
Command-Option-Shift-G | Find in previous file |
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.
A recent replace string popup is available in the expanded Find panel mode.
Note that the popup hides if you shrink the Find window small — to display the popup, enlarge the window.
You may cycle through all the recent search strings while editing, without even opening the Find window.
Command-Control-E | Select next recent Find string |
Command-Control-Shift-E | Select previous recent Find string |
As you select the previous/next recent Find string the currently selected string is briefly displayed in the status bar:
Using these shortcuts you can quickly cycle through recent find strings with a few presses of Command-Control-E and then quickly find the string using Command-G, without even opening the Find window.
In addition to recent find strings the Find recents menu also contains a few pre-configured entries. You can configure these and additional ones to contain for instance complex regex search patterns that are otherwise inconvenient to type. These can be added in the UserStartup using the AddFindWindowFindPattern.
AddFindWindowFindPattern <pattern name> -pattern <pattern> [-regex|-noRegex] [-wholeWord|-noWholeWord] [-caseSensitive|-caseInsensitive] [-insertOnly] [-shortcut <shortcut>]
AddFindWindowReplacePattern <pattern name> -pattern <pattern> [-regex] [-insertOnly] [-shortcut <shortcut>]
Note that patterns can be configured to optionally set or clear the case sensitivity, whole word or regex search checkboxes
and can be made to either entirely replace the existing text in the search field or just append it to the existing
search text. Commonly used patterns can also be assigned optional keyboard shortcuts.
You may toggle the different search options by using a keyboard shortcut without even bringing up the Find window.
Command-Control-S | turn case sensitive search on or off |
Command-Control-W | turn whole word search on or off |
Command-Control-X | turn regular expression search on or off |
Command-Control-A | turn wrap around on or off |
Command-Control-F | turn keep find window in front on or off |
Command-Control-M | Toggle multi-file search |
Command-Option-P | Activate Directory multi-file search |
Command-Control-G | Activate Workset multi-file search |
Command-= | Replace and find |
Command-Option-E | Enter selection as replace string |
Replace selected works even in the Multi-File search mode - you may pre-select portions of text in several documents that you want to edit using Replace selected and use Multi-File search in the Open Windows mode.
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.
Command-Option-F | Open QuickFind window, start searching from document top |
Command-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, Command-W or click anywhere outside the dialog.