Issuing editor commands

You can use editor commands to customize your editing environment, search for or change text in your document, or perform many other functions.

 

Running Editor Commands

To issue an editor command:

  1. Press Esc to go to the editor command line.  The command line is located below the editing area.  If the command line is not visible in the current editor view, pressing the Esc key will make it visible;  it will stay visible until focus is returned to the edit area of the window.
  2. Type your editor command on the command line, then press Enter to perform the command.  For example, enter:
    add 1

    to add a new line into the document.

 

Recalling Editor Commands

To recall a previously-used command:

  1. While in the command line, press Up or Down.  Previously used commands will appear in the message window.  The editor saves a number of previously used commands across editing sessions.
  2. Select the command you want to reuse, then press Enter.

 

Implicit Parameter Set/Query

A parameter that does not conflict with the command names available in the current editor view is interpreted as an implicit query or set command for that parameter.  For example, entering:

version 
is equivalent to:
query version 
and will display on the message line the editor version in use.  When additional parameters are specified, the editor will attempt to run the set command.  For example:
hex e1 
is interpreted by the editor as:
set hex e1 
and sets the character at the current cursor location to the character with the specified hexadecimal value.

 

Running Editor Actions

Editor actions are usually associated with keys, mouse events, and menus.  You can also run actions from the command line, using the action command.  This is useful when you are developing your own editor extensions.  For example:

action duplicateLine
will run the duplicateLine action, copying the current line.

Related reference
Default editor commands
Editor parameters
Default editor actions