Finding and replacing text

To search for an item in your document, first open the find/replace input area by pressing Ctrl+F, or by doing the following:

  1. Select Edit from the main menu.
  2. Select Find/Replace.  The find/replace input area, a live (incremental) find dialog, appears at the bottom of the editor pane.

Specify the item to be searched for and replaced by doing the following:

  1. Type a search item in the Find text entry area.  This can be a word, a partial word, or a sequence of such.  As you type, the editor finds the next occurrence of the text and updates the cursor position in the edit area after each character typed.
  2. Type the replacement word in the Replace text entry field.
  3. Select your desired find options.
  4. Click Next or Previous.  If the entered text or pattern is found, the cursor moves to either the next or previous occurrence of the search item, according to your chosen search direction, and locates the found text according to your selections.  If you want to change the found text, click Replace.  Repeat this step to find and replace multiple occurrences of the chosen text in your document.
  5. Alternatively, click Replace all.  All occurrences of the chosen text are replaced.
  6. Close the find/replace entry area by pressing Esc.

Alternatively, use the findText command.  For example, to find the previous occurrence of "xyz", enter this on the command line:

findText up xyz 

You can also use one of the short commands to find text.  For example, to find the next occurrence of "xyz", enter this on the command line:

/xyz 

Note:  The availability of the menu items indicated above depends on the application implementing the editor.  The keyboard operations indicated are effective only in certain editor profiles.

Related tasks
Using location marks
Issuing editor commands

Related references
findText command
Short editor commands