Finding Text

To search a file for a string of text, perform the following steps:

  1. Choose Search ▸ Find to display the Find dialog.
  2. Type the string that you want to find in the Search for field. You can include special characters such as a new line or tab: see Section 5.5 ― Special Characters.
  3. Click Find to search the file for the first occurrence of the string after your current cursor position. If gedit finds the string, the application selects first occurrence of the string. Other occurrences of the string are highlighted.
  4. To find the next occurrence of the string, click Find or choose Search ▸ Find Next. To find the previous occurrence of the text, choose Search ▸ Find Previous.

After you have closed the Find dialog, you can still move the selection to other occurrences of the text by choosing Search ▸ Find Next and Search ▸ Find Previous.

To remove the highlighting from the text, choose Search ▸ Clear Highlight.