Find in Files

Old Topics related to the original "AutoGUI" ahk script editor.
User avatar
Posts: 380
Joined: 05 Oct 2015, 16:41

Find in Files

09 Feb 2018, 04:39

Find in Files is a search tool included with AutoGUI.

Search Criteria
Starting directory or file for the search. Multiple directories/files must be separated by ";" (semicolon).

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

Find Text
The text to search for.

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".

The Browse button can display a menu when Find in Files is launched from AutoGUI. This menu has the following items:
- Current Directory
- Current File
- Current File and its Includes
- All Open Files

Perform the search.

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 AutoGUI, 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.

Return to “Old Topics”

Who is online

Users browsing this forum: No registered users and 176 guests