More on Find
The search engine normally interprets a backslash (\) as a metacharacter; that is, a character that means something other than itself. In this case — the backslash and the following character form a two-character code. When you want to search for the backslash itself, you need to create a two-character code since the search engine always looks for a second character when it sees a backslash. Create a two-character code with a second backslash (\\). The search engine interprets this as the backslash character itself.
This convention was implemented during the development of the UNIX grep command and the convention, if not the underlying C code, has been duplicated many times since.
Match Element Type
To find text that is in a particular element type (such as a command, variable, operator, and so on), enter the desired text in the Find what field and select the Match Element Type check box.
Find displays the searched-for text in all elements of that type in the open file, regardless of language selected. In the Language field, select the language that you are interested in to limit the number of element types shown in the Element list. In the Element field, select the element type that contains the text you are looking for and select Find Next.
For example, searching for the word Set in a Comment with the Class Definition Language selected matches all instances of the word Set in comments that exist in any language in the file.
Find in Files
When you select Find in the Find in Files dialog, Studio searches the selected files in the current InterSystems IRIS namespace and returns a list of all (up to the first 5,000) files that contain the search string. Double-click an item in the search results to open the file and display the item, highlighted. Line & column numbers for the selected item are displayed in the right corner of the status bar.
Find in Files searches stored data; it does not search modified open documents. If you search only in the current project and the current project is either a new project or a modified project, you are prompted to save the project. If you refuse, Find in Files is canceled.
To find a backslash (\) in Find in Files, you need to escape the backslash with another backslash (\\).
The Filter field can contain the elements in the list below. You can use SQL AND and OR logical operators to enter more than one filter. For example, Type=5 AND Modified>01/01/08. The contents of the Filter field forms part of an SQL WHERE clause. The fields come from the %Studio.OpenDialogItemsOpens in a new tab class.
You can enter your own custom mask in the In files/file types field, such as al*.mac. Use a comma delimited list to enter multiple filters in any field.
If the Enable pattern matching check box is selected, the Find what: field accepts question mark (?) to stand for any single character, and asterisk (*) to stand for 0 or more characters.
You can use the following items in the Filter field.
|IsTrue=1 or 0
||Specify 1 to find a document. Specify 0 to find a directory.
||Enter a file name to search within selected files.
|Characters=number of characters
|| Filters for documents of a certain size. Can include SQL relational operators.
||Type is followed by an integer which filters according to file type list, shown in %Studio.OpenDialogItems.Type. This can filter to a finer degree than the file type field. To search for only .mac files, for example, enter Type=5.
|Modified=last modified timestamp
||Can include SQL relational operators.
|Generated=1 or 0
||Specify 1 to find a generated file. Specify 0 to find a user-created file.
||Enter a description to search for within files.