PrimalScript includes extensive, powerful search and replace features, including the ability to search multiple files, and to manage multi-file search results.
PrimalScript performs a full-text search of files and allows you to change the contents of a single file or multiple files quickly and easily.
To find a word or word pattern
1.Click Home > in the Find section, click Find (Ctrl+F).
2.Enter the search term and press <Enter> or click Find Next:
-OR-
•Select a term from the search history, and press <Enter>:
-OR-
•In the Find section, enter the search term, and press <Enter>:
To find the next instance of the term, click Find Next again.
You can use common search criteria such as whole word matching, regular expression matching, case matching, and searching forward or backward:
To find all instances of a word or word pattern
1.Click Home > in the Find section, click Find (Ctrl+F).
2.Enter the search term and press <Enter> or click Find All.
-OR-
•Select and right-click a term and then click Find All References.
To find text from a script
1.Copy the text from the editor window (Ctrl+C).
The copied text is automatically inserted in the Find box.
2.Click Home > in the Find section, click Find (Ctrl+F):
To find multi-line text
1.Click Home > in the Find section, click Find (Ctrl+F).
2.Click the Expand / Contract button.
3.Enter extended text and then click Find / Find All / Mark All:
To replace a search term
1.Click Home > in the Find section, click Replace (Ctrl+H).
2.Enter the search and replace terms and then press <Enter> or click Find Next:
To replace hidden characters
1.Click Home > in the Find section, click Find (Ctrl+F).
2.Enter a search term, check Replace control characters, and then click Find (or Replace).
To bookmark a search term
PrimalScript places a temporary search bookmark on each instance of the search term.
•Press Ctrl+F, enter a search term, and then click Mark All.
To go to search bookmarks
•Press F3 and Shift+F3 to move back and forth between bookmarks.
PrimalScript performs a full-text search and replace in multiple files, even when the files are not open in PrimalScript.
To find a term in multiple files
1.Click Home > in the Find section, click Find in Files (Ctrl+Shift+F).
2.In Find what, enter a search term. You can select Match case, Whole word, and Regular expression options.
3.In Find where, enter/navigate to a directory or project. To make the search recursive, click Look in subfolders.
4.In File types, type or select a file name pattern. The default value is all file types:
To use regular expression in a multi-file search
•In the Find in Files window, next to Find what, click the arrow:
The results of a multi-file search appear in the Find Results pane.
The Find Results pane creates a to-do list that helps you manage your inspection of the search results.
When you run a multi-file search ("Find in Files", Ctrl+Shift+F), a Find Results pane displays the results of the most recent search operations:
Find Results displays the line number and matches for each file in a to-do display that helps you track your investigation of the results.
To jump to the matching line in the file
•Double-click the line in Find Results:
When you click a matched line in Find Results, the box to the left of the line turns green to indicate that you have viewed it:
Also, the file icon is partially shaded to show that you have viewed some, but not all, of the results for that file:
The file icon turns green when you have examined all matches for a file:
To delete results from a Find Results pane
•Right-click the result and then click Remove from Search Results or Clear Window:
PrimalScript includes two panes, Find Results 1 and Find Results 2. If you are using Find Results 1, you can direct the results of a new search to Find Results 2.
To display Find Results 1 and Find Results 2 manually
•Click View > in the Output section, click Find Results 1 and/or Find Results 2.
See also: