# Find in Files

### Search Criteria

Target

  Starting directory or file for the search. Multiple directories/files must be separated by "|" (a pipe character).

Filters

  Restrict the scope of the search to certain file types or file names. Multiple filters must be separated by ";" (semicolon). Wildcards can be used: "*" matches any number of characters, "?" matches a single character. Example: "*.ahk; *.txt".

Find Text

  The text to search for.

### Options

Search subdirectories

  Include all subdirectories in the search.

One match per file

  Only one occurrence of the text to be found is displayed in the search results for each file.

Case sensitive

  Differentiate between uppercase and lowercase letters.

Match whole words

  Discard partial matches.

Regular Expression

  Search using regular expressions. Options such as "i)" (ignore case) follow the AHK convention.

Convert backslashes

  Convert some escape sequences. "\n" is for line breaks, "\t" is for tabstops and "\\" escapes a backslash.

Not containing the text

  Only the files not containing the text to be found are displayed in the search results.

Hexadecimal search

  Search byte by byte. Each value must be separated by a space. Example: "EF BB BF".

### Buttons

Browse

  The Browse button can display a menu when Find in Files is launched from Adventure. This menu has the following items:
  - Current Directory
  - Current File
  - Current File and its Includes (for AHK scripts only)
  - All Open Files

Start

  Perform the search.

Cancel

  When the desired result has already been obtained or the search is taking too long to finish, the operation can be stopped with the Cancel button. If the Esc key is pressed when a search is in progress, the search is interrupted. Otherwise the window is closed.

### Search Results

Double-click a file with extension AHK or TXT in the list of search results to open it in Adventure, jumping to the respective line.
Right-click a file in the list to show the shell context menu.
Press F3 to quickly display the file contents in a read-only window.