MM MM EEEEEEE MM MM OOOOOOO MMM MMM EE MMM MMM OO OO MM M MM EEEEE MM M MM OO OO MM MM EE MM MM OO OO MM MM EE MM MM OO OO MM MM EEEEEEE MM MM OOOOOOO ---------------------------------------------------------------- FROM: Allen A. Watson DATE: June 10, 1982 TO: Users of EDT SUBJECT: Added functions for EDT using special initialization file. ---------------------------------------------------------------- A new EDT initialization file (EDTINI.EDT) has been put into UIC [1,5] for general use. This file must be copied to your UIC to use it, using the COPY command: COPY [1,5]EDTINI.EDT [g,m] where "g" and "m" are the group and member numbers of your UIC; for example: COPY [1,5]EDTINI.EDT [77,77] If you already have an EDTINI file (LAYOUT-80 users have already been given one) you should use EDT to combine this new file with your old file. The new file should be placed at the end of your old file. Some commands in the new file may duplicate commands in your old file; this will not cause problems, but duplications should be deleted to speed EDT's processing of the file. The file is written in greatly abbreviated form and uses internal EDT key numbers instead of names, in order to speed EDT's pro- cessing of the file. For example you will see 'DEF K 46 AS "-W"' instead of 'DEFINE KEY CONTROL B AS "-W"'; the two expressions are equivalent. If you need help interpreting the file, see me. This initialization file offers you the following added features for EDT. EDT HINTS PAGE 2 1.0 Automatic Setup. 1. _S_c_r_e_e_n _f_o_r_m_a_t_t_i_n_g. The screen width is set to 80, and word wrap is set to 78, allowing use of the FILL command (GOLD 8) to word-wrap lines. NOTRUNCATE mode is set so as to display characters that go beyond 80 per line. EDT is automatically put into CHANGE mode for Keypad Ed- iting. 2. _W_o_r_d _d_e_l_i_m_i_t_e_r_s. The delimiters EDT recognizes as word separators affect how the WORD and DELETE WORD keys work. Two sets of word delimiters are established, one for programming and one for word-processing (memo writ- ing, etc.). The delimiters sets are: WORD PROCESSING SET Space Tab character Line feed Vertical tab Form feed Carriage return Escape Comma -- "," Single quote == "'" PROGRAMMER SET Same as above plus the following: Left or right parenthesis -- "(" and ")" Left of right brackets -- "[" or "]" Hyphen -- "-" Plus -- "+" Asterisk -- "*" Slash -- "/" Equals -- "=" 2.0 Programmed Keys. 2.1 Additional Editing Functions 1. _F_o_r_w_a_r_d _o_r _b_a_c_k _a _w_o_r_d -- CONTROL F and CONTROL B EDT HINTS PAGE 3 One of the minor annoyances of EDT occurs when you change directions using the BACK key and then forget you did it. These two keys provide a means of moving the cursor forward or back one or more words. To move back- ward one word, hit CONTROL B. To move more than one word, hit GOLD number CONTROL B (or F), where "number" is the number of words you want to move. 2. _P_a_r_a_g_r_a_p_h _k_e_y -- CONTROL P EDT recognizes two adjacent RETURNs as a paragraph del- imiter; this key will move the cursor from paragraph to paragraph. The sequence of RETURN-TAB is not recognized as a paragraph delimiter. 3. _F_u_l_l _s_c_r_e_e_n _s_c_r_o_l_l -- GOLD ARROW-UP and GOLD ARROW-DOWN These two keys will cause the screen to scroll 22 lines in either direction. GOLD ARROW-UP will move the cursor up 22 lines (the screen will scroll down). GOLD ARROW-DOWN will move the cursor down 22 lines. The cur- sor will remain in the same horizontal position if pos- sible. This differs from the SECT key on the keypad, which moves only 16 lines and always repositions the cursor at the start of the line. 4. _E_x_c_h_a_n_g_e _t_w_o _c_h_a_r_a_c_t_e_r_s -- GOLD CONTROL H This key will exchange the last two characters typed. For example, if you type "teh", hitting GOLD CONTROL H will exchange the "eh" to "he". (Note: this will not work properly if BACKUP is in effect.) 5. _S_e_t _a_n_d _F_i_n_d _M_a_r_k _i_n _t_e_x_t -- GOLD . (period) and GOLD / (slash) GOLD . will set a mark in the text that looks like this: "~~/~~". This could be used to indicate a place that needs work, etc. GOLD / will find and delete the mark (dependent upon search direction set by BACKUP and ADVANCE). 6. _C_h_a_n_g_e _C_a_s_e _o_f _W_o_r_d -- GOLD C GOLD C will change the case of an entire word _e_x_c_e_p_t _t_h_e _f_i_r_s_t _c_h_a_r_a_c_t_e_r. This is useful for changing things like "The Record" to "THE RECORD". To use it, place the cursor on the first character of the word to be changed. GOLD C will accept a numeric arguement; thus, to change two words, type GOLD 2(keyboard, not keypad) GOLD C. 7. _F_I_L_L _(_w_o_r_d_-_w_r_a_p_) _P_a_r_a_g_r_a_p_h -- GOLD F EDT HINTS PAGE 4 GOLD F will word-wrap an entire paragraph, when the par- agraph is delimited by blank lines (two RETURNs). To use, place the cursor on the first character of the par- agraph to be wrapped. Accepts numeric arguements to wrap multiple paragraphs. 2.2 Buffer Handling Functions 1. _E_x_t_r_a _C_u_t _a_n_d _P_a_s_t_e _b_u_f_f_e_r_s -- CONTROL X and CONTROL G These two keys allow you to create and use extra, named CUT and PASTE buffers. This is useful when you have CUT something to the usual PASTE buffer using the CUT key on the keypad, and want to cut out something else as well. To use them: use SELECT to define a block of text you want to cut. Hit CONTROL X. EDT will prompt you for the name of the buffer you want to put the text into by saying "Cut buffer: ". Enter a buffer name. To recall the text from your cut buffer (or from any buffer you have created), use CONTROL G. It will prompt you by asking for the buffer name: "Put buffer: ". The text from the buffer you name will be inserted into the text at the cursor location. The text will remain in the named buffer and can be re-inserted elsewhere. A second CONTROL X to the same buffer will over-write the first text. 2. _S_w_a_p _b_l_o_c_k_s _o_f _t_e_x_t -- GOLD CONTROL G This key will swap one block of text for another. To use, define a block of text and put it into a named buffer using CONTROL X. Let's say you call the buffer JOHN. Now define a second block of text, and hit GOLD CONTROL G. EDT will prompt you for a replace buffer name, "Rep buffer: ". If you answer "JOHN", the text you have defined will be cut out, and replaced with the text from buffer JOHN. (The text that is cut is placed in a buffer called DELETE, which you can use again as you wish.) 3. _C_o_p_y_i_n_g _t_e_x_t _t_o _a _b_u_f_f_e_r -- GOLD CONTROL X This key will copy a defined block of text to the bottom of a named buffer, and then will return the cursor to the original location. It prompts you for the name of the buffer to copy to: "Cop buffer: ". Text already in the buffer is preserved and the new text is appended EDT HINTS PAGE 5 to it. 4. _F_i_n_d _B_u_f_f_e_r -- GOLD B GOLD B will prompt you for a buffer name and then switch you to that buffer at the last cursor location within the buffer. 5. _F_I_N_D _L_A_S_T -- GOLD L When you start working with a lot of buffers, FIND LAST becomes a much needed command. If you are working in one buffer and switch to another, FIND LAST will put you back in the previous buffer where you left off. GOLD L is a key programmed to do this for you. 6. _F_I_N_D _M_A_I_N _a_t _l_a_s_t _l_o_c_a_t_i_o_n -- GOLD M GOLD M will return you to the MAIN buffer at the last cursor location. 7. _S_H_O_W _B_U_F_F_E_R_S -- GOLD S GOLD S will execute a SHOW BUFFERS command to show you the buffers currently in use. The current, active buffer is preceded by an equals sign. 8. _C_L_E_A_R _B_u_f_f_e_r -- GOLD C GOLD C will prompt you for a buffer name and then clear that buffer of all text. 9. _F_i_l_e _I_n_p_u_t _a_n_d _O_u_t_p_u_t -- GOLD I and GOLD O GOLD I will prompt you for a file name and a buffer name, and then read the file into the buffer. GOLD O will prompt you for a file name and a buffer name, and then write the buffer into the file. 2.3 Format Control 1. _C_h_a_n_g_e _D_e_l_i_m_i_t_e_r _S_e_t _-_- _G_O_L_D _D To change from one delimiter set to the other, simply use the GOLD D key. (Hit GOLD, then the "D" key on the keyboard.) 2. _F_l_i_p_-_f_l_o_p _s_c_r_e_e_n _w_i_d_t_h _b_e_t_w_e_e_n _8_0_/_1_3_2 -- GOLD CONTROL W EDT HINTS PAGE 6 This key will change your screen width from 80 to 132 or vice versa; if the screen is set 80 characters wide, hitting GOLD CONTROL W will change it to 132; if it is 132, it will change it to 80. 2.4 Convenience Keys 1. _E_x_i_t _K_e_y -- Keypad Key 3 Keypad Key 3 is defined normally as a CHAR key. This is virtually useless, because its function is duplicated by the arrow (cursor) keys. This key has therefore been redefined as an EXIT key. Hitting this key is the same as typing CNTL/Z and EXIT. 2. _Q_u_i_t _K_e_y -- Keypad Key 7 Keypad Key 7 is defined normally as a PAGE key. This is useful only when editing a file containing Form Feeds. This key has therefore been redefined as a QUIT key. Hitting this key is the same as typing CNTL/Z and QUIT.