Previous Next Chapter

ED Menus

ED has two sets of command menu assignments: default and expanded. The default menu assignments are set up by the S:Ed-startup file, which is automatically executed each time you run ED. The S:Ed-startup file is a command file of ED extended mode commands, without the Escape characters. You can edit this file to set up custom menus, as described on page 12-19, or define preprogrammed function key assignments with the Set FN Key menu item.

Enabling Expanded Menus

The expanded command menu assignments can be enabled by renaming or deleting the default S:Ed-startup file. If ED cannot find a file named S:Ed-startup, it opens with the expanded set of menus, providing more options.

Rather than deleting your S:Ed-startup file, we recommend that you rename it as follows:

  1. In the Workbench window, go to the Window menu and select Show All Files.
  2. Double-click on the S drawer icon.
  3. Click on the Ed-startup icon.
  4. Go to the Icons menu and choose Rename.
  5. Delete the name in the Rename requester's New Name text gadget and enter a new name for Ed-startup.
  6. Select OK.

You can also create your own customized file of startup options. Avoid including Quit commands in the S:Ed-startup file since they can cause ED to quit immediately after opening.

The menu items in both the default and expanded menus have the same function regardless of which set you use. All of the ED commands are available through the keyboard using extended mode commands even if they do not appear in any menu.

The following sections describe the menu items found in the expanded menus and their corresponding extended and immediate mode commands. An ellipsis (...) indicates that an argument is required or that a menu item opens a requester or prompt.

Project Menu

The following are the expanded Project menu items:

New

Esc,N,W

Creates a new file, replacing the existing file. The message Edits will be lost -- type Y to confirm: is displayed. Press any key (except Y) to abort the command.

Open...

Esc,O,P...

Opens a file. Specify the file by entering the Path to the file as a properly delimited string. (If slashes appear in the path to a file, do not use the slash as a delimiter.) The message Edits will be lost -- type Y to confirm: reminds you that you are replacing the current file.

Insert File...

Esc,I,F...

Inserts a file into the current file. ED reads into memory the specified file at the point immediately following the current line.

Write block...

Esc,W,B...

Writes the currently marked block to a specified file. ED overwriters any other files with that name and copies the block to the file.

Save

Esc,S,A

Saves the text to the current file, overwriting the existing text in the file. Use Save As to save to a different file. SA followed by Q is equivalent to the X command.

Save As...

Esc,S,A...

Save the text to the specified file name.

Save & Exit

Esc,X

Exits ED, saving the current file to the designated file name. ED writes the text it is holding in memory to the file that was specified when ED was opened and then terminates.

About

Esc,S,H

Shows the current state of the editor. The screen displays information, such as the value of tab stops, current margins, block marks, and the name of the file being edited.

Quit

Esc,Q

Exits ED without saving changes. If you made any changes to the file, ED asks if you want to quit. If you press Y, ED terminates immediately without saving the changes to the file.

Edit Menu

The following are commands used for editing:

Undo Line

Esc,U

Reverses changes made to the current line. However, ED cannot undo a line deletion. Once you have moved from the current line, the U command cannot undo a change.

Start Block
End Block

Esc,B,S
Esc,B,E

Identifies the beginning and end of a block of text. To specify a block of text to be moved, inserted, or deleted, place the cursor on the first line that you want in the block and enter the BS command. Move the cursor to the last line that you want in the block and enter the BE command.

You cannot start or finish a block in the middle of a line.

Show Block

Esc,S,B

Redraws the display so the block is at the top of the screen.

Insert Block

Esc,I,B

Insert a copy of the block after the current line. The block remains defined until you change the text. Use IB to insert copies of the block throughout the document.

Delete Block

Esc,D,B

Deletes a block.

Delete Line

Esc,D
Ctrl+B

Deletes the entire line.

Top Previous Next Chapter