Chapter 7. Search menu

7.1. Common searching functions

Want to find something? Write it to the Famous text entry and press Enter or Ctrl-F. Want to Find next? Press F3. Note that TEA always search from the current cursor position.

If you need more traditional search tool, you can use the Search and Replace window. It is far from the ideal, but somehow usable.

Replace - replaces the current selection with a content of the Famous text entry. The common use of that - find/find next some text, and when the text that founded will be selected, use this function.

Goto line - enter the line number into the famous text entry, and use this function.

Replace all - again, dealing with the Famous text entry. But now in a special format: text to find~text for replace. For example: hell~heck.

Find and mark find the string (from the Famous text entry) in the current document and mark all found entries.

Find in files. TEA has a simple built-in utility to search text within files. It's a single thread function and it has no any Stop button so you'll need some patience while TEA tries to find the text in files. Drink some tea...

Probably that some fields of this window need an explanation. Here it is. The And where to find directory field - that's from which directory TEA will start the search. The search is recursive.

File pattern - only two metachars are supported there: * and ?.

To open a file from the list of files those found, double click on the list item.

Also you can save the list of files those found as a TEA session to load files later at any time. Press Save as a session button to save the list as a session. Also you can copy all found files to some directory using the Copy to the directory button.

TEA searches the text in plain text, KOffice KWD, AbiWord ABI, OpenOffice.org sxw, and OpenDocument ODT files.

For the plain text files, on search, TEA tries to use all character encodings that included at charset list in the File Open dialog window.

Mark lines > n characters. Put the maximum line length to the Famous text entry and use this function. All lines those are larger than N (the value in the Famous text entry) charaters will be marked.

Scan for local links - scans current document for href-links to local files, and add them (if any) into the menu Nav > Links, from which you can open a text file in TEA, and a picture in the built-in or external viewer (like a Open at cursor).

Scan for SRC's - similar to Scan for local links, but now it fills Nav > Links menu with all local SRC-stuff - for most cases with images. It's very useful if you want to see some banner or another picture and don't want to find it in the code manually.