The Editor Key Mapping

Top  Previous  Next

 

You can manage the list of available editor commands with the Key Mappings tab of the Editor Options dialog. You can add and delete editor commands, assign (or reassign) hot keys for new commands and for built-in ones.

The left column of the list contains command descriptions. Command types, corresponding to the command descriptions, are in the second column. (Command means a built-in ChipProgUSB command; Script ‘XXX’ means an added user-defined command). Two columns on the right specify the hot key combinations to invoke the command, if any.

Element of dialog

Description

Add

Opens the Edit Command dialog for adding a new command to the list and setting up the command parameters.

Delete

Removes a selected user-defined command from the list. Any attempt to remove a built-in command is ignored.

Edit

Opens the Edit Command dialog to change the command parameters. For built-in commands, you can only reassign the hot keys (the Command Description and Script Name boxes are not available).

Edit Script File

Opens the script source file of this command in the Script Source window.

Creating new commands

To create a new command, you should develop a script for it. In fact, you add this script to the editor, not the command. This means that your command is able to perform much more complex, multi-step actions than a usual editor command. Moreover, you can tailor this action for your convenience, or for a specific work task or other need. Your scripts may employ the capabilities of the script language with its entire set of built-in functions and variables, text editor functions and existing script examples.

A script source file is an ASCII file. To execute your command, the editor compiles the script source file. Note that before you can switch to using the script which you have been editing, you must first save it to the disk so that ChipProgUSB can compile it.

Script source files for new commands will reside only in the KEYCMD subdirectory of the ChipProgUSB system folder. Several script example files are available in KEY CMD. For more information about developing scripts, see Script Files.