Search menu

TEA Manual
Prev |  | Next

# 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.

Run grep - write the search string into the Famouse text entry. then use this function. Results will appear at the Logmemo. Double click a line there to open a file with the text that been found.

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...

To search, put some text into the Text to find entry, then choose a text encoding from the list below, select the starting directory and file name pattern (something like "*.html"). Press the Find button. The search shall begin recursively from the given directory. TEA searches the text in plain text, KOffice KWD, AbiWord ABI, OpenOffice.org sxw, and OpenDocument ODT files. A note about the File pattern entry- 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. And the Clear a list button clears a list of found files.

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.

Prev | Home | Next
Edit menu, or how to cut without scissors and violence. |  | Marking menu