Selection commands
The current selection is a highlighted area of the text in the open file. When text is selected, many commands operate differently upon the selected text than they would ordinarily. These differences are documented in the individual command descriptions. The MULTI Editor supports two selections:
- Text that is part of the primary selection can be manipulated by many commands, such as the Clipboard Commands, Indentation Commands, and Drag-and-Drop Commands. The primary selection is replaced by any typed or inserted text, and is cancelled by any Navigation Command. One end of the primary selection, the cursor-end, is always at the cursor's current location, and may be either the start or the end of the selection. By default, a primary selection is created by dragging over text with the left mouse button.
- Text that is part of the secondary selection can be replaced using either the SecondarySelectionReplace or SecondarySelectionReplaceClip commands. Any other non-selection-related MULTI Editor command or keystroke will cancel a secondary selection if it exists. By default, a secondary selection is created by dragging over text with the middle mouse button. When the middle button is released, SecondarySelectionReplace is executed.
The Selection Commands can be used to create or cancel these two types of selections. Commands which don't explicitly mention the secondary selection operate on the primary selection only. With the exception of the SecondarySelectionReplace and SecondarySelectionReplaceClip commands, none of the commands in this section will modify the contents of the open file in any way.
Related topic:
Copyright © 1999, Green Hills Software. All rights
reserved.