Searching and replacing hints and tips
Changing search and replace string fonts
In Main menu ⁄ View ⁄ Options ⁄ Search you can set the font face, size and color of the Text to find: and Replace with: strings in Tree search, Article search and Article search⁄replace. Choosing a font with improved visibility will help editing.
Using alphabet keys to search the tree
Transferring the search string from Search tree to Search article
If you click the Search article button in the Tree search window, TreePad resets the Article search window with the current search string, which thus reappears in the Search for text: field in the Article search window. However, if you do not, Article search will only display and look for the string entered the last time it was opened. You may need to experiment with these functions to appreciate this.
Tree search highlights the first occurrence of the search string when you click one of the nodes displayed in the search results pane, repeatedly pressing F3 will display further occurrences within the same article until the end of the article is reached, only the Article search window is not displayed. Knowing this will save you from having to open the Article search window to search the rest of the article. This local article search happens independently of the Article search function, as will be seen by opening the Article search window.
To use Tree search to replace text within articles, copy the replacement string to the Windows Clipboard, click the node in which replacement will occur in the Search Results pane, and when the search string is highlighted in that article, press Ctrl+V to effect the replacement.
Finding all articles containing hyperlinks that point to a specific node
You can use Search tree to find links that need to be renamed when you rename the target node. This is easiest if you always give hyperlinks exactly the same names as the nodes to which they point (simply enter the node title and make sure Articles are included in the search). However, if you make a practice of changing the link text to make it more appropriate, a different method is needed.
First find the target node's ID number by opening its Node properties window, then use "guidnode:⁄⁄NOTFOUND" plus that number as a search string, since Search tree will also find characters hidden in RTF articles such as node IDs in underlined hyperlinks.
For example, suppose that you are searching for all articles containing hyperlinks to node 15. Simply typing 15 as the search string is not enough as it will also find articles with hyperlinks to nodes 115, 215, 315, etc. So make the search string guidnode:⁄⁄NOTFOUND. Even though this will also find nodes 150-159, 1500-1599, etc. this is unlikely to pose a real problem in practice.
Handy hint: if you don't want to have to remember or type "guidnode:⁄⁄NOTFOUND", you can copy this from the HTML source code of any article containing a hyperlink if you use TreePad Business Edition, by selecting the article, then Main menu ⁄ HTML ⁄ Quick preview ⁄ Article HTML-source.
Narrow your search by tagging node titles or articles
You can also use the Search tree function as a way to bookmark nodes you are likely to access frequently. Type a short but unique search string such as "$$$" somewhere in the articles (or even the node titles) of nodes you want to bookmark, then enter this in the Search for text field to filter out all nodes not containing this string. Use several such symbols to identify different sets of nodes. See Ways of tagging nodes.