Personal Notes File


Find and Replace... Command

Purpose

The Find and Replace... command is used to search and replace a string in notes file.

Find and Replace dialog box

To search and replace a string

  1. From the Search menu choose Find and Replace....
  2. The Find and Replace dialog box will open.
  3. In Find what enter the string you want to search for.
  4. In Search scope select the range you want to search:
    • If you want to search for a string only in the index lines (the first lines of every card), select Index only.
    • To do a complete search on the whole contents of all the cards, select Whole file.
    • If you want to search for a string only in currently open card, select Current card.
  5. In Search type select the type of search:
    • Select Case sensitive, if you want to search for a string matching exactly in case with the string you entered.
    • Select In ASCII case to convert all the characters in the search string and in the range being searched to their closest ASCII equivalents (whenever possible) and do the matching this way.
    • Select Beginning of word so that the search string will match only the first letters of a word. A word is defined as a string containing letters (possible international letters) and numerals (0-9).
    • Select End of word so that the search string will match only the last letters of a word.
    • You can select both Beginning and End of word, for a whole word match.
  6. Click Find Next. If a matching string is found in the range you have chosen, the card containing that string will be opened and the matching string will be selected.

The Find and Replace dialog box is left open. You can click Find Next, to find the next occurrence. Search starts from the next character position where the cursor is and proceeds circularly in the range you have chosen. That is, if you have chosen Whole file or Index only and the end of notes file is reached, it continues from the start of the file. If you have chosen Current card and the bottom of the card is reached, it continues from the top of the card.

If you want to replace the matched string with a new one, enter a replacement string in Replace with and click Replace. To replace all instances of the text being searched at once, click Replace All. Please note that the Replace command cannot be undone.

Keyboard shortcut

Ctrl+F

Prompt messages

Word boundary search is slow. Do you want to spend more time?
When you do word boundary search (i.e., when you have selected either Beginning of word or End of word or both) and the search takes longer than 5 seconds, the above message will be displayed. You can click Yes to continue the search or click No to abort it.
“Replace All” cannot be undone. Do you want to continue?
The Replace All button, especially when run for the Whole file can be catastrophic. Please save your file before attempting such an operation!
Number replacements done so far. Do you want to continue?
During a Replace All operation, when more than 50 replacements are completed, you will be prompted to continue or stop the operation. Please note that even when you stop the operation, the replacements that have already been completed will not be undone.