Search menu

From TED Notepad
Revision as of 16:33, 7 November 2006 by Jsimlo (talk | contribs)
You see work in progress here; this section already reflects future TED Notepad version 5.0.0.13.
This section may contain incomplete, premature, or mistaken information, prone to change without notice.

Find... (Ctrl+F)

Shows the Find dialog. After entering search conditions, searches for a specified Find what phrase within the document.

If the Down direction was specified, search is performed after the actual insertion point. Otherwise (for the Up direction) it is performed before the actual insertion point.

Optionally, a whole word option enables to search for whole words only. That means, that a phrase is located in the document only if it is the Find what phrase and also if no word letters are found directly before and after the phrase. Note, that the phrase itself may consist of non-word letters at will, only the context around the phrase is tested.

Furthermore, match case option allows to match case upon searching.

Note: The Find dialog sets and works with the primary search mechanism only. To work with secondary search, see Look for Selected, described later in this section.

Find Next (F3)

Searches for a next occurrence of the recently specified search within the document after the actual insertion point. If no recent search was specified, shows the Find dialog.

Note, that if you specify an Up-ward search, the previous occurrence becomes the next one and vice versa.

Note: Works with the primary search mechanism.

Find Previous (Ctrl+F3)

Searches for a previous occurrence of the recently specified search within the document before the actual insertion point. If no recent search was specified, shows the Find dialog.

Note, that if you specify an Up-ward search, the next occurrence becomes the previous one and vice versa.

Note: Works with the primary search mechanism.

Find Selected (Alt+F3)

Resets the primary search. Sets the Find what phrase to the content of the selection, sets a Down-ward searching direction and turns off both whole word and match case options. Then searches for a next occurrence.

Tip: There are no restrictions on what the selection may or may not contain. You may easily select text over multiple lines and start a search for such a multi-line phrase.

Find Later (Alt+Ctrl+F)

This section is incomplete and wants to be finished later.
TODO: This tool will be described later.

Replace (Ctrl+R)

Shows the Replace dialog. After entering search conditions and a Replace with phrase, searches for a specified Find what phrase within the document and replaces it with the Replace with phrase.

See the description of Find... above for other informations about search conditions and/or options.

Tip: To [[Control:Button:Replace all:{{{2}}}|{{{2}}}]] when too many occurrences are awaited, or to [[Control:Button:Replace all:{{{2}}}|{{{2}}}]] within the selection only, use much faster and selection-oriented Extended Replace tool (hotkey Alt+Ctrl+R). See chapter Replacing tools.

Tip: If you need to replace individual characters for other characters, for examle, to get rid of encoding or punctuation, use the Translate Characters tool instead (hotkey Alt+Ctrl+T). See chapter Replacing tools.

Note: The Replace dialog sets and works with the primary search mechanism.

Select to Next (Shift+F3)

Searches for a next occurrence of the recently specified search using Find Next feature. Then extends the selection to cover the found phrase too, if any.

Note: Works with the primary search mechanism.

Select to Previous (Ctrl+Shift+F3)

Searches for a previous occurrence of the recently specified search using Find Previous feature. Then extends the selection to cover the found phrase too, if any.

Note: Works with the primary search mechanism.

Look for Selected (Alt+F2)

Starts a new secondary search. Searches for a next occurrence of the content of the actual selection. This secondary search is always downward and ignoring case.

Tip: There are no restrictions on what the selection may or may not contain. You may easily select text over multiple lines and start a search for such a multi-line phrase.

Tip: Imagine that you want to search for a word name after an id 12345. There are hundreds of name-s in the document but only one such id. And you want to search for id-s like this quite repeatedly. Well, define a second search for the word name, then find a desired id and hit second search... There you are, instead of scrolling again and again.

Look for Next (F2)

Searches for a next occurrence of the recently specified secondary search within the document after the actual insertion point.

Note: Works with the secondary search mechanism.

Look for Previous (Ctrl+F2)

Searches for a next occurrence of the recently specified secondary search within the document before the actual insertion point.

Note: Works with the secondary search mechanism.