home *** CD-ROM | disk | FTP | other *** search
/ TopWare Tools / TOOLS.iso / tools / top1388 / we.hlp < prev    next >
Encoding:
Text File  |  1993-12-30  |  54.4 KB  |  1,411 lines

  1. intro 001815
  2. multiwindow 003084
  3. promptsmenus 003454
  4. usinghelp 003981
  5. menu 004317
  6. editor 005200
  7. cursorcommands 005749
  8. enter 006598
  9. textmanip 007335
  10. insbracepair 008432
  11. insclosingbrace 009036
  12. filemenu 009616
  13. filecommands 009921
  14. fileclsall 010817
  15. fileopntxt 011494
  16. openspec 011957
  17. edtdirwin 012533
  18. opnfilnam 013044
  19. fileread 013474
  20. xio_nmipmt 013747
  21. filewrite 014094
  22. xio_nmopmt 014541
  23. pickfile 015145
  24. fileprint 015611
  25. fileprintpg 015834
  26. windowmenu 016399
  27. windowcommands 016690
  28. zoommode 017556
  29. hiddenwindows 018083
  30. lockedwindows 018686
  31. nextunlocked 019674
  32. status 020019
  33. statusflags 020690
  34. insmode 021513
  35. paraformat 022190
  36. autoblankline 023061
  37. autoindent 023818
  38. autoindentsafe 024550
  39. smartindent 025159
  40. smartindentlogic 026042
  41. toggleoptions 027254
  42. ctrl_x 027866
  43. searchmenu 028551
  44. searchcommands 028855
  45. searchwordstring 029680
  46. cutpastemenu 030103
  47. cutpastecommands 030481
  48. cutpasteall 031039
  49. cutpaste_del 031729
  50. cutpaste_mov 031962
  51. cutpaste_cpy 032252
  52. cutpaste_eol 032552
  53. markcommands 033574
  54. markdisplay 034620
  55. markunique 034986
  56. markline 035599
  57. markchar 036518
  58. markcursormove 036965
  59. markclearall 037711
  60. miscmenu 038043
  61. paramargins 038536
  62. configfiles 038804
  63. configop_path 039624
  64. configop_pagelength 040006
  65. configop_controlindent 040443
  66. configop_braceindent 040794
  67. kcdfile 041109
  68. kcdline 041969
  69. kcdkeyname 043007
  70. kcdenter 043808
  71. cmdlinopts 044506
  72. filepath 045565
  73. sessionfiles 046672
  74. searchfiles 047693
  75. configoptions 048698
  76. setcnfpthg 049224
  77. setcnfpthl 049455
  78. dosshell 049722
  79. settingmenu 050362
  80. editsettings 050594
  81. editset_autopfmt 051322
  82. blockmenu 051711
  83. blockedit 051933
  84. block_adjlines 053088
  85. block_inscol 053610
  86. block_delcol 053894
  87. block_write 054166
  88. block_append 054868
  89. block_white 055076
  90. block_last 055299
  91. autoindentmenu 055510
  92. $
  93. $intro 01 19 18 62 Introduction
  94. 002378 18 01 19
  95. 02 10 15 01 we multiwindow
  96. 02 26 19 01 we editor
  97. 06 27 13 01 we menu
  98. 07 19 20 01 we ctrl_x
  99. 09 05 24 01 we cursorcommands
  100. 09 37 18 01 we status
  101. 10 05 26 01 we textmanip
  102. 10 37 19 01 we configfiles
  103. 11 05 27 01 we searchcommands
  104. 11 37 20 01 we cmdlinopts
  105. 12 05 24 01 we filecommands
  106. 12 37 19 01 we kcdfile
  107. 13 05 26 01 we windowcommands
  108. 13 37 17 01 we promptsmenus
  109. 14 05 22 01 we cutpastecommands
  110. 14 37 10 01 we usinghelp
  111. 15 05 22 01 we blockedit
  112. 16 05 22 01 we editsettings
  113. 17 05 22 01 we miscmenu
  114. The Willow Creek Programmer's Editor (WE) is a powerful and
  115. flexible multiple window programmer's editor.  It can also be
  116. used as a simple word processor.  Further help is available on
  117. the following:
  118.  
  119.                  ESC key: The Main menu
  120.                   Special key commands
  121.  
  122.     Cursor movement commands        Window status line
  123.     Text manipulation commands      Configuration files
  124.     Search and replace commands     Command line options
  125.     File management commands        Key definition file
  126.     Window management commands      Prompts and menus
  127.     Cut and paste commands          Using help
  128.     Block editing commands
  129.     Edit settings commands
  130.     Miscellaneous commands
  131.  
  132. $multiwindow 01 03 04 65 Multiple Windows
  133. 003217 04 01 03
  134. 02 36 15 01 we filecommands
  135. 03 01 09 01 we menu
  136. 04 24 20 01 we ctrl_x
  137. WE can open several editing windows at once, each with a
  138. different file loaded in it.  The "File management" option on the
  139. Main menu lists commands to do this.  Many of these commands are
  140. also available through special key commands.
  141. $promptsmenus 01 00 12 64 Using Prompts and Menus
  142. 003522 12 00 00
  143. Prompts and menus are pretty self explanatory to use.
  144.  
  145. On prompts just type in what it asks for, and press ENTER.  The
  146. same editing keys work as when entering text in a window, with
  147. one exception: To delete from the cursor to the end in a prompt
  148. use ^Y instead of ^E.
  149.  
  150. On menus use the arrow keys and ENTER, or push the highlighted
  151. hot key for the option you want.
  152.  
  153. On both use the ESC key to quit from that prompt or menu without
  154. doing anything.
  155. $usinghelp 01 00 08 63 Using Help
  156. 004033 08 00 00
  157. Using help is very simple, and intuitively obvious.  A few
  158. comments, however.
  159.  
  160. Use the up and down arrow keys to move between highlighted
  161. "footnotes" - hypertext links.  The left and right arrows don't
  162. do anything in help.
  163.  
  164. The F1-F4 keys always display WE introductory help.
  165. $menu 01 08 16 64 Main Menu
  166. 004573 16 01 08
  167. 04 18 18 01 we searchmenu
  168. 05 18 15 01 we filemenu
  169. 06 18 17 01 we windowmenu
  170. 07 18 13 01 we cutpastemenu
  171. 08 18 18 01 we blockmenu
  172. 09 18 18 01 we settingmenu
  173. 10 18 13 01 we miscmenu
  174. 16 26 10 01 we ctrl_x
  175. The Main menu contains the following options.  Each option will
  176. display a sub-menu of options related to the named topic.
  177.  
  178.                  Search and replace
  179.                  File management
  180.                  Window management
  181.                  Cut and paste
  182.                  Block manipulation
  183.                  Edit mode settings
  184.                  Miscellaneous
  185.  
  186. To display the Main menu push the ESC key while editing.
  187.  
  188. When an option on a sub-menu includes a notation like (^Q) or
  189. (^X+^O) at the end of the line that means that the option may be
  190. also selected by pushing those keys without accessing the menu.
  191. $editor 01 00 09 65 Programmer's Editor
  192. 005258 09 00 00
  193. WE is an editor for ASCII text files.  It is designed to be most
  194. useful for writing and modifying programs.  It does not have a
  195. special "internal" format for its files like a word processor, it
  196. works directly on "raw" ASCII text files like DOS batch files and
  197. program source code files.
  198.  
  199. While WE does not have all the features of a real word processor,
  200. it has enough features for writing simple notes and things.  For
  201. instance, it will format paragraphs using margins you specify.
  202. $cursorcommands 01 02 18 65 Cursor Movement Commands
  203. 005873 18 01 02
  204. 05 14 43 01 we enter
  205. 17 29 32 01 we searchcommands
  206. The following commands will move the cursor inside a window, or
  207. scroll the window while keeping the cursor in the same place:
  208.  
  209.      Arrows: Move cursor left, right, up, and down
  210.       Enter: Move cursor to next line or create new line
  211.        Home: Move to beginning of line
  212.         End: Move to end of line
  213.        PgUp: Previous page
  214.        PgDn: Next page
  215.   Ctrl/Home: Beginning of file
  216.    Ctrl/End: End of file
  217.   Ctrl/Left: 8 columns to left
  218.  Ctrl/Right: 8 columns to right
  219.          ^Z: Scroll text up (cursor doesn't move)
  220.          ^W: Scroll text down (cursor doesn't move)
  221.  
  222. There is also a full set of text search and replace commands that
  223. will move the cursor to the location of text they search for.
  224. $enter 01 04 13 65 The Enter Key
  225. 006759 13 01 04
  226. 05 05 18 01 we settingmenu
  227. 06 01 41 01 we autoblankline
  228. 08 04 14 01 we autoindent
  229. 11 05 19 01 we kcdenter
  230. The ENTER key can be configured to act in different ways.  The
  231. normal action is to move the cursor to the beginning of the next
  232. line, and to add a new line when used at the last line of a file.
  233.  
  234. The Edit Settings menu has an option to force the ENTER key to
  235. add a blank line below the cursor instead.
  236.  
  237. If auto indenting is turned on then the cursor will automatically
  238. indent the line where it ends up.
  239.  
  240. The key definition file can also be used to reconfigure the ENTER
  241. key to act in slightly different ways when not overridden by the
  242. "add blank line below" mode.
  243. $textmanip 01 07 20 63 Text Manipulation Commands
  244. 007585 20 01 07
  245. 02 36 19 01 we blockedit
  246. 03 05 18 01 we miscmenu
  247. 12 15 18 01 we paraformat
  248. 13 30 30 01 we insmode
  249. 14 08 05 01 we enter
  250. 18 36 14 01 we autoindent
  251. 20 29 32 01 we searchcommands
  252. The following commands are used to manipulate text.  There are
  253. also some commands that work on an entire marked block of text.
  254. The Miscellaneous menu also has some options for manipulating
  255. text.
  256.  
  257.          DEL: Delete character at cursor
  258.    Backspace: Delete previous character
  259.           ^R: Delete (remove) entire line
  260.           ^E: Delete from cursor to end of line
  261.           ^B: Break line into two lines at cursor
  262.           ^A: Append line below onto current line
  263.           ^P: Reformat paragraph
  264.          INS: Switch between text insert and typeover modes
  265.        Enter: Go to next line (maybe adding new line)
  266.   Ctrl/Enter: Insert blank line above the cursor
  267.  Shift/Enter: Insert blank line below the cursor
  268.  
  269. All the ENTER key commands can use auto indenting.
  270.  
  271. There is also a full set of text search and replace commands.
  272. $insbracepair 01 03 09 65 Insert Brace Pair
  273. 008586 09 01 03
  274. 02 17 11 01 we configop_braceindent
  275. 02 45 18 01 we configfiles
  276. 08 18 14 01 we autoindent
  277. This command (^X+^P) will indent the current line by the amount
  278. defined by the "braceindent" command in the configuration file,
  279. and then insert a pair of lines above and below it with opening
  280. and closing braces at the original indent of the line.  The
  281. cursor is left at the new indent in the original line.
  282.  
  283. This command will work equally well on a blank line with an
  284. indent set up by auto indenting and on an existing line with text
  285. on it.
  286. $insclosingbrace 01 03 09 65 Insert Closing Brace
  287. 009196 09 01 03
  288. 02 17 11 01 we configop_braceindent
  289. 02 45 18 01 we configfiles
  290. 08 18 14 01 we autoindent
  291. This command (^X+^C) will indent the current line by the amount
  292. defined by the "braceindent" command in the configuration file,
  293. and then insert a line below it with a closing brace at the
  294. original indent of the line.  The cursor is left at the new
  295. indent in the original line.
  296.  
  297. This command will work equally well on a blank line with an
  298. indent set up by auto indenting and on an existing line with text
  299. on it.
  300. $filemenu 01 02 03 64 File Management Menu
  301. 009727 03 01 02
  302. 01 35 08 01 we filecommands
  303. 03 55 09 01 we menu
  304. The File Management menu contains commands to open and close
  305. windows, read and write disk files, print, and change the MS-DOS
  306. directory.  The File Management menu is listed on the Main menu.
  307. $filecommands 01 09 16 64 File Management Commands
  308. 010222 16 01 09
  309. 02 28 20 01 we filemenu
  310. 03 06 20 01 we ctrl_x
  311. 05 08 11 01 we openspec
  312. 06 30 15 01 we fileopntxt
  313. 10 08 26 01 we fileclsall
  314. 11 08 38 01 we filewrite
  315. 12 08 31 01 we fileread
  316. 13 08 10 01 we fileprint
  317. 14 08 26 01 we fileprintpg
  318. The following file management commands are available.  All these
  319. commands are listed on the File Management menu, and some are
  320. also special key commands.
  321.  
  322.        Open window and load file (^X+^O)
  323.        Open window with file named at cursor (^X+^N)
  324.        Close window and save file
  325.        Save file and continue editing (^X+^S)
  326.        Quit window without saving file (^X+^Q)
  327.        Close all windows and exit
  328.        Write marked lines out to another file
  329.        Read lines in from another file
  330.        Print file
  331.        Print file with pagination
  332.        Change MS-DOS directory
  333.  
  334. $fileclsall 01 03 12 64 Close All Windows and Exit
  335. 010967 12 01 03
  336. 01 19 20 01 we filemenu
  337. 09 23 12 01 we sessionfiles
  338. 12 27 12 01 we cmdlinopts
  339. The option on the File Management menu to "Close all windows and
  340. exit" will do exactly that - close all editing windows and leave
  341. WE.
  342.  
  343. If the file in a window has been modified but not saved, WE will
  344. display a message saying so and asking if you want to save the
  345. file.
  346.  
  347. WE will also create a session file called "WE.SES" which lists
  348. all the files that were open when the "Close all..." command was
  349. selected.  This session file is used by WE if a "@" with no file
  350. name after is used on the command line invoking WE.
  351. $fileopntxt 01 02 06 65 Open File Name Imbedded in Text
  352. 011618 06 01 02
  353. 02 05 20 01 we filemenu
  354. 03 42 12 01 we openspec
  355. The option to "Open window with file named in text", (^X+^N), on
  356. the File Management menu, will try to use the text at the cursor
  357. in the current window as the name of the file to open.  This lets
  358. you "point and shoot" to look at files in directory listings,
  359. output files from file search utilities, compiler error message
  360. logs, etc.
  361. $openspec 01 03 09 65 File Specs and Directory Windows
  362. 012108 09 01 03
  363. 03 09 16 01 we pickfile
  364. 07 14 33 01 we fileopntxt
  365. 09 21 14 01 we edtdirwin
  366. Whenever WE uses a file spec to open a window it checks to see if
  367. the name contains a wildcard or is a directory.  If so, then WE
  368. opens a directory window containing all files matching the
  369. wildcard, and lets you select the file you want.
  370.  
  371. This feature operates both when WE prompts for a file name, and
  372. when using a file name imbedded in window text.
  373.  
  374. WE can also open an editing window with a directory list in it.
  375. $edtdirwin 01 01 07 62 Directory in Editing Window
  376. 012629 07 01 01
  377. 06 33 13 01 we fileopntxt
  378. If WE attempts to open a window using a wildcard prefixed by a
  379. "#" character, it will open an editing window containing a
  380. directory listing of all files matching the wildcard after the
  381. "#".  By "editing window" we mean a normal window you can move
  382. around in, search, change, etc.  It is very handy to browse
  383. through this window and use the ^X+^N command to point to file
  384. names and open windows to edit them.
  385. $opnfilnam 01 03 05 65 Enter File Name
  386. 013177 05 01 03
  387. 02 08 19 01 we filepath
  388. 03 16 14 01 we pickfile
  389. 04 09 24 01 we edtdirwin
  390. Enter the name of a file to load into the new window.  WE will
  391. search several directories to find the file.  If a wildcard is
  392. entered then a directory list is displayed for you to pick from.
  393. Enter a wildcard prefixed by "#" to open an editing window with a
  394. directory listing in it to browse.
  395. $fileread 01 02 03 65 Read Lines in From Another File
  396. 013598 03 01 02
  397. 01 21 20 01 we filemenu
  398. 01 47 19 01 we xio_nmipmt
  399. This command on the File Management menu will prompt for the name
  400. of an ASCII text file to insert into the current window at the
  401. cursor position.
  402. $xio_nmipmt 01 03 04 65 Enter File Name
  403. 013880 04 01 03
  404. 01 29 21 01 we fileread
  405. 02 25 19 01 we filepath
  406. 03 30 14 01 we pickfile
  407. Enter the name of a file to read in at the cursor in the current
  408. window.  WE will search several directories to find the file.  If
  409. a wildcard is entered then a directory list is displayed for you
  410. to pick from.
  411. $filewrite 01 02 07 65 Write Marked Lines Out To Another File
  412. 014226 07 01 02
  413. 01 21 20 01 we filemenu
  414. 01 47 19 01 we xio_nmopmt
  415. This command on the File Management menu will prompt for the name
  416. of an ASCII text file to write out all marked lines from the
  417. current window to.
  418.  
  419. This command will write out the entire line if any part of it is
  420. marked.  It is not like cut and paste commands that work with
  421. only the letters that are marked.
  422. $xio_nmopmt 01 03 09 65 Enter File Name
  423. 014675 09 01 03
  424. 01 21 34 01 we filewrite
  425. 03 28 19 01 we filepath
  426. 07 39 14 01 we pickfile
  427. Enter the name of a file to write out all marked lines from the
  428. current window to.  Unlike file name prompts for files to read,
  429. the name entered here will NOT be searched for in other
  430. directories.  If no directory is included in the name then it
  431. will be written in the current MS-DOS directory.
  432.  
  433. You may enter a wildcard to display a directory list matching
  434. that wildcard.  You can either select one of those files to write
  435. to, or enter the name of a new file.
  436. $pickfile 01 00 10 64 Directory List Window
  437. 015207 10 00 00
  438. Use the arrow keys and "Enter" to select a file.  You can also
  439. use "PgUp" and "PgDn" to move a page at a time through the list.
  440. If you pick a directory name from the list WE will pop up a new
  441. window with that directory in it.  The following function keys
  442. are available:
  443.  
  444.        F2 - Enter a new wildcard.
  445.        F3 - Enter a new directory name.
  446.        F4 - Enter the name of a file to create.
  447.  
  448. $fileprint 01 01 03 62 Print File
  449. 015688 03 01 01
  450. 01 21 20 01 we filemenu
  451. This command on the File Management menu will print the entire
  452. contents of the current window to printer LPT1:.  The file is
  453. printed verbatim.
  454. $fileprintpg 01 03 08 65 Print File with Pagination
  455. 015993 08 01 03
  456. 01 21 20 01 we filemenu
  457. 05 05 10 01 we configop_pagelength
  458. 05 30 18 01 we configfiles
  459. This command on the File Management menu will print the entire
  460. contents of the current window to printer LPT1: and insert a page
  461. number at the bottom of each page.  The default page length is 66
  462. lines, but this can be changed (usually for laser printers) with
  463. the pagelength option in the configuration file.
  464.  
  465. You will be prompted for the indent from the left margin to use
  466. when printing the file.
  467. $windowmenu 01 02 03 64 Window Management Menu
  468. 016516 03 01 02
  469. 01 37 08 01 we windowcommands
  470. 03 34 09 01 we menu
  471. The Window Management menu contains commands to control the size
  472. and other characteristics of the editing windows.  The Window
  473. Management menu is listed on the Main menu.
  474. $windowcommands 01 06 17 65 Window Management Commands
  475. 016927 17 01 06
  476. 02 28 22 01 we windowmenu
  477. 03 01 20 01 we ctrl_x
  478. 09 09 09 01 we zoommode
  479. 10 09 11 01 we hiddenwindows
  480. 11 09 11 01 we lockedwindows
  481. 12 09 25 01 we nextunlocked
  482. These commands are used to manipulate editing windows.  All these
  483. commands are listed on the Window Management menu.  Many are also
  484. special key commands.
  485.  
  486.         Go to next window (F6)
  487.         Go to previous window (Shift/F6)
  488.         Remember current window
  489.         Go back to remembered window
  490.         Zoom mode on/off (^X+^Z)
  491.         Hide/unhide window when not zoomed (^X+^H)
  492.         Lock/unlock window on screen (^X+^L)
  493.         Show next unlocked window (^X+^U)
  494.         Unhide/unlock all windows
  495.         Increase window size (F5)
  496.         Decrease window size (Shift/F5)
  497.         Make all windows equal size
  498.  
  499. $zoommode 01 01 10 65 Zoom Mode
  500. 017629 10 01 01
  501. 10 25 11 01 we status
  502. When WE is in "zoom" mode only the current window will be
  503. displayed, and it will be expanded to take up the entire screen.
  504. The unzoomed sizes of the windows are not lost, and will be
  505. restored when zoom mode is turned off.
  506.  
  507. Zoom mode is turned on and off with the ^X+^Z command.
  508.  
  509. You will know WE is in zoom mode when the current window takes up
  510. the whole screen, and the "(Z)" indicator appears next to the
  511. window file name in the status line.
  512. $hiddenwindows 01 02 09 65 Hidden Windows
  513. 018191 09 01 02
  514. 02 47 09 01 we zoommode
  515. 08 25 11 01 we status
  516. When a window is marked as "hidden" with the ^X+^H command it
  517. will not appear on the screen unless WE is in zoom mode and the
  518. hidden window is the current window.  You will have to use F6 or
  519. a similar command to search through the windows to find the
  520. hidden window after switching to zoom mode.
  521.  
  522. Hidden windows are marked with an "(H)" indicator next to the
  523. window file name in the status line when you look at them in zoom
  524. mode (which is the only time you will see them, of course...)
  525. $lockedwindows 01 02 18 65 Locked Windows
  526. 018798 18 01 02
  527. 04 01 11 01 we status
  528. 14 32 25 01 we nextunlocked
  529. When window(s) are "locked" onto the screen they remain in place
  530. while "unlocked" windows take turns being displayed in whatever
  531. screen space is left over.  Locked windows display "(L)" in the
  532. status line.
  533.  
  534. Locked windows are useful when you have one or two windows you
  535. are actively working on, and a list of other windows that you are
  536. only looking at occasionally for reference.  This keeps the
  537. screen from becoming cluttered with too many windows.
  538.  
  539. To set up locked windows first "unzoom".  Then open at least one
  540. of the files you won't want to lock.  This is to hold space on
  541. the screen for unlocked windows.  Then lock the windows you want
  542. with ^X+^L.  Then use ^X+^U to show each unlocked window.
  543.  
  544. Once locking is set up you may use any of the other window
  545. commands to zoom, unzoom, change window sizes, etc.  Any new
  546. windows you open will be unlocked.
  547. $nextunlocked 01 01 04 65 Show Next Unlocked Window
  548. 019774 04 01 01
  549. 01 15 06 01 we lockedwindows
  550. Once you have locked one or more windows, then the first time you
  551. use ^X+^U the first unlocked window will be displayed in whatever
  552. unlocked space is left over.  You can display the other unlocked
  553. windows one at a time by using ^X+^U again.
  554. $status 01 03 11 65 Status Line
  555. 020157 11 01 03
  556. 04 43 06 01 we hiddenwindows
  557. 05 44 06 01 we lockedwindows
  558. 11 43 12 01 we statusflags
  559. The status line above each window shows a variety of things
  560. about that window.  The name of the file shows at the left,
  561. followed by "(new)" if the file is newly created by this editing
  562. session.  "(H)" is shown if the window is hidden (and in zoom
  563. mode), and "(L)" is shown if the window is locked.
  564.  
  565. The two numbers at the far right are the row and column where the
  566. cursor is positioned in the file, and the number in parentheses
  567. is the number of lines in the file.
  568.  
  569. To the left of the line count is a set of status flags.
  570. $statusflags 01 07 13 64 Status Line Flags
  571. 020940 13 01 07
  572. 01 38 18 01 we status
  573. 07 07 11 01 we insmode
  574. 08 17 22 01 we paraformat
  575. 09 07 46 01 we autoblankline
  576. 10 14 21 01 we autoindent
  577. 11 13 21 01 we autoindent
  578. 12 07 23 01 we markcursormove
  579. To the left of the line count in the window status line is a
  580. blank area where several status flags can appear.  The following
  581. status flags are defined.  If a flag does not appear then the
  582. associated condition is not true.
  583.  
  584.   * - The file has been changed.
  585.   I - Insert mode is active (otherwise typeover mode).
  586.   P - Automatic paragraph reformatting is active.
  587.   B - Automatically add blank line below after ENTER.
  588.   > - Normal indenting after ENTER enabled.
  589.   S - Smart indenting after ENTER enabled.
  590.   M - Cursor movement marking enabled for cut and paste.
  591.  
  592. $insmode 01 01 13 64 Insert and Typeover Modes
  593. 021606 13 01 01
  594. 10 12 19 01 we statusflags
  595. When you type text into WE it can be handled in two different
  596. ways.  If WE is in "insert" mode a space will be opened at the
  597. cursor to receive the text as you type it in, in other words
  598. everything after the cursor will be shifted to the right to make
  599. room.  If WE is not in insert mode it is in "typeover" mode,
  600. where new text simply types over the old text and replaces it.
  601. WE is normally in insert mode.
  602.  
  603. You can tell if WE is in insert mode by looking for the letter
  604. "I" in the window status flags.
  605.  
  606. Insert versus typeover mode is selected separately for each
  607. window.
  608. $paraformat 01 03 15 65 Paragraph Formatting
  609. 022342 15 01 03
  610. 01 42 22 01 we paramargins
  611. 07 35 22 01 we editset_autopfmt
  612. 08 04 23 01 we settingmenu
  613. WE lets you format paragraphs by setting left and right margins
  614. and an indent for the first line.  You can also set the tab size
  615. at the same time, and tell WE to add only one blank after a "."
  616. instead of the normal two.
  617.  
  618. Reformat a paragraph at any time by pushing ^P.  If auto
  619. formatting is turned on with the "Auto format paragraphs" command
  620. on Edit Mode Settings menu then WE will format the paragraph for
  621. you as you type it in.
  622.  
  623. WE recognizes several different types of paragraph separators.
  624. It recognizes blank lines, indented lines, and lines that begin
  625. with "$", ".", "#" or "*".  A "$" followed by a digit will not
  626. be treated as a paragraph separator (because that is how dollars
  627. are specified).
  628. $autoblankline 01 05 14 65 Add Blank Line After ENTER Key
  629. 023269 14 01 05
  630. 02 10 04 01 we settingmenu
  631. 04 01 05 01 we toggleoptions
  632. 10 27 15 01 we smartindent
  633. 13 44 09 01 we enter
  634. 14 01 26 01 we kcdfile
  635. The "Add line below after ENTER key" option on the Edit Mode
  636. Settings menu will cause WE to insert a blank line below the
  637. current line when you push the ENTER key.  Using this same option
  638. again will turn this mode off.
  639.  
  640. This mode is very handy when you are typing in lots of new text
  641. and want the ENTER key to automatically create space for the next
  642. line.
  643.  
  644. This option combined with smart indenting makes it very easy to
  645. type in "C" source code.
  646.  
  647. You may also configure the behavior of the ENTER key in the
  648. WE.KCD key definition file.
  649. $autoindent 01 03 13 65 Automatic Indenting
  650. 023967 13 01 03
  651. 04 50 07 01 we smartindent
  652. 09 21 12 01 we autoindentsafe
  653. 13 15 23 01 we settingmenu
  654. When auto indenting mode is turned on the cursor automatically
  655. moves in to indent the following line each time ENTER is pushed.
  656. There are actually two auto indenting modes.  "Normal" auto
  657. indenting just indents to match the line above.  "Smart" auto
  658. indenting is much more sophisticated, performing some simple
  659. syntax checking of "C" source code to figure out the correct
  660. indent.
  661.  
  662. Auto indenting will never change the indenting of a line you have
  663. already typed in.
  664.  
  665. The auto indent mode is selected with the "Set auto indent mode"
  666. option on the Edit Mode Settings menu.
  667. $autoindentsafe 01 00 10 64 Auto Indent Safety
  668. 024615 10 00 00
  669. Auto indenting will not change the indent of any line containing
  670. non-whitespace characters.  It will instead attempt to position
  671. the cursor at what it considers to be the correct indent in the
  672. existing line.  It will not move the cursor in past the leftmost
  673. non-whitespace character on the line.
  674.  
  675. The actual algorithm used by ALL auto indenting is to first
  676. position the cursor as described above, and add more blanks to
  677. reach the correct indent only if it reaches the end of line and
  678. hasn't encountered any non-whitespace characters.
  679. $smartindent 01 06 13 63 Smart Auto Indenting
  680. 025402 13 01 06
  681. 01 07 14 01 we autoindent
  682. 01 32 22 01 we smartindentlogic
  683. 09 16 18 01 we configfiles
  684. 12 22 13 01 we insbracepair
  685. 12 42 16 01 we insclosingbrace
  686. 13 23 29 01 we autoblankline
  687. Smart auto indenting uses some simple syntax analysis to
  688. determine the proper indent for a line of "C" source code.
  689. It recognizes two different indents - the indent to apply to
  690. statements following control statements such as "if()" and
  691. "for()", and the indent to apply to statements enclosed by {}
  692. braces.  It will both indent and outdent as required.
  693.  
  694. Both indents default to 1 column.  These values may be modified
  695. by editing the configuration file.
  696.  
  697. Smart indenting is designed to work hand in hand with the
  698. commands to insert a brace pair {} and a trailing brace }, and
  699. the ENTER key mode to automatically add blank lines.
  700. $smartindentlogic 02 02 11 65 Smart Indenting Logic
  701. 026190 11 00 00
  702. 026805 07 01 02
  703. 02 11 17 02 we insbracepair
  704. 02 35 20 02 we insclosingbrace
  705. Smart auto indenting does not perform a complete syntax analysis
  706. of your source code, instead it attempts to recognize "C"
  707. statements in the two lines above the line being indented.
  708.  
  709. In simplied form: If the line above contains a "C" control
  710. statement or begins with a "{" or "}" then the appropriate indent
  711. or outdent is applied.  Otherwise the second line above is
  712. checked to see if it looks like the first line is a one line
  713. indent caused by a simple statement following a control
  714. statement, such as "if() (newline) return;".  If none of these
  715. apply then the line is indented to match the line above.
  716. This logic works much better if compound statements are built
  717. with the "Insert brace pair" and "Insert closing brace" commands,
  718. particularly if you indent statements inside a {} brace pair.
  719. This is because the indent of a line containing a closing brace
  720. is not determined by the lines above, it is determined by the
  721. simple fact that it is a closing brace - and smart indenting has
  722. to decide on an indent before you type anything on the line!
  723. $toggleoptions 01 00 09 65 Dual Purpose Menu Options
  724. 027325 09 00 00
  725. Menu options controlling modes that can be turned on and off work
  726. a little differently from other menu options.  Each time you use
  727. the option it will switch the mode to the other setting, so that
  728. it has the opposite effect each time you use it.  The wording of
  729. options like this is changed to reflect the current setting of
  730. the mode it controls, so you can tell what the option will do
  731. each time you use it.  For example, an option might say "Turn
  732. mode X on" or "Turn mode X off" depending on whether mode X is
  733. currently on or off.
  734. $ctrl_x 01 01 14 64 Special Key Commands
  735. 027949 14 01 01
  736. 14 01 19 01 we kcdfile
  737. There are many WE commands available both as menu options and
  738. special key commands.  Special key commands are commands entered
  739. without a menu.  They are either function keys, or keys combined
  740. with "modifier" keys "Shift", "Ctrl" (referred to as "^"), or
  741. "Alt".
  742.  
  743. Special key commands can be single input commands, like F2,
  744. Shift/F2 or ^P, or double input commands, like ^X+^O or ^X+^P.
  745.  
  746. If a menu option has an equivalent special key command that
  747. command will be listed in parentheses at the end of the option.
  748.  
  749. Key choices for special key commands are defined by the
  750. key definition file.
  751. $searchmenu 01 02 03 65 Search and Replace
  752. 028664 03 01 02
  753. 01 38 08 01 we searchcommands
  754. 03 46 09 01 we menu
  755. The Search and Replace menu contains commands lets you search for
  756. (and optionally replace) words or strings of letters in the file.
  757. The Search and Replace menu is listed on the Main menu.
  758. $searchcommands 01 03 15 65 Search and Replace Commands
  759. 029012 15 01 03
  760. 01 46 16 01 we searchwordstring
  761. 03 05 11 01 we searchmenu
  762. 03 44 20 01 we ctrl_x
  763. These commands are used to search or replace words or strings in
  764. the text of an editing window.  All these commands are listed on
  765. the Search menu, and some of them are also special key commands.
  766.  
  767. You can search for an exact match to the capitalization you
  768. enter, or ignore capitalization when searching.
  769.  
  770. The "replace" commands substitute new text for each word or
  771. string found.  You will be asked to verify each change first.
  772. You can answer "Yes" or "No", or "All" to replace all the rest of
  773. the matches without asking.
  774.  
  775. Searching and replacing always starts at the cursor, so if you
  776. want to search the entire file make sure you move to the top
  777. first.
  778. $searchwordstring 01 00 07 65 Words vs Strings
  779. 029745 07 00 00
  780. Search or replacing "words" means looking for sequences of
  781. characters bounded by blanks or punctuation marks.  Looking for
  782. "strings" means any occurence of the text being searched for,
  783. regardless of what it is bounded by.
  784.  
  785. For instance, doing a word search for "at" won't find "that".
  786. Doing a "string" search for "at" would find "that", "state", etc.
  787. $cutpastemenu 01 02 04 65 Cut and Paste Menu
  788. 030220 04 01 02
  789. 01 33 08 01 we cutpastecommands
  790. 04 54 09 01 we menu
  791. The Cut and Paste menu contains commands to mark sections of text
  792. and then do things such as delete, move, or make a copy them.
  793. The parts of the file you have marked will appear highlighted on
  794. the screen.  The Cut and Paste menu is listed on the Main menu.
  795. $cutpastecommands 01 05 09 62 Cut and Paste Commands
  796. 030690 09 01 05
  797. 03 38 18 01 we cutpastemenu
  798. 04 01 23 01 we blockmenu
  799. 06 10 28 01 we markcommands
  800. 07 10 35 01 we cutpasteall
  801. 08 10 34 01 we blockedit
  802. These commands do various things to mark sections of text and
  803. perform operations on them.  These commands are divided into
  804. three groups.  All are listed on the Cut and Paste menu or the
  805. Block Manipulation menu.
  806.  
  807.          Commands to mark/unmark text
  808.          Commands to work on ALL marked text
  809.          Commands to work on a marked block
  810.  
  811. $cutpasteall 01 06 10 65 Commands to Work on ALL Marked Text
  812. 031290 10 01 06
  813. 02 22 26 01 we markunique
  814. 04 28 16 01 we markclearall
  815. 05 34 18 01 we cutpastemenu
  816. 07 12 18 01 we cutpaste_del
  817. 08 12 26 01 we cutpaste_mov
  818. 09 12 35 01 we cutpaste_cpy
  819. These commands work on ALL the marked text in a window.  Remember
  820. that because of WE's unique way of marking text you can have bits
  821. of marked text scattered all over a file.  If you're not sure
  822. what's marked it's best to clear everything and re-mark it.  All
  823. these commands are listed on the Cut and Paste menu.
  824.  
  825.            Delete marked text
  826.            Move marked text to cursor
  827.            Copy marked text and leave original
  828.  
  829. $cutpaste_del 01 00 03 65 Delete Marked Text
  830. 031792 03 00 00
  831. This command deletes all marked text from the current window.  If
  832. all characters on a line are marked then the entire line is
  833. deleted instead of leaving a blank line.
  834. $cutpaste_mov 01 01 03 63 Move Marked Text to Cursor
  835. 032062 03 01 01
  836. 03 42 17 01 we cutpaste_eol
  837. This command will move all marked text in the current window to
  838. after the cursor.  The original text is deleted, only the copy
  839. remains.  Line breaks in the marked text will be preserved.
  840. $cutpaste_cpy 01 01 03 64 Copy Marked Text and Leave Original
  841. 032361 03 01 01
  842. 03 27 16 01 we cutpaste_eol
  843. This command will insert at the cursor a copy of all marked text
  844. in the current window.  The original text is unaffected.  Line
  845. breaks in the marked text will be repeated in the new text.
  846. $cutpaste_eol 01 02 17 65 Line Breaks in Marked Text
  847. 032681 17 01 02
  848. 01 01 04 01 we cutpaste_mov
  849. 01 10 04 01 we cutpaste_cpy
  850. Move and Copy do different things with entire marked lines and
  851. bits of marked text within a line.  Mostly it works intuitively:
  852. When entire lines are marked, entire lines are inserted at the
  853. cursor.  When bits of a line are marked, just the characters are
  854. inserted, and no new lines created.
  855.  
  856. The only thing to be careful of is to position the cursor at the
  857. beginning of a line before moving or copying entire marked lines.
  858.  
  859. The only time results can be confusing is when pieces of several
  860. adjacent lines are marked.  Here is the actual method WE uses:
  861. Any time move or copy reads a line of text that is entirely
  862. marked, a line break is added at the destination after the line
  863. is inserted.  A line break is also inserted when the last
  864. character on a line is marked and anything on the next line is
  865. marked.  All other marked text is inserted at the cursor with no
  866. line breaks.
  867. $markcommands 01 06 20 65 Marking and Unmarking Text
  868. 033810 20 01 06
  869. 03 19 42 01 we markunique
  870. 08 15 18 01 we markline
  871. 09 15 23 01 we markchar
  872. 10 15 27 01 we markcursormove
  873. 11 15 25 01 we markclearall
  874. 13 20 33 01 we markdisplay
  875. Many operations in WE work on "marked" text.  Text can be marked
  876. in many different ways, but it is all treated the same once it is
  877. marked.  WE has a very different way of defining marked text than
  878. most editors and word processors.
  879.  
  880. Here are the basic ways to mark and unmark text:
  881.  
  882.               One line at a time
  883.               One character at a time
  884.               Marking as the cursor moves
  885.               Clear all marks in window
  886.  
  887. Marked text always appears differently on the screen so you will
  888. know what is marked.
  889.  
  890. A line can be marked even if there is no text on it, i.e.  it is
  891. a blank line.  A blank line is marked by using the "mark entire
  892. line" command.  Unfortunately, there is no visual clue that such
  893. a line has been marked.  You simply have to remember that you
  894. marked it.
  895. $markdisplay 01 00 05 65 Displaying Marked Text
  896. 034686 05 00 00
  897. On color screens marked text appears as white letters instead of
  898. the normal black, on a darker blue background instead of the
  899. normal very light blue.  On monochrome screens the marked text is
  900. displayed in reverse video, i.e.  black letters on a white
  901. background instead of the other way around.
  902. $markunique 01 00 11 65 WE Marked Text
  903. 035043 11 00 00
  904. Most editors and word processors use "beginning" and "ending"
  905. markers to "enclose" text that is marked.  There is usually only
  906. one pair of markers, so you can only have ONE piece of marked
  907. text at any time.
  908.  
  909. WE doesn't do this.  WE marks text character by character, with
  910. no beginning and ending markers.  This allows any bits of text to
  911. be marked, anywhere in the file.  It can be extremely convenient
  912. to mark pieces of text all through a file and then write them all
  913. out to a file, copy them somewhere else in the file, delete them,
  914. whatever.
  915. $markline 01 00 16 65 Marking/Unmarking One Line
  916. 035666 16 00 00
  917. Push the F2 key to mark the entire line that the cursor is on.
  918. The line will be marked and redisplayed.  If the current line is
  919. already entirely marked then the cursor will first move down to
  920. the next line.  This allows you to conveniently mark several
  921. lines in a row by pushing F2 several times.
  922.  
  923. To unmark everything on a line move the cursor to that line and
  924. push Shift/F2.  This will unmark and redisplay the line even if
  925. only part of the line was marked.
  926.  
  927. If you push Shift/F2 on a line which has nothing marked, WE will
  928. look first at the line above, and then the line below, to see if
  929. either one has any text marked.  If it finds any it will move the
  930. cursor to that line and unmarked it.  This allows you to push
  931. Shift/F2 several times in a row to unmark several lines without
  932. having to stop and move the cursor between each one.
  933. $markchar 01 01 07 65 Marking/Unmarking One Character
  934. 036615 07 01 01
  935. 02 14 12 01 we markline
  936. Marking and unmarking single characters is very similar to doing
  937. the same for entire lines.  The F3 and Shift/F3 keys are used
  938. instead of F2 and Shift/F2.
  939.  
  940. F3 marks the character at the cursor and moves right one
  941. character.  Shift/F3 unmarks the current character, moving left
  942. or right one column first if the current character is not marked.
  943. $markcursormove 01 02 14 65 Marking as the Cursor Moves
  944. 037096 14 01 02
  945. 02 30 18 01 we cutpastemenu
  946. 08 31 17 01 we statusflags
  947. The cursor can be used as a "marking pen" to mark text as it
  948. moves.  Three options on the Cut and Paste menu control this:
  949.  
  950.          Mark letters as cursor moves
  951.          Don't mark letters as cursor moves
  952.          Switch cursor movement marking mode
  953.  
  954. The letter "M" appears in the status line flags when cursor
  955. movement marking is enabled.  When it is enabled the arrow keys,
  956. PgUp, and PgDn will mark text as they move the cursor.
  957.  
  958. Other actions resulting in cursor movement, such as searching or
  959. typing text, will not cause text to be marked.  Only explicit use
  960. of these keys will have that effect.
  961. $markclearall 01 01 04 65 Clear All Marks
  962. 037800 04 01 01
  963. 01 48 18 01 we cutpastemenu
  964. The "Clear all marks in window" command on the Cut and Paste menu
  965. will clear all marks from text in the current window.  This is a
  966. good safety precaution if you aren't sure whether you've left
  967. bits of marked text scattered about the file.
  968. $miscmenu 01 05 09 65 Miscellaneous Menu
  969. 038237 09 01 05
  970. 01 39 09 01 we menu
  971. 05 09 34 01 we searchfiles
  972. 06 09 22 01 we dosshell
  973. 07 09 20 01 we insbracepair
  974. 08 09 23 01 we insclosingbrace
  975. The Miscellaneous menu (listed on the Main menu) contains options
  976. that don't fit anywhere else.  This includes the following
  977. options, as well as others:
  978.  
  979.         Search wildcard file list for text
  980.         Temporary MS-DOS shell
  981.         Insert brace pair...
  982.         Insert closing brace...
  983.  
  984. $paramargins 01 02 03 62 Paragraph Margins
  985. 038652 03 01 02
  986. 01 41 20 01 we paraformat
  987. 03 01 23 01 we settingmenu
  988. The margins and other settings used for paragraph formatting
  989. are set by the "Margins and Formatting Options" command on the
  990. Edit Mode Settings menu.
  991. $configfiles 01 05 16 65 Configuration Files
  992. 039039 16 01 05
  993. 10 03 23 01 we configop_path
  994. 11 03 25 01 we configop_pagelength
  995. 12 03 23 01 we configop_controlindent
  996. 13 03 21 01 we configop_braceindent
  997. 15 44 08 01 we configoptions
  998. WE reads a file named "WE.CFG" to find configuration information.
  999. WE first looks in the current directory for this file, then in
  1000. looks in the MS-DOS search path.
  1001.  
  1002. The configuration file is an ASCII text file.  Each line begins
  1003. with a keyword that determines what type of line it is.  The
  1004. keyword can be either upper or lower case.  The following
  1005. keywords are defined:
  1006.  
  1007.   path <globalsearchpath>
  1008.   pagelength <linesperpage>
  1009.   controlindent <columns>
  1010.   braceindent <columns>
  1011.  
  1012. Some configuration file information can be modified inside WE for
  1013. the current editing session.
  1014. $configop_path 01 01 11 64 Global Search Path
  1015. 039713 11 01 01
  1016. 03 20 11 01 we filepath
  1017. path <globalsearchpath>
  1018.  
  1019. Defines the global search path used when opening files to create
  1020. new windows.  <globalsearchpath> is a list of directory names
  1021. separated by semicolons.  No global search path is used if none
  1022. is defined here.
  1023.  
  1024. Example:
  1025.  
  1026.   path c:\borlandc\include;c:\myhdrs
  1027.  
  1028. $configop_pagelength 01 00 12 65 Printer Page Length
  1029. 040077 12 00 00
  1030. pagelength <linesperpage>
  1031.  
  1032. Defines the number of lines of text that will fit on a printer
  1033. page.  The default value for this is 66, which is correct for
  1034. most printers.  The common exception is laser printers and inkjet
  1035. printers, which can't print at the very top and very bottom of
  1036. the page. The usual setting for these is 60.
  1037.  
  1038. Example:
  1039.  
  1040.   pagelength 60
  1041.  
  1042. $configop_controlindent 01 01 10 65 Control Statement Smart Indent
  1043. 040556 10 01 01
  1044. 05 01 15 01 we smartindent
  1045. controlindent <columns>
  1046.  
  1047. Defines the number of columns to indent the statement below a "C"
  1048. control statement, such as "if()", "for()" or "switch()", during
  1049. smart indenting.  The default value is 1.
  1050.  
  1051. Example:
  1052.  
  1053.   controlindent 3
  1054.  
  1055. $configop_braceindent 01 01 10 65 {} Compound Statement Smart Indent
  1056. 040909 10 01 01
  1057. 04 37 15 01 we smartindent
  1058. braceindent <columns>
  1059.  
  1060. Defines the number of columns to indent inside a pair of "C"
  1061. compound statement braces {} during smart indenting.  The default
  1062. value is 1.
  1063.  
  1064. Example:
  1065.  
  1066.   braceindent 0
  1067.  
  1068. $kcdfile 01 02 18 65 Key Definition File
  1069. 041217 18 01 02
  1070. 04 21 29 01 we kcdline
  1071. 14 05 09 01 we kcdenter
  1072. All the actions produced by keystrokes in WE are controlled by an
  1073. ASCII text file called the "Key definition file".  This allows
  1074. you to completely reconfigure the keyboard to suit your tastes.
  1075. Each line of WE.KCD defines the action of one key or key
  1076. combination.
  1077.  
  1078. The key definition file is WE.KCD.  It must be present in either
  1079. the current directory or the MS-DOS search path.  The current
  1080. directory is searched first.
  1081.  
  1082. For convenience and safety, a backup copy of the standard WE.KCD
  1083. is supplied as WENOR.KCD.
  1084.  
  1085. The ENTER key is a somewhat special case.
  1086.  
  1087. The menus always show the correct keystroke commands after the
  1088. menu options, but the help messages do not adapt this way.  The
  1089. F1 key is permanently assigned to displaying help.
  1090. $kcdline 01 02 18 68 Key Definition Line
  1091. 042079 18 01 02
  1092. 01 18 19 01 we kcdfile
  1093. 01 51 15 01 we kcdkeyname
  1094. Each line in the key definition file contains the name of the key
  1095. (or double key) being defined, followed by a pre-defined 3 letter
  1096. code specifying the action to take when those key(s) are pressed.
  1097. One or more blanks are required between items on the line.
  1098. Comments can be added to the end of a line by prefixing them with
  1099. a "!" character.  Lines that are blank or contain only a comment
  1100. are ignored.  For example:
  1101.  
  1102.    Back           dpv  ! Delete previous character
  1103.    Home           lfx  ! Move cursor to beginning of line
  1104.    ^E             dte  ! Delete from cursor to end of line
  1105.    Shift/F6       spw  ! Switch to previous window
  1106.    ^X   ^O        opn  ! Open file and load into new window
  1107.    ^X   ^F        ser  ! Search for string with exact capitalization
  1108.  
  1109. All the 3 letter codes are described in file WECMD.KCD, which is
  1110. a normal key definition file with full comments and all the
  1111. keystrokes omitted.
  1112. $kcdkeyname 01 00 16 65 Key Names
  1113. 043059 16 00 00
  1114. Most key names are self-evident.  All the standard ones are used
  1115. in WENOR.KCD, so look in that file for reference.
  1116.  
  1117. Combination keys (shift, alt and ctrl) are formed by prefixing
  1118. the normal key with "Shift/", "Ctrl/", "^" (same as /Ctrl), or
  1119. "Alt/".  No spaces are allowed between the parts.
  1120.  
  1121. It does not matter what capitalization you use.
  1122.  
  1123. Some combination keystrokes seem sensible, but the keyboard is
  1124. actually incapable of producing them through the BIOS.  An
  1125. example of this is "Ctrl/Tab".  WE will give you an error message
  1126. at program startup if it finds such a key in WE.KCD.  Briefly,
  1127. you can use function keys by themselves, shifted, ctrl'ed, or
  1128. alt'ed, alt keys A-Z and 0-9, and a variety of named keys,
  1129. sometimes ctrl'ed.
  1130. $kcdenter 01 02 11 65 Choosing an Action for the ENTER key
  1131. 043931 11 01 02
  1132. 08 17 09 01 we enter
  1133. 08 34 19 01 we kcdfile
  1134. Unlike other keys with an obvious intent, like the arrow keys,
  1135. the ENTER key can plausibly do several different, though similar,
  1136. things.  Does it merely move the cursor?  Does it create a new
  1137. line?  When and how?
  1138.  
  1139. These choices are purely a matter of personal taste.  To
  1140. accomodate this WE supplies several different actions that can be
  1141. assigned to the ENTER key in the key definition file.  The
  1142. standard setting is "ent", which just moves to the next line, but
  1143. there are several other choices which will add a blank line below
  1144. instead under different conditions.
  1145. $cmdlinopts 02 06 15 65 Command Line Options
  1146. 044748 15 01 06
  1147. 045423 09 00 00
  1148. 02 14 10 01 we openspec
  1149. 03 28 16 01 we filepath
  1150. 04 01 18 01 we configfiles
  1151. 06 43 14 01 we pickfile
  1152. 11 01 13 01 we sessionfiles
  1153. 15 34 06 01 we hiddenwindows
  1154. The MS-DOS command to execute WE is just "WE" optionally followed
  1155. by a list of file names separated by spaces.  A window will be
  1156. opened for each file.  The file search path listed in the
  1157. configuration file is searched to find each file.
  1158.  
  1159. If a file name contains a wildcard then a directory list with
  1160. matching files will be displayed to pick from.  If no files names
  1161. are used in the command line then a directory window with the
  1162. contents of the current directory is opened.
  1163.  
  1164. Session files may be used with the "@" character prefix to open
  1165. groups of files.
  1166.  
  1167. If a postfix of "/H" or "/h" is to a file name then the window
  1168. with that file will initially be hidden.
  1169. Example command lines:
  1170.  
  1171.     we
  1172.     we @
  1173.     we @mylist.ses
  1174.     we main.c hdr.h @other.ses
  1175.     we @ hdr.h
  1176.     we lib1.c main.c hdr.h
  1177.  
  1178. $filepath 01 03 18 65 File Search Path
  1179. 045705 18 01 03
  1180. 13 01 18 01 we configfiles
  1181. 16 02 25 01 we configoptions
  1182. 16 43 18 01 we miscmenu
  1183. Any time you open a window in WE to look at a file, WE will check
  1184. to see if a disk or path is specified in the name.  If so then WE
  1185. looks for the file exactly as named, otherwise it looks for it in
  1186. a list of directories called the "File Search Path".  The file
  1187. search path is much like the "PATH=" program search path used by
  1188. MS-DOS to process command names entered at the command prompt.
  1189.  
  1190. There are actually two file search paths checked when a file is
  1191. opened.  The "local path" is specific to the current window, and
  1192. is generally the directory containing the file in that window.
  1193. If the file cannot be found in the local path then the global
  1194. search path is checked.  This path is defined in the WE.CFG
  1195. configuration file read by WE.
  1196.  
  1197. Both of these search paths can be modified while in WE with the
  1198. "Set Configuration Options" option on the Miscellaneous menu.
  1199. Any changes to the global search path will only stay in effect
  1200. for this session in WE.
  1201. $sessionfiles 01 03 19 65 Session Files
  1202. 046809 19 01 03
  1203. 03 11 16 01 we filepath
  1204. 10 01 16 01 we cmdlinopts
  1205. 12 24 27 01 we fileclsall
  1206. Session files are ASCII text files containing a file name on each
  1207. line.  WE will read these files and open a window for each file.
  1208. The usual file search path will be used to try and locate each of
  1209. the files listed in the session file, but not the session file
  1210. itself.
  1211.  
  1212. There are three times where WE will use a session file:
  1213.  
  1214. 1.  If the single character name "@" is listed as a file on the
  1215. DOS command line which invokes WE, then if session file WE.SES
  1216. exists in the current directory WE will use it.  This session
  1217. file is created by the "Close all window and exit" command.
  1218.  
  1219. 2.  Any time you attempt to open a file and prefix the name with
  1220. the "@" character.  This can be done at the DOS command line, or
  1221. when opening a new window while in WE.
  1222.  
  1223. 3.  After files listed on the DOS command line or in WE.SES are
  1224. opened, WE will use session file WEG.SES if it exists.
  1225. $searchfiles 01 01 17 65 Search Wildcard File List for Text
  1226. 047796 17 01 01
  1227. 01 20 18 01 we miscmenu
  1228. This option on the Miscellaneous menu will scan through all files
  1229. matching a wildcard you specify.  The search will look for
  1230. letters, words or phrases that you specify.
  1231.  
  1232. There are a number of options you can use for the search.  You
  1233. can search all subdirectories of the wildcard you specified, you
  1234. can search for whole words only as opposed to sequences of
  1235. letters imbedded in words, and you can search in a case sensitive
  1236. or case insensitive fashion.
  1237.  
  1238. You can also do a "topic keyword" search or a "full file"
  1239. search.  A full file search is just what it sounds like - every
  1240. line of each file is checked.  A topic search will only check
  1241. lines which contain the string "$TOPIC".  The "$TOPIC" must be
  1242. in upper case, unless the search is case insensitive.  "$TOPIC"
  1243. will usually be at the beginning of the line, followed by topic
  1244. keywords which characterize the file it is contained in.
  1245. $configoptions 01 03 08 65 Configuration Options
  1246. 048843 08 01 03
  1247. 01 47 18 01 we miscmenu
  1248. 03 10 18 01 we configfiles
  1249. 04 39 11 01 we filepath
  1250. The "Set configuration options" option on the Miscellaneous menu
  1251. will allow you to look at and change some of the information read
  1252. from the configuration file, as well as configuration information
  1253. for the current window (currently the search path for that
  1254. window).
  1255.  
  1256. "Set configuration options" will not save any changes you make.
  1257. Changes will only last until you leave WE.
  1258. $setcnfpthg 01 00 03 64 Global Search Path
  1259. 049285 03 00 00
  1260. Enter one or more directory names, separated by semicolons.  The
  1261. local search path for the current window will be searched before
  1262. the global search path entered here.
  1263. $setcnfpthl 01 00 04 63 Local Search Path
  1264. 049515 04 00 00
  1265. Enter one or more directory names for the local search path for
  1266. this window, separated by semicolons.  This search path will be
  1267. used before the global search path, when opening windows from
  1268. this window.
  1269. $dosshell 01 01 10 64 Temporary MS-DOS Shell
  1270. 049810 10 01 01
  1271. 01 44 18 01 we miscmenu
  1272. The "Temporary MS-DOS shell" option on the Miscellaneous menu
  1273. will temporarily drop the user out of WE back to the MS-DOS
  1274. command prompt.  Your current work in WE will be preserved until
  1275. you type "exit" at the MS-DOS prompt and return to WE.
  1276.  
  1277. You will have a limited amount of memory to use while at the
  1278. MS-DOS prompt, the exact amount depending on the size of the
  1279. files that are loaded into WE.  You probably will not be able to
  1280. execute major applications from the MS-DOS prompt, but you
  1281. should be able to perform simple file manipulations.
  1282. $settingmenu 01 02 02 63 Edit Mode Settings Menu
  1283. 050479 02 01 02
  1284. 01 46 18 01 we editsettings
  1285. 02 39 09 01 we menu
  1286. The Edit Mode Settings menu contains all the edit mode settings
  1287. commands.  This menu is listed on the Main menu.
  1288. $editsettings 01 06 12 65 Edit Mode Settings Commands
  1289. 050841 12 01 06
  1290. 02 38 23 01 we settingmenu
  1291. 03 05 42 01 we toggleoptions
  1292. 06 11 30 01 we paraformat
  1293. 07 11 30 01 we editset_autopfmt
  1294. 08 11 38 01 we autoblankline
  1295. 09 15 16 01 we autoindent
  1296. These commands either change edit mode settings or display status
  1297. information.  They are listed on the Edit Mode Settings menu.
  1298. The wording and action of some options changes depending on the
  1299. setting of the mode they control.
  1300.  
  1301.           Margins and formatting options
  1302.           (Don't) auto format paragraphs
  1303.           (Don't) add line below after ENTER key
  1304.           Set auto indent mode
  1305.           Other configuration information
  1306.           Display status information
  1307.  
  1308. $editset_autopfmt 01 03 04 65 (Don't) Auto Format Paragraphs
  1309. 051486 04 01 03
  1310. 01 28 23 01 we settingmenu
  1311. 02 31 25 01 we paraformat
  1312. 03 16 29 01 we toggleoptions
  1313. This option, listed on the Edit Mode Settings menu, controls
  1314. whether text is automatically formatted into paragraphs as it is
  1315. typed in.  The wording of the option changes depending on whether
  1316. this mode is enabled or not.
  1317. $blockmenu 01 02 02 58 Block Manipulation Menu
  1318. 051823 02 01 02
  1319. 01 46 13 01 we blockedit
  1320. 02 39 09 01 we menu
  1321. The Block Manipulation menu contains all the block editing
  1322. commands.  This menu is listed on the Main menu.
  1323. $blockedit 01 11 19 65 Block Editing Commands
  1324. 052303 19 01 11
  1325. 02 04 14 01 we block_adjlines
  1326. 02 22 11 01 we markcommands
  1327. 07 01 20 01 we paraformat
  1328. 10 42 23 01 we blockmenu
  1329. 11 33 20 01 we ctrl_x
  1330. 13 09 29 01 we block_inscol
  1331. 14 09 23 01 we block_delcol
  1332. 15 09 45 01 we block_write
  1333. 16 09 26 01 we block_append
  1334. 17 09 40 01 we block_white
  1335. 18 09 32 01 we block_last
  1336. These commands operate on the current "block", which is the set
  1337. of adjacent lines of marked text the cursor is in.  These
  1338. commands restrict themselves to the block the cursor is in if
  1339. there are several marked blocks.
  1340.  
  1341. Several of these commands produce strange results if automatic
  1342. paragraph formatting is enabled when they are used, and line
  1343. lengths are extended past the allowed right margin.
  1344.  
  1345. The following commands are listed on the Block Manipulation menu.
  1346. Many of these commands are also special key commands.
  1347.  
  1348.         Insert blank column at cursor
  1349.         Delete column at cursor
  1350.         Write string or number in each line at cursor
  1351.         Append string to each line
  1352.         Strip trailing whitespace from each line
  1353.         Trim last character on each line
  1354.  
  1355. $block_adjlines 01 00 07 65 Adjacent Lines in a Block
  1356. 053160 07 00 00
  1357. If any part of a line is marked it is counted as part of a block,
  1358. along with any adjacent lines that are also marked.  It does not
  1359. matter how much of each line is marked, if any part is marked the
  1360. line is included.  If the cursor is not on a marked line block
  1361. commands will only operate on the current line.  There can be
  1362. several different marked blocks in a file at the same time,
  1363. because one or more completely unmarked lines separate them.
  1364. $block_inscol 01 01 03 63 Insert Blank Column at Cursor
  1365. 053710 03 01 01
  1366. 01 06 21 01 we blockedit
  1367. This block editing command will insert a blank column at the
  1368. cursor position in a block of adjacent marked lines.  If a line
  1369. does not extend to the cursor column it is not changed.
  1370. $block_delcol 01 01 03 65 Delete Column at Cursor
  1371. 053988 03 01 01
  1372. 01 06 21 01 we blockedit
  1373. This block editing command will delete a column at the cursor
  1374. position in a block of adjacent marked lines.  If a line does not
  1375. extend to the cursor column it is not changed.
  1376. $block_write 01 02 12 65 Write String or Number in Each Line at Cursor
  1377. 054305 12 01 02
  1378. 01 06 21 01 we blockedit
  1379. 06 41 23 01 we insmode
  1380. This block editing command will write a string or incrementing
  1381. number at the same column in each line of a block of adjacent
  1382. marked lines.  The column position of the cursor is used as the
  1383. column position to write in.
  1384.  
  1385. The string or number will be written in insert or typeover mode
  1386. depending on the mode currently set for the window.  If a number
  1387. is written then you may specify the beginning number and how much
  1388. to increment it between lines.
  1389.  
  1390. If a line in the block is not long enough to reach the column to
  1391. write to then that line is not changed.
  1392. $block_append 01 01 02 61 Append String to Each Line
  1393. 054965 02 01 01
  1394. 01 06 21 01 we blockedit
  1395. This block editing command will append a string to the end of
  1396. each line in a block of adjacent marked lines.
  1397. $block_white 01 01 02 63 Strip Trailing Whitespace from each Line
  1398. 055186 02 01 01
  1399. 01 06 21 01 we blockedit
  1400. This block editing command will delete trailing whitespace from
  1401. each line in a block of adjacent marked lines.
  1402. $block_last 01 01 02 65 Trim Last Character on Each Line
  1403. 055400 02 01 01
  1404. 01 06 21 01 we blockedit
  1405. This block editing command will delete the last character on each
  1406. line in a block of adjacent marked lines.
  1407. $autoindentmenu 01 01 01 61 Auto Indent Menu
  1408. 055600 01 01 01
  1409. 01 41 11 01 we autoindent
  1410. This menu contains options to pick the "auto indent" setting.
  1411.