diff --git a/doc/BUILD.txt b/doc/BUILD.txt index 35b796b..b799570 100644 --- a/doc/BUILD.txt +++ b/doc/BUILD.txt @@ -60,9 +60,17 @@ You should set that environment variable to the directory (full path) where the macros are to exist. Note that TEC_LIBRARY must contain a trailing slash. +When teco starts up, it is capable of running a start-up file to set +initial preferences. The file must be specified by the TEC_INIT +environment variable. The value of that variable must start with a +dollar sign ($) followed by the complete path to the start-up file. +For example, on a Unix like system you could use: + + export TEC_INIT=\$/home/me/teco/teco.ini + Lastly, the "tec" file extension means "teco macro". There is also a file type "tes". That stands for "teco macro source". Generally, if you have a small macro, you'd just put it in a .tec file. Larger macros would be written in a .tes file allowing comments and space. Later -the squeeze function can be used to convery a .tes file into a .tec +the squeeze function can be used to convert a .tes file into a .tec file. diff --git a/doc/Summary.lyx b/doc/Summary.lyx new file mode 100644 index 0000000..5f6481a --- /dev/null +++ b/doc/Summary.lyx @@ -0,0 +1,2033 @@ +#LyX 2.0 created this file. For more info see http://www.lyx.org/ +\lyxformat 413 +\begin_document +\begin_header +\textclass article +\use_default_options false +\maintain_unincluded_children false +\language english +\language_package default +\inputencoding auto +\fontencoding global +\font_roman default +\font_sans default +\font_typewriter default +\font_default_family default +\use_non_tex_fonts false +\font_sc false +\font_osf false +\font_sf_scale 100 +\font_tt_scale 100 + +\graphics default +\default_output_format default +\output_sync 0 +\bibtex_command default +\index_command default +\paperfontsize 11 +\spacing single +\use_hyperref false +\papersize letterpaper +\use_geometry true +\use_amsmath 1 +\use_esint 1 +\use_mhchem 0 +\use_mathdots 1 +\cite_engine basic +\use_bibtopic false +\use_indices false +\paperorientation portrait +\suppress_date false +\use_refstyle 0 +\index Index +\shortcut idx +\color #008000 +\end_index +\leftmargin 1in +\topmargin 1in +\rightmargin 1in +\bottommargin 1in +\secnumdepth 3 +\tocdepth 3 +\paragraph_separation skip +\defskip medskip +\quotes_language english +\papercolumns 1 +\papersides 1 +\paperpagestyle default +\tracking_changes false +\output_changes false +\html_math_output 0 +\html_css_as_file 0 +\html_be_strict false +\end_header + +\begin_body + +\begin_layout Standard +\align center + +\size largest +TECO Summary +\begin_inset Foot +status open + +\begin_layout Plain Layout +Blake McBride (blake@mcbride.name), rev 6/6/2015 +\end_layout + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +Teco is a character oriented editor. + This differs from +\emph on +ed +\emph default + which is line oriented, and +\emph on +vi +\emph default + which is screen oriented. + Teco deals with one character at a time and makes only little distinction + between one line and another. + Therefore, at any given time, the current location teco sees is a character + position and not a line. +\end_layout + +\begin_layout Standard +Interestingly, the original emacs editor was written as a series of teco + macros. +\end_layout + +\begin_layout Standard +In what follows the $ character is the Escape key. + $ is used to separate one command from another. + $$ is used to cause teco to execute the entire command. + Therefore, teco doesn't actually do anything until $$ is hit. +\end_layout + +\begin_layout Standard +Even though the command are shown in capitol letters, one would normally + use lower case letters. + They are shown in upper case to avoid confusion (l vs. + L, etc.). +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Escape key - command delimiter +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +$$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Two escape keys - execute string +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +n +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Some number (implied default is usually 1) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +file +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +The name of a file +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +text / find / replace +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Arbitrary text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +q +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +A named storage area called a q-register. + Use any +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +character a-z and 0-9 to name the register. +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Exiting +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +EX$$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +save & exit +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +-1EX$$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Forced exit without saving +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +File commands +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +EC +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Save, close, and clear current buffer +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +EKHK +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Abort edit +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +EBfile$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Open file +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Y +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Read file +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +Displaying text (not for Video Teco) +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +T +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Type current character to EOL +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +HT +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Type entire file +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +nT +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Type n lines starting at current character +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +V +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +View entire line +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +nV +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +View n lines around current line +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace vfill +\end_inset + + +\begin_inset Newpage pagebreak +\end_inset + + +\end_layout + +\begin_layout Standard +Cursor movement commands +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Macro +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Command +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Description +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +nC +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Move n characters forward +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +nR +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Move n characters reverse +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +nL +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Move n lines forward (to the beginning of that line) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +nBW +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Go to beginning of n'th next (previous if negative) word +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +nEW +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Go to end of n'th next (previous if negative) word +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +BL +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0L +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Move to beginning of line +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +EL +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +L-2C +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Move to end of line +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +nJMP +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Go to line n +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +J +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Beginning of buffer +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +ZJ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +End of buffer +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +nStext$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Search forward for the n'th occurrence of text (leaves point at end of text) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +S$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Search again +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +-nStext$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Search backwords for text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +nES +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Scroll screen n lines +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +Entering text +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +Itext$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Insert text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +nFSfind$replace$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Find and replace n'th occurrence of text +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Deleting text +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Macro +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Command +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\series bold +Description +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +nD +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete n characters +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +nDW +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete n following (previous if negative) words +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +DLR +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete line remainder +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +K +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete from current position to beginning of next line +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0K +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete from current position to beginning of the line +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0KK +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete entire line +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +0KnK +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete n lines from current line +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +HK +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete entire buffer +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +FDtext$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Find & delete text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +FKtext$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Delete from point to beginning of text +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout + +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +FRtext$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Replace last found text with text +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +Variables +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +B +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Zero +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Z +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Number of characters in file +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +H +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +B,Z +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +. +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Current position +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +x= +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Display value of variable x +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\begin_inset Newpage newpage +\end_inset + + +\end_layout + +\begin_layout Standard +Cut & Paste +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +nXq +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Copy text from current position and the next n lines into q-register +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +n.mXq +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Copy text from character positions n to m into q-register q +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +.,.+5Xq +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Copy following 5 characters into q-register q +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Gq +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Insert contents of q-register into current position (paste) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +E%qFILE$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Save q-register to file FILE +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +EQqFILE$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Read file contents into q-register (good for insert file) +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + +Iteration +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +n +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Execute CMD n times +\end_layout + +\end_inset + + + + +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard + +\series bold +\size largest +Macros +\series default +\size default + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +One can put a series of teco commands in a file and execute that command + file while editing a file. + This is one way teco macros are created. + Within one of these command files the $ character acts like an escape key. + Once command files are created they can be executed as follows: +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +EIfile$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Execute command file when the command line is complete +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +EIfile$$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Execute command file immediately +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard + +\series bold +\size largest +Q-Registers +\series default +\size default + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +Commands, text, and contents of files can also be put into and executed + from q-registers. + These are in-memory registers named with a single character a-z or 0-9. + The following operations are supported: +\end_layout + +\begin_layout Standard +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\begin_layout Standard +\begin_inset Tabular + + + + + + +\begin_inset Text + +\begin_layout Plain Layout +^UqCMD$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Put CMD into q-register q (note ^U are two characters, not ctl-U) +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +EQqFILE$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Put contents of file FILE into q-register q +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +Mq +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Execute q-register q +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +E%qFILE$ +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Save contents of q-register q to file FILE +\end_layout + +\end_inset + + + + +\begin_inset Text + +\begin_layout Plain Layout +:Gq +\end_layout + +\end_inset + + +\begin_inset Text + +\begin_layout Plain Layout +Display contents of q-register q +\end_layout + +\end_inset + + + + +\end_inset + + +\begin_inset VSpace bigskip +\end_inset + + +\end_layout + +\end_body +\end_document diff --git a/doc/Summary.pdf b/doc/Summary.pdf index 1b7e042..b6a2bef 100644 Binary files a/doc/Summary.pdf and b/doc/Summary.pdf differ diff --git a/lib2/bl.tec b/lib2/bl.tec index 6a65cce..5b1765f 100644 --- a/lib2/bl.tec +++ b/lib2/bl.tec @@ -1 +1 @@ --ll ! goto the beginning of a line ! +0l ! goto the beginning of a line ! diff --git a/lib2/bw.tec b/lib2/bw.tec index 7418d59..929b0c1 100644 --- a/lib2/bw.tec +++ b/lib2/bw.tec @@ -1 +1,2 @@ -[0+0U0Q0"E1U0'Q0">Q0<<0A"R|0;'C><0A"R0;'C>>|-Q0<<-A"R0;'-C><-A"R|0;'-C>>']0 \ No newline at end of file +[0+0U0Q0"E1U0'Q0">Q0<<0A"R|0;'C><0A"R0;'C>>|-Q0<<-A"R0;'-C><-A"R|0;'-C>>']0 +! goto beginning of next word - can take an argument ! diff --git a/lib2/commands b/lib2/commands index 5f0e122..40913c2 100644 --- a/lib2/commands +++ b/lib2/commands @@ -7,6 +7,7 @@ File Commands ------------------------------------ EX save file - exit +-1EX exit without saving EBfile open file for input/output with backup ERfile open input file for reading EWfile open output file for writing @@ -22,20 +23,24 @@ Positioning Commands ------------------------------------ J jump to beginning of buffer nJ jump to character position n +ZJ jump to end of file L beginning of next line -nL move n relative lines (0 means beginning of line) +nL move n relative lines +0L go to beginning of line +L-2C go to end-of-line C move forward one character nC move n characters R move reverse one character -nR move n relative characters +nR move n reverse characters Stext$ search buffer for text (position after search string) (if no text use previous search text) +-Stext$ search reverse Ntext$ search entire file from current position nS search for the nth occurance (negative n means reverse) nN search for the nth occurance (all pages) -Type Commands +Type Commands (non-video mode only) ------------------------------------- T type current position to EOL nT type n relative lines (0 means from BOL) @@ -48,8 +53,10 @@ Text modification commands ----------------------------------------- Itext$ insert text @I/txt/ insert txt (may contain escapes) +0LK delete entire line +0LnK delete n lines K kill to EOL -nK kill n relative lines (0 meands BOL to current position) +nK kill n relative lines (0 means BOL to current position) HK kill whole buffer D delete one character nD delete n relative characters diff --git a/lib2/dlr.tec b/lib2/dlr.tec new file mode 100644 index 0000000..d511e39 --- /dev/null +++ b/lib2/dlr.tec @@ -0,0 +1,3 @@ +! delete line remainder ! +ki +2r \ No newline at end of file diff --git a/lib2/dw.tec b/lib2/dw.tec index 854d3e0..ac83b1b 100644 --- a/lib2/dw.tec +++ b/lib2/dw.tec @@ -1 +1,2 @@ -[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'D><0A"R|0;'D>>|-Q0<<-A"R0;'-D><-A"R|0;'-D>>']0 \ No newline at end of file +[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'D><0A"R|0;'D>>|-Q0<<-A"R0;'-D><-A"R|0;'-D>>']0 +! delete n words forward ! \ No newline at end of file diff --git a/lib2/ew.tec b/lib2/ew.tec index d4d9d5c..090e5c0 100644 --- a/lib2/ew.tec +++ b/lib2/ew.tec @@ -1 +1,2 @@ -[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'C><0A"R|0;'C>>|-Q0<<-A"R|0;'-C><-A"R0;'-C>>']0 \ No newline at end of file +[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'C><0A"R|0;'C>>|-Q0<<-A"R|0;'-C><-A"R0;'-C>>']0 +! goto end of word - takes argument ! \ No newline at end of file diff --git a/lib2/jmp.tec b/lib2/jmp.tec index 66b7c03..f706810 100644 --- a/lib2/jmp.tec +++ b/lib2/jmp.tec @@ -1 +1,2 @@ -[0-1U0JQ0J]0 \ No newline at end of file +[0-1U0JQ0J]0 +! jump to line n (starting at line 1) ! \ No newline at end of file diff --git a/lib2/nla.tec b/lib2/nla.tec new file mode 100644 index 0000000..2b769d9 --- /dev/null +++ b/lib2/nla.tec @@ -0,0 +1,3 @@ +! add new line after current line ! +li +-l \ No newline at end of file diff --git a/lib2/nlb.tec b/lib2/nlb.tec new file mode 100644 index 0000000..08d9d33 --- /dev/null +++ b/lib2/nlb.tec @@ -0,0 +1,3 @@ +! add new line before current line ! +0li +-l \ No newline at end of file diff --git a/lib2/teco.ini b/lib2/teco.ini new file mode 100644 index 0000000..2e77a3b --- /dev/null +++ b/lib2/teco.ini @@ -0,0 +1,3 @@ +-1^x ! enable case sensitive searches ! +0,16ed ! retain dot after failed searches ! +$$