Search Quick Reference
Scope of searching
The search window can work in three different ways, it can search the current file, all open
files, or the entire project. The scope of the search is set by the window from which the
search menu was selected, and is as follows:
The Toolbar and Build windows will
search the entire project.
The Project window will search all open files (ones which
have editor tabs)
The Editor window will search the all open files (The
Find button and the
Find menu searches the current file)
The Quick-Link window will search the current file.
Once the search window is open, you can specify the type of search to be carried out manually
by selecting the scope in the top gadget. Certain gadgets may then be available, depending of
which search type you have selected.
back to the top
Overview
We shall cover the functions available while searching the current file in this first section.
The second section covers the searching of open files and the entire
project.
Top Tip
To make searching easier, the search window will automatically detect if there is
a marked block of text in the editor, and insert it into the string gadget for you
when the window opens. Multiple lines cannot be inserted, and in this case, the
text inserted will finish at the end of the first line. It will also be truncated
to the maximum length allowed in string gadgets if it is too long. Double or
Triple clicking text items will highlight words and lines easily for you prior to
opening the search window.
|
When entering text into string gadgets, you have to confirm the entry by pressing <Return>
or <Enter> after the text is entered, this is a requirement of the operating system, and
allows the user to change or even cancel text entry by simply navigating away from the string
gadget.
Navigation via the keyboard has also been improved, and by pressing "TAB" will activate
the search string gadget for you. Further presses of TAB will activate each gadget in turn.
When searching the current file, the requester will look like this. The string that you are
searching for should be entered into the top string gadget. You can select whether you want
this search to match exactly with what you supplied. or whether to ignore the case of any
letters in the string.
There is also an option to replace what was found with something else by ticking the checkbox
in the "Replace attributes" section. You should then enter the string you
want to replace with in the next string gadget.
The bank of buttons at the bottom will then allow you to continue with carrying out the
specified action.
"Search" simply finds the first occurrence of the supplied string
from the current cursor position.
"Replace Next " will be enabled if you have supplied a string in
the second gadget, and this will replace the next occurrence.
"Replace All" will, again if you have supplied a string, replace
all occurrences of the string found with the one supplied.
"From Top" will start the search from the top of the file instead
of at the current cursor position.
"Next" finds the next occurrence of the string.
"Prev" finds the previous occurrence of the string.
|