home *** CD-ROM | disk | FTP | other *** search
/ Shareware Gold 1 / The_Golden_ROM_Series_-_Shareware_Gold_Volume_1_Number_11_-_SK_89-301_-_1989.iso / LIB040 / ED.MAC < prev    next >
Text File  |  1988-11-30  |  7KB  |  169 lines

  1. (KEYBOARD MACRO FILE
  2.  
  3. (The following key reassignments are examples of how you can customize the
  4. (edit control file.  This file is not intended to be used as a whole.  See
  5. (Customizing the Edit Control File: Redefining Keys. in the PC-Write User's
  6. (Guide for general information.  Be sure to use only one 400: line in an edit
  7. (control file.
  8.  
  9. (TO COPY A MACRO BELOW TO THE EDIT CONTROL FILE:
  10. (Place the cursor on the start of the macro, Ctl F6, move the cursor down
  11. (past end of the macro you wish to copy, then Ctl F6. You will be prompted
  12. (with: Copy marked text to file "mark.doc".  Respond with ED.DEF, or the name
  13. (of the edit control file you in which you want to place the macro.
  14. (F5 clears marking.
  15.  
  16. (INITIAL EDIT MODES
  17.  
  18. (Make PC-Write start Overwrite mode (Scroll Lock)
  19. 400:258
  20. (Make PC-Write start hide mode (Alt Space)
  21. 400:399
  22. (Make PC-Write start Para+ mode (Shf F7)
  23. 400:346
  24. (Turns on automatic spell checking (Alt F2, F7)
  25. 400:361,321
  26.  
  27. (TAB KEYS
  28.  
  29. (Make the Tab key (270) inserts blanks to the next tab stop in Pushright
  30. (mode and advances cursor to the next tab stop in Overwrite mode (420).
  31. 270:420
  32. (Make the Back Tab key (271) delete spaces to the left of the previous tab
  33. (in Pushright, and simply cursors back to the last tab in Overwrite mode (421).
  34. 271:421
  35. (Make Tab insert spaces in both Pushright and Overwrite.
  36. 270:727
  37. (Make Back Tab delete spaces to the last tab in both modes.
  38. 271:728
  39.  
  40. (ENTER KEYS
  41.  
  42. (Makes the Enter key (264) insert an end paragraph font character (Alt K)
  43. (then do an Enter.  Useful if you need a hard end of paragraph.
  44. 264:20,264
  45. (Makes the Enter key just drop to the start of the next line in
  46. (Overwrite mode and still insert a line in Pushright mode.
  47. 264:422
  48. (Makes the enter key in the middle of a line move the cursor
  49. (to the left margin, not to paragraph indent (open paragraph).
  50. 264:452
  51. (Makes the enter key stay on the same line at the end, inserting
  52. (a line boundary after it (like Wordstar Ctl N).
  53. 264:453
  54.  
  55. (MOVING AROUND THE SCREEN
  56.  
  57. (If you are among the 30% of people who find the Page Up and Page Down keys
  58. (opposite of what is natural for you, here are the redefinitions you need.
  59. (The first redefines the Page Up key to perform Page Down.  The second
  60. (redefines Page down to Page Up.  The last two swap Shf PgUp and Shf PgDn.
  61. 329:337
  62. 337:329
  63. 297:312
  64. 312:297
  65.  
  66. (Make left arrow at line start go to end of prior line.
  67. 331:711
  68. (Make right arrow at end of line go to next line start.
  69. 333:712
  70.  
  71. (Make Shf Left Arrow scroll horizontally one character left.
  72. 308:713
  73. (Make Shf Right Arrow scroll horizontally one character right.
  74. 299:714
  75.  
  76. (Make Shf Left Arrow scroll horizontally one screen left.
  77. 308:715
  78. (Make Shf Right Arrow scroll horizontally one screen right.
  79. 299:716
  80.  
  81. (CUSTOMIZING THE SCREEN CLIP COMMANDS
  82.  
  83. (Make Shf Ctl F2 instead of Shf Ctl F6 start a Screen Clip.
  84. 615:351
  85. (Make Shf F6 instead of Shf Ctl F5 clear the Hold during Screen Clip.
  86. 616:345
  87. (These redefinitions are different than other key redefinitions.
  88. (It is backward from usual. 615 or 616 comes before the key code.
  89.  
  90. (FILE NAME MODIFIERS
  91.  
  92. (Assigns a prefix to all file names. With this example, whenever you
  93. (type BANK.LET as the filename PC-Write edits B:BANK.&LE.
  94. 427:"B:"
  95.  
  96. (Assigns a prefix to the backup file name only. With this example, when you
  97. (request a backup file, PC-Write uses the backup file name C:\BAK\BANK.LET.
  98. 428:"C:\BAK\"
  99.  
  100. (Assigns a file name suffix for edited files.  This may be a file extension,
  101. (or a command line parameter such as the /e or /r options.
  102. 429:"/e"
  103.  
  104. (INSERTING TEXT, DATE AND TIME, OR FILE NAME
  105.  
  106. (Make Ctl D produce date in the format March 20, 1986.
  107. D:566,'$$Month  D, YEAR$$'
  108. (Make Ctl S produce date in the format 03/20/86.
  109. S:566,'$$MO/DA/YE$$'
  110. (Make Ctl T produce CHAPTER1 05:56 (filename and time)
  111. T:566,'$$FILENAME HO:MI$$'
  112.  
  113. (TWO-KEY SEQUENCES
  114.  
  115. (In this example, Ctl-Q then A enters the word Abyssinian,
  116. (Ctl-Q B enters the word Balinese, and Ctl-Q C enters Calico.
  117. Q:555,"Cats";
  118.  556,65,"Abyssinian";
  119.  556,66,"Balinese";
  120.  556,67,"Calico"
  121.  
  122. (CUSTOMIZING ACCENT KEY PAIRS
  123. (Creates a custom accent key pair.  In this example, 1, accent, 2
  124. (entered at the keyboard produces the character 3.
  125. 567:'1','2','3',47,92,60
  126.  
  127. (REFORMAT ALL PARAGRAPHS WITHOUT HARD LINE BOUNDS FOR TYPESETTERS
  128. (Make Ctl-\ do operation 300, then reformat all paragraphs
  129. (Operation 300 toggles an "infinite" temporary right margin.
  130. 28:300,354,321,319
  131.  
  132. (OPEN A WINDOW IN LOWER HALF OF SCREEN and prompt for a second file name.
  133. (Ctl-F does Shf Up Arrow to top of screen, arrow down eleven lines, F2,
  134. (arrow down one, F1, F6.
  135. F:296,336,336,336,336,336,336,336,336,336,336,336,316,336,315,320
  136.  
  137. (OPEN BLANK SPACE FOR AND INSERTION AND CLOSE IT AGAIN USING BOOKMARKS
  138. (Place cursor where you want the space to open. Ctl-O places bookmark,
  139. ("presses" enter six times, places second bookmark, returns to first
  140. (bookmark, goes into overwrite mode.  Ctl-C closes the space by marking
  141. (space from cursor to the second bookmark and deleting it, returns to
  142. (pushright mode.  Use this with the Enter key redefined 264:422.
  143. O:375,264,264,264,264,264,264,438,373,258
  144. C:318,436,318,258
  145.  
  146. (CHECK FOR MATCHING PARENTHESES
  147. (Ctl M adds parentheses and a message to the file, searches for matching
  148. (pairs using Alt F4, F4, and pauses so you can observe whether the marking
  149. (extends to include the message.  If not, the pairs are not matched.  The
  150. (macro cleans up, removing all it added.
  151. M:309,"(",298,375," IF MARKING MAKES IT HERE, PARENTHESES MATCH)",309;
  152.  363,318,424,424,424,424,319,309,339,373,318,298,318,319
  153.  
  154. (POWER MARKING COMMANDS
  155. (This macro block gives you some powerful text moves with a two-key sequence,
  156. (Ctl M followed by a letter. Codes 555 "User mode name" and 556 "User mode
  157. (sequence" are used to define a two-key sequence.  See also ops 409 and 410,
  158. (which mark (or extend marking) for a word or line, respectively.
  159. M:555,"MarkMv";
  160.  556,119,319,333,371,320,372,320,371;            (Ctl MW Mark word
  161.  556,108,319,438,333,299,320,336,320,436;        (Ctl ML Mark line
  162.  556,115,319,435,372,434,320,434,323,319,264;
  163.      334,331,371,372,320,418;                    (Ctl MS Mark sentence
  164.  556,112,319,438,333,388,299,320,374,299,320,436;(Ctl MP Mark paragraph
  165.  556,102,319,333,371,320,372,320,372,320,371,319;(Ctl MF Transpose word forward
  166.  556,097,319,333,371,320,372,320,371,371,320;    (Ctl MA Transpose word backwd
  167.    371,319;
  168.  556,121,298,264,264,392,436,319                 (Ctl MY Move block
  169.