home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / wp / pcwrite2.zip / MACRO.DEF < prev    next >
Text File  |  1989-09-20  |  6KB  |  166 lines

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