(c)2004 Peter 'Roxton' Semiletov
TEA official site: http://tea.linux.kiev.ua
TEA is GPL'ed.
Tibi et igni
At the autumn of the year 2000 I've started to develop a text editor (for Windows) which called TEA (something like "Text Editing and Authoring program"). It was more than popular in ex-USSR countries such as Ukraine, Russia, Belarus and others; and I did 11 versions until 2004. Then I've stopped "TEA for Windows" and began "TEA for Linux". It is my first Linux application, and, actually, my first C-application at all :) I am not consider myself as a programmer. I'm a writer and a journalist, and I want a text editor which fit for my needs. So I try to do a such one.
I completely understand that my English is truly BAD (articles, tenses and other stuff), but I promise to write this manual good as I can.
If you have any questions, ideas, propositions or patches, feel free to write me - tea@list.ru. By the way, I understand English good as my native Russian, so don't look at how terrible I write.
Please read this manual entire, coz TEA in some cases is a very non-standart editor. By the first, there are no any confirmations. Why? We are not stupid, that's why! If I wanna do something, so I do it. If I want to close the door, but the door ask me "Are you sure to close me?" and show me the heap of buttons which I must select - it just annoy me, nothing more. I want to close the door, and I know that is exactly what I want, but the door talks with me, asks me. Am I an idiot? Definitely not. So what the reason I have for answer to confirmations? "Are you sure to overwrite?" Yes, because I, with a clear mind, have selected some file name and I've know already that file is exists.
Confirmations are like the training level in some first person shooters. THEY supposes that we don't know how to walk, to jump etc. I think that even a little baby knows from the born that "w" means forward. But no, THEY force us to complete training level. Are we morons?
♫ n.p. Nirvana - I Hate Myself And I WantTo Die
Some words about the interface. Attention please! Our airplane is safe but a bit unusual.
Here are a layout of TEA control elements, from top to bottom:
1. Window bar (sic!).
2. Menu. //whoa, look at that - the natural menu...
3. Text-tabs area.
4. Text field called "log_memo" for information output.
5. Text entry (I call it "the famous text entry") for input of misc values such as text for searching, tags for enclosing selections with them, etc. The "Run" button directly from the right of the famous text entry doing the same function as pressing Enter in the text entry.
6. Statusbar, the nice and wide one :)
About drag and drop. When you drop some text file[s] into the TEA window, that file[s] will open in the editor. If the file is an image, it inserts into the current text document as the IMG-tag. It works fine with Konqueror, Gqview, etc.
New - starts a new empty document in a UTF-8 encoding.
New Kwas - opens a new Kwas window. Details
Templates - from this menu user templates are available. All templates are stored by default in $HOME/.tea/templates. To save the file as a template, use Save different > Save as template menu item.
Sessions - here are sessions. The stuff like in Opera; you can store lists of files, and then load 'em as well. There also the one menu item - Open different > Open session file - for opening a session file in TEA like a normal text file, without loading a filelist from it.
TEA stores to the session 3 elements per file - a filename, an encoding and a cursor position.
To store the files as a session, use Save different > Save session menu item.
Add a bookmark - adds a new bookmark record into Bookmarks list. Each record includes a filename, a charset and a position fields. To edit bookmarks file (which is a simple text file with a list of items) go to File > Manage config files > Bookmarks file
Crapbook - Crapbook is a simply text file that stored at $HOME/.tea/crapbook.txt. You can call it by Alt-M. TEA saves this file automatically when you close TEA or crapbook.txt itself. I think that is useful for writing some notes, quotes and the similar stuff.
Open - opens a file[s]. There are a charset selector in the File open dialog window. Choose the correct encoding or you will be amused... By default there 2 encodings are available: UTF-8 and current locale. If you want more, go to File > Manage config files > Charsets config. "What a hell?" - you should say, "is that a weird dream?". You see the file $HOME/.tea/iconv_rc, that is auto-generated when TEA starts (if such file is not exists). This file contains all encodings what known by iconv. Here is an example:
WINDOWS-936//
WINDOWS-1250//
WINDOWS-1251//
WINDOWS-1252//
and more...
Please don't try do with this file something another than adding + (plus) before a line of the charset what you wanna add to the encodings list in File open/Save As dialogs and into the Kwas combo-box. I mean, for example, if you want to add Windows-1251, you must to edit your $HOME/.tea/iconv_rc like that:
WINDOWS-936//
WINDOWS-1250//
+WINDOWS-1251//
WINDOWS-1252//
and more...
and then save it. When you save this file within TEA, a charset list will immediately reload. Sure you can delete + for turn some charset off.
Menus/lists with available charsets are updates: for Open/Save dialogs - when ypu reopen them; for Kwas - whan you starts a new Kwas window.
By open multiply files, that files must be in a same encoding (the encoding which selected), or shit can happen. I can't say about the nature of that hypothetical shit, but now you are warned.
About RTF files.
Yes, TEA can OPEN them. Not to save. For correct opening you can define the default encoding for RTF. It can be done in Preferences > Encoding > Default charset for RTF. If you are an english-speaking user, don't worry, it's not affect you much.
An another question is how TEA opens RTF's :) It really sucks, but it works. If you want just to read RTF quickly, use TEA. But if you wanna edit them, then use OOO, or KWrite, or AbiWord, or whatever else.
Open different - from this menu you can quickly open snippets, sessions and templates for editing.
Save different > Backup - TEA make copy of a saved current file, NOT of a currently editing text.
Save - you know, right? Just a one note - document will be saved in same encoding as you opened it.
Save as - by the way, in this dialog you can select from the list any of encodings that available. So if you want to convert your file into another charset, use it. Note that Co menu is just for reload current file with selected encoding, not for conversion.
Save different > Save as template - saves a current file as template in a default templates directory: $HOME/.tea/templates.
Save different > Save version - save a copy of the current file with the name, based on this file name and current date and time.
Manage config files - from here you can open directly any of TEA configuration files (saved at $HOME/.tea/). The changes will be applied after aditing and saving. I don't recommend you edit the Main config, coz TEA has a fine tool for that - the Preferences window, but do as you wish.
Manage config files > Autoreplace words file - here you can open the file with words for autoreplace (which turning ON in Preferences > Co-author > Autoreplace). This file contains lines in a very simply format: word1=string.
For example:
Linux=GNU/Linux
sxe=straight edge
FSOL=Future Sound Of London
hl=highlighting
After you save this file, the inner list of autoreplace will be updated. To use it, just turn autoreplace on, and start to type your text. All words from the list there will be replaced/expanded when you enter their short equivalent and press SPACE or any punctuation key. Autoreplace is case-sensetive.
Manage config files > Hotkeys config - using this file you can assign you own hotkeys/shortcuts for any menu item. All hotkeys were stored in the $HOME/.tea/tea_hotkeys file. This file MUST contain only UTF-8 data. All changes will be applied after you save this file. If the new hotkey overlaps and older one for the same menu item, then changes will work after the TEA restart. Pre-defined hotkeys are not changeable.
Each line of tea_hotkeys has a simple format:
menu item caption=hotkey
For example:
Reverse=Alt Shift R
Read this fine manual=F1
Some notes. Caption is case-sensitive. So you must write it exactly as in the TEA menu. Otherwise, hotkey is not case-sensitive, so you can write freely something like that: "shift ctrl F5" or so. Available modifiers are: Alt, Ctrl, Shift. You must divide them by spaces.
You can assign a hotkey to any menu item, even for the dynamical-created items like a bookmarks.
Close current - just close current file, without any annoying questions. I hate all that confirmations "Are you sure?", "Your file was modified" etc.
Kwas is designed as a replacement of the standart "File open" window in TEA, so don't expect much from that file navigator. You can open it in several windows, you can navigate thru directories, and for sure you can open files in the desired codepage and view images also. In the future I'll extend the features list, but for now that's all.
You can use the text entry as the address bar for the Kwas. Just type there the path that you need and press the Enter key. Backspace at the files list - directory up.
Kwas has an own menus. From Actions you can:
Refresh Kwas - update the files list. Kwas can't do thay automatically.
Bookmark the current dir - add the current directory to Bookmarks menu of Kwas window. To edit bookmarks you may go to TEA main menu, File > Manage config files > Kwas bookmarks config. Note that in a case of deletion of bookmarks, their menu will be updated when new kwas window created.
Get file info - get the information about current (selected) file. Watch for the output in the log memo. TEA uses a standart file utility for that.
Run with... - run the current (yes, selected) file with a desired program. Type a command into the FAMOUS TEXT ENTRY. The command must be a program name only, i.e. just opera or xmms.
There are also Ins to editor menu:
Insert image - inserts selected (active) image file as IMG-tag into the current text document.
Insert link - inserts selected (active) file as HREF-tag into the current text document.
Indent/Unindent - it moves text right or left on one tabulation character or some spaces (look at Preferences, Editor page). For an indent you can also use a TAB key. Both of functions works with a single line or multiply lines as well.
Append to the Crapbook - add the selection to the Crapbook. It's not important that Crapbook is opened or not - this function works in any case.
Swop - swap the selected text with a clipboard content. I.e. text from the selection moves to clipboard, and at the same time the content of clipboard is moving to the place of the selection.
Copy all - copy all text to the clipboard.
Copy current URL - before using that, you must point with cursor to the URL at your text.
Cut/Copy/Paste to new - it means that the selection in cut/copy to the newly created file. Paste to new works with external, normal clipboard, but cut/copy avoids it.
Of course you can :) TEA even can find for you a smallest star on the sky - just give him some text to find in the FAMOUS text entry. No dialog, no OK/Cancel buttons and other traditional stuff. Why? Because :)
Simple type the text what you wanna find, and press Enter or Ctrl-F. To find next, you can press F3.
In all cases, the search starts from the current cursor position.
Find/Find next - no more to say.
If you want more traditional search tool, you can use the Search and Replace window. It's far from the ideal, but somehow usable.
Goto line - enter line number into famous text entry, and use this function. Whoa, it works...
Replace all - and now for something completely different (c)Monty Python's Flying Circus.
Again - dealing with a famous text entry. But now in a special format:
text to find~text for replace
For example:
hell~heck
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-ib or external viewer (same as Open at cursor).
Scan for SRC's - similar as 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 wanna find it in the code.
Some of functions that described below are works in a dual-way - if there no text selected, then will be inserted a pair of tags, otherwise the selected text will be enclosed with tags.
Comment - enclose the selection into the comments. It works fine for HTML, CSS, Pascal and C/C++ files, according to syntax rules.
Color - opens a color selection dialog. If no text selected, then a HTML-color inserts into the cursor position, otherwise the selected text embraces with p-tag with a color property CSS.
Image - opens a file open dialog. You can select an image[s], which will be inserted as img-tags (with filled attributes such as height and width) into the current document. There are supported all formats what GTK+ 2 usually understands - PNG, JPEG, GIF, WBMP etc.
Spell check - TEA uses Aspell for the spell-checking. In this menu you can find the list of dictionaries which installed for aspell (from the distro or so). It works with the whole text, not with the selection only.
Probably incorrect words will be colored with the color you can define in Preferences > Colors.
TEA can just show you errors. You must fix them for yourself, by the hand. When you've fixed the error you can see that the fixed word is colored as before. That's because the nature of TEA spellchecker - it updates manual, so if you want to update highlighting, select the same spell checking menuitem again. If you want turn error marks off, use View > Hide highlighting.
Document stats - as for a journalist, I more than often look at text statistics of an article (coz characters is a money :), so you can imagine how I hate, using other editors, to press the OK button or Enter in the each case when I watch at statistics window. In TEA, I do output into the log_memo, and I don't need to close any windows after that :)
UNIversal Text AnalyZer.What is UNITAZ? It's a fine tool for the text analysis. It shows you the list of words from the current document, and shows the count of each word. Call UNITAZ with sorting abc - do analysis and then sort words list, Call UNITAZ plain - do analysis without sorting. Call UNITAZ with sorting by count - the same, but with sorting by the word's count.
Extract words - extracts all word from the current document. It is useful, for example, if you want to make a some sort of dictionary or so. Warning! All that functions are relatively slow, so be patient and don't think that TEA has freezed.
Also UNITAZ shows how many words are total, and amount of unique words - words count WITHOUT repetitions of that words.
For use text-processing functions, you must select a some text.
User menu - in TEA you can create your own menu to run some programs or open with them a current file. To edit the user menu go to the File > Manage config files > User-menu config. It opens the user menu configuration file. Edit it and save. The menu will update. The format of this file in a simple one. There are a list with something like:
Opera=opera %s &
Kwrite=kwrite %s &
So, as you understand, the "%s"-macro means the current file name. If you want to start some program as a background process, you must add a &-sign to the end of line.
Snippets.
A snippet is the piece of code, which you can insert into the text. TEA keeps each snippet as a single file in $HOME/.tea/snippets directory. File name of a snippet is a menu item in Snippets-menu, i.e. a content of Snippets menu is a list of files from $HOME/.tea/snippets.
To create a new snippet, you do:
1. Make some text.
2. File > Save different > Save as snippet. UTF-8 only!!
3. Enjoy :)
You can create a snippet that use a text selection in a some way. For example, you wanna make snippet which encloses the selected text into some HTML-tags. The "%s" macro represents a text selection. Here is an example of such snippet:
<a href="%s">%s</a>
When that snippet will be applied, %s will be replaced with a selected text. If there no text is selected, snippet content will be inserted into the text.
Format > Kill formatting - kills formatting (tabs, new lines, single spaces etc.)
Format > Wrap raw at position - do the same as doing fold when it without the -s parameter. I.e. it wraps each line at position, which you must enter into the famous text entry.
Format > Wrap on spaces at position - do the same as doing fold when it with -s parameter. It wraps the each line (preserving words dividing) at the position, which you must enter into the famous text entry.
Insert > Dump menu - writes all menu items names into the new file. It is useful when you want to add some entries into the hotkeys config.
Insert > Date/Time - inserts a date/time in a giver format. The format must be defined by you in the Preferences > Functions > Date And Time Format
A quote from Edition 0.10, last updated 2001-07-06, of The GNU C Library Reference Manual, for Version 2.2.x of the GNU C Library (the quoted text is edited by Roxton):
%a - The abbreviated weekday name according to the current locale.
%A - The full weekday name according to the current locale.
%b - The abbreviated month name according to the current locale.
%B - The full month name according to the current locale.
%c - The preferred calendar time representation for the current locale.
%C - The century of the year. This is equivalent to the greatest integer not greater than the year divided by 100.
%d - The day of the month as a decimal number (range 01 through 31).
%D - The date using the format %m/%d/%y.
%e - The day of the month like with %d, but padded with blank (range 1 through 31).
%F - The date using the format %Y-%m-%d. This is the form specified in the ISO 8601 standard and is the preferred form for all uses.
%g - The year corresponding to the ISO week number, but without the century (range 00 through 99). This has the same format and value as %y, except that if the ISO week number (see %V) belongs to the previous or next year, that year is used instead.
%G - The year corresponding to the ISO week number. This has the same format and value as %Y, except that if the ISO week number (see %V) belongs to the previous or next year, that year is used instead.
%h - The abbreviated month name according to the current locale. The action is the same as for %b.
%H - The hour as a decimal number, using a 24-hour clock (range 00 through 23).
%I - The hour as a decimal number, using a 12-hour clock (range 01 through 12).
%j - The day of the year as a decimal number (range 001 through 366).
%k - The hour as a decimal number, using a 24-hour clock like %H, but padded with blank (range 0 through 23). This format is a GNU extension.
%l - The hour as a decimal number, using a 12-hour clock like %I, but padded with blank (range 1 through 12). This format is a GNU extension.
%m - The month as a decimal number (range 01 through 12).
%M - The minute as a decimal number (range 00 through 59).
%n - A single \n (newline) character.
%p - Either AM or PM, according to the given time value; or the corresponding strings for the current locale. Noon is treated as PM and midnight as AM.
%P - Either am or pm, according to the given time value; or the corresponding strings for the current locale, printed in lowercase characters. Noon is treated as pm and midnight as am.
%r - The complete calendar time using the AM/PM format of the current locale.
%R - The hour and minute in decimal numbers using the format %H:%M.
%s - The number of seconds since the epoch, i.e., since 1970-01-01 00:00:00 UTC. Leap seconds are not counted unless leap second support is available. This format is a GNU extension.
%S - The seconds as a decimal number (range 00 through 60).
%t - A single \t (tabulator) character.
%T - The time of day using decimal numbers using the format %H:%M:%S.
%u - The day of the week as a decimal number (range 1 through 7), Monday being 1.
%U - The week number of the current year as a decimal number (range 00 through 53), starting with the first Sunday as the first day of the first week. Days preceding the first Sunday in the year are considered to be in week 00.
%V - The ISO 8601:1988 week number as a decimal number (range 01 through 53). ISO weeks start with Monday and end with Sunday. Week 01 of a year is the first week which has the majority of its days in that year; this is equivalent to the week containing the year's first Thursday, and it is also equivalent to the week containing January 4. Week 01 of a year can contain days from the previous year. The week before week 01 of a year is the last week (52 or 53) of the previous year even if it contains days from the new year.
%w - The day of the week as a decimal number (range 0 through 6), Sunday being 0.
%W - The week number of the current year as a decimal number (range 00 through 53), starting with the first Monday as the first day of the first week. All days preceding the first Monday in the year are considered to be in week 00.
%x - The preferred date representation for the current locale.
%X - The preferred time of day representation for the current locale.
%y - The year without a century as a decimal number (range 00 through 99). This is equivalent to the year modulo 100.
%Y - The year as a decimal number, using the Gregorian calendar. Years before the year 1 are numbered 0, -1, and so on.
%z - RFC 822/ISO 8601:1988 style numeric time zone (e.g., -0600 or +0100), or nothing if no time zone is determinable.A full RFC 822 timestamp is generated by the format "%a, %d %b %Y %H:%M:%S %z" (or the equivalent "%a, %d %b %Y %T %z").
%Z - The time zone abbreviation (empty if the time zone can't be determined).
%% - A literal % character.
By default TEA uses "%d/%m/%Y %T" as format string, so
date_time=%d/%m/%Y %T
Case > UPCASE/lowcase - do that with the selected text or the word under cursor.
Numbers > Arabian to Roman - for example, was 1977, will be MCMLXXVII.
Numbers > Counter - generates a list of numbers. You must define the format string in the FAMOUS text entry. Format is:
start_value~end_value~[step]
For example:
1~10~5
And as a result we have:
5
10
15
20
25
30
35
40
45
50
By the way, default value of "step" = 1
String > Numerate lines.
Numerate selected lines. You must define the format of numeration in the famous text entry. The format is weird one:
printf-like format string~step of the counter~initial value of the counter
The two last parameters are optional and equal to 1 by default. Let's imagine that you have a list of music bands:
Nirvana
Scorn
Napalm Death
Defecation
Neck
JR Ewing
Fall
Meathook Seed
The Doors
Led Zeppelin
Now you want to add a numbering to that list, and in a custom format. So, TEA can do it for you. You write the format string into the FAMOUS text entry. The format string is a very printf-like, i.e. you can use two macros - %d for a counter and %s for a string. To be more clear - %d represents the counter, and %s represents a string.
Here is some examples of format-string:
%d.)%s
%d.)%s~10
%d.)%s~10~4<
The second line represents a format-string with a step parameter. Ten is the step value. 3-rd line is a format-string with the step and with the initial value of the counter. It is equal to 4.
You also can use %d after %s, i.e. "%s (%d)" gives to us a result:
Nirvana (1)
Scorn (2)
Napalm Death (3)
Defecation (4)
Neck (5)
JR Ewing (6)
Fall (7)
Meathook Seed (8)
The Doors (9)
Led Zeppelin (10)
String > Convert tabs to spaces.
Be sure to enter a tab-size into the famous text entry before. The value of a tab-size is the number of characters per a one tab.
String > Convert spaces to tabs.
And now the FAMOUS text entry content = how many spaces to find for replace each of them to the tab.
String > Reverse - reverse a text. I.e. was roxton, will be notxor.
String > Antispam e-mail - makes a selected mailto-link probably invisible to that damned spammer e-mail harvesters, by converting an address into integer-code entities. For example, if you'll look at the source of that document, so that link will looks like a heap of garbage. I hope that spam harvesters don't understands it. I took an idea from a some issue of LinuxGazette.
String > Remove blank lines - removes blank lines form selected text. I don't think that it is a needful thing, but... Maybe it will be useful to somebody.
String > Remove duplicates - removes duplicated lines. //there is some kind of bug - lines order will be screwed up. I'll fix it soon.
String > Trim each line left on char N - trims an each line of the selection on a character N at the beginning of the line. You must enter the value of N into the famous text entry before using of this function.
String > Trim each line right on char N - trims an each line of the selection on a character N at the ending of the line. You must enter the value of N into the famous text entry before using of this function.
String > Trim each line left on N - trims an each line of the selection on a character position N at the ending of the line. You must enter the value of N into the famous text entry before using of this function.
String > Reverse order of lines - better I'll show you an example:
Was:
Line 1
Line 2
Line 3
Line 3
Line 2
Line 1
String > Apply a template to each line - and again we use FAMOUS text entry :) For example, I want to add br-tag at the end of each line of the selected text. So I type into the entry:
%s<br>
And then I apply that function and get br added to the end of each line. In another case, I want to enclose an each line into a pair of li-tags. I type:
<li>%s</li>
Then apply a function. So, as you understand, the %s macro = text of the line. And another example:
<a href="%s">%s</a>
Sort > Sort lines - Sort lines in the alphabetical order.
Filters > Kill lines with a phrase
Select a text. Enter some phrase into the famous text entry. Apply this function. As a result, all lines containing your phrase will be deleted from the selection.
Filters > Kill all lines except with a phrase
Select text. Enter some phrase into the famous text entry. Apply this function. As a result, all lines without your phrase will be deleted from the selection.
Filters > Kill all lines < N characters
Kills in the selection all lines smaller than N (value in the Famous text entry) characters.
Filters > Kill all lines > N characters
Kills in the selection all lines smaller than N (value in the Famous text entry) characters.
Morse > Encode to Morse code EN
I'm not a guru in Morse codes, but I hope that my effort to implement such function was right. With that menu item you can translate the English text into the Morse code. For example, was:
Drum and bass
Will be:
-.. .-. ..- -- .- -. -.. -... .- ... ...
Note that TEA puts a single space between two Morse codes, and two spaces between words (in Morse codes too).
Morse > Decode from Morse code EN
The inverse action for the previous function. So you can decode any English Morse-coded message. You must to know TEA supposes that there are single spaces between Morse-codes, and double spaces between words, as in the example written before.
By the way, I've tried to decode that Morse-like stuff in freahmeat newsletters, and - as far I know, that is not a Morse code. Actually, I don't know what is it.
Document height - calculate a total document weight including all SRC-staff (i.e. images, flashes etc). Look for a result in the logmemo.
Make table - I don't like any wizards, but I've always dreamed about a tool for a quick creation of tables. And I did it. Again we use the FAMOUS text entry. It's very simply. Just type:
rows count~columns count
And apply this function...
For example, we wanna make 2x4 table - 2 rows, with 4 cells per each row. So our template will be such this:
2~4
Catch it? And now for something completely different :)Build-in template - inserts the hardcoded HTML template into the current document.
Enclose selected link into tags - doing that :) If you want to enclose a www.foo.bar or ftp.foo.bar, or mailto:foo@bar.com with a "a href"-tag, so use this function and be happy.
Strip tags - kill all tags from HTML-document.
Convert tags to entities - if you want to show some HTML-tagged code in your HTML-document, so select your code and use this function. You'll get, for example:
<b>demo</b>
From this menu you can switch encoding for the current document. Encodings are the same as in "File open/save as" dialogs. When you switch an encoding, it means that the current file's content will be reloaded as with a different encoding. So use it carefully, only if you want to change an encoding when you see some kind of crap in the place of a text.
This menu called such in a historical reason. TEA for Windows had a VERY big menu, where not all top-level items can have a place, so I've abbreviated some of them and made "Browsers" shorten to "Bro". From this menu you can view a current file with the some browser. To override default hardcoded command lines to each browser, edit entries at Preferences > Browsers. Example of command line for browser start: konqueror=konqueror %s &. %s is a needful macro for a current filename, so use it in the properly place.
Save the position - it saves the position of cursor. Then you can jump to that position using Jump to the saved position menu item.
Preview with Mplayer.
It's to the question how to edit (translate) subtitles in TEA. TEA now recognizes only SRT-subtitles. To work with them properly, you need:
1. Open SRT-file as a usual text file.
2. "Open" a movie file using the File > Open different > Open movie.
3. Edit your SRT-file.
4. When you activate Preview in Mplayer, TEA finds the start time of the current subtitle section, and runs Mplayer with movie which you have selected before by Open movie. TEA also talk Mplayer to jump to the time what is needed for a current subtitle section (actually, after such "rewind", due to Mplayer's nature, it shows the next subtitle AFTER the current one, so choose in TEA previous subtitle to view correctly the current one. Weird sentence, isn't it? But, try to use and you'll understand).
Links - here are names of local files from links in the current document - you can get them by Search > Scan for local links (I've described it previously). More of that, from this menu you can switch to yet opened (in TEA) document.
Go to recent tab - switch to the last accessed tab.
Focus the text/Focus the FAMOUS text entry - useful, if you want to assign some hotkeys for switch between a text tab and the famous text entry.
Go to the block start/end - really does it. For C-like languages or PHP. It moves the cursor to the current block's start or the end ({ and } characters). I think it is useful.
Open at cursor - if you have the link to a local file at your HTML-document, you can open it with this function. Just point to the filename in the text and use it (pressing F2 will be more quick). If you've pointed to an image-file, it will be opened with built-in image viewer. You can also use an external viewer - setup it with Preferences > Commands. For example, it can be the command line display %s&. Also in that case you need turn on the option Preferences > Switches > Use external image viewer
If the file is not an image, Open at cursor opens it in TEA as text file with a same encoding as of the current file's one. If the file is opened yet, it becomes the current one.
If you have a link to a some local "a name=" - label, so by pressing F2 you can jump to the place of a definition of that label.
Edit at cursor - the same thing as the previous one, but it calls for a file not the viewer, but the external editor. Go to Preferences > Commands and setup there the command line to run a such editor. Example of a command line: gimp %s&
Highlighting mode - from this submenu you can select a highlighting mode locally, for the current document.
Hide highlighting - hide the highlighting in the document. It removes syntax hl., and spellchecker marks too.
Show images in the text - show images near their IMG/SRC tags directly in the text.
Refresh highlighting - TEA has a very ugly ability to highlight HTML-code. With this function, you can update the hightlighting.
Word wrap - do you need an explanation? And why I write that paragraph?
Line numbers - the song remains the same...
At last, in TEA 3.0, we have File > Preferences window. No text-config editing anymore. Use GUI - it's not a heresy. Now I can kick off more of config variables descriptions coz there are self-explaining text labels in Preferences.
Tabbed pages and two big buttons are there. The buttons are: Close and Apply. The first one just closes the Preferences window, and nothing more. But "Apply" button doing important job - it saves all options into the good old config, and then initiates reload the config. If you don't press Apply, so no changes will stored. TEA don't saves it's config by exit. It saves config just when you press the Apply button.
Now I'll give some basic info about tabs.
Misc. switches. There are:
Determine a scripts highlighting by the content - it is for the syntax highlighting. Turn it on, if you want to auto-highlight Bash-scripts which are without the .sh-extension.
XHTML mode for Markup stuff - a damn good option for functions from Markup menu and related stuff such as Insert image. If you need the XHTML syntax, turn this ON and rock'n'roll.
Use snippets - snippets works only if this option is turned ON. For what is that? In some cases you may fund that TEA scans snippets directory to slowly, and maybe you want turn it off temporary.
Show line numbers - to show them or not to show by default.
Word wrap - to wrap words or not to wrap - yes, by default.
Scan for links on file open
If on, then TEA will scans local links automatically on file open. By default is off.
Do backup
Check this if you want TEA make backup on file save.
Here you can turn on encoding autodetection, and check charsets which you want to autodetect.
The format of the Color function - it affects on the result of Markup > Color function. Use @color macro to define where must be the generated color value, and a @text macro as a replacement of the selected text (i.e. where it will be inserted at the output string).
Here you can set file save/open windows height and width in per cents, and turn off "Show the full path in the window caption" if you want to see just file name in the caption.
Don't limit yourself, better limit TEA. Recent list maximus entries and many more.
The tab with a huge amount of options - try not to lost here. Tab size in spaces - defines the default tab size, in a count of characters, so, 3 = approx. 3 spaces.
Here you can change default hardcoded command lines to for run a wide range of browsers. Also with the option Browser for the manual you may define the browser for TEA manual. In addition to that, for use your browser turn ON Use this browser option.
By the way, if no documentation browser defined, TEA will find one of good brosers installed on your box and will use that one.
Default file saving directory and Use default saving directory. Use this entries (and according to these checkboxes) to override default directories for File Save As/Open dialog windows.
Peter 'Roxton' Semiletov (1977-20??). Today I'm working as a freelance journalist in Ukraine and Russia. I already have around 300 "paper" publications (since the end of Y2K) and I think it's not too bad. Yes, I sell my articles, but I don't make a commerce with my novels and stories - they are all available for free in the Net (look at www.roxton.kiev.ua). On the Russian language, heh-heh-heh... //I mean, that was a very sarcastic laugh.
Things that I like: punk rock, Nirvana, AMD CPU's, Russian classics literature, writing, Napalm Death, Scorn, indie-movies, vegetarianism, KDE, Led Zeppelin, Linux Mandrake, cola, Fallout, RPG's, my own ugly guitar playing and singing (oh, my aesthetic grindcore singing), Mitsumi classics keyboard, Sinclair computer, NES, Sega MegaDrive/Genesis, Fender mediator .88 mm M/H (you know, such green), Monty Python's Flying Circus, H.P. Lovecraft's prose, Radiohead, Musorgsky, freedom of the choice, GPL, tea, kwas, black T-shorts with rock themes, gcc, 3dfx Voodoo 3000 (rules forever), mplayer, xmms, Nokia 3100, GIMP, Hohner classic guitars, cheap EPOX mobos, S3 Virge 4Mb, panamas, walking afoot, old silent movies of Buster Keaton and Fatty Arbuckle, Hieronim Bosch's weird paintart, my own realistic dreams (where I develops TEA too).
//last mod. by roxton 05 november 2004