USER.CLED - David-SWUSA-RISCOS/YASDOE GitHub Wiki

Return To User Documentation Contents

The CLED Text Editor.

CLED is a simple text editor that can be used from the CLI without the WIMP/Desktop running or from the WIMP as well. CLED is a command driven text editor that is heavily modeled after the AmigaDOS ED text editor in its command set. When ran in the WIMP CLED uses normal windows, and most commands are available through the application menus.

CLED differs from AmigaDOS ED only where needed to be consistent with RISC OS applications, this mostly effects block operations (select, copy, paste, move, yank, etc). When running in the WIMP on YASDOE or on RISC OS CLED does support full Drag and Drop usage.

Normal commands to CLED are entered by pressing escape (puts you in command mode) then entering the command. Again many of these commands have equivalent menu options when running in the WIMP (though not when the WIMP is not running, also not in a taskwindow (when the task can not call the WIMP)). The normal commands (entered after pressing escape) are (not case sensitive):

ESC Then Command
X Quits saving the file.
Q Quits without saving. Prompts for Y to proceed.
OP Opens a file replacing the current file in the current window. Prompts for Y to proceed.
IF Insert another file into the current file at the cursor.
WB Write the selected block to specified file.
SA Save the current file.
SH Show current state of CLED.
U Undo changes to current line.
BS Select block of text.
SB Scroll so that the selected block starts at the top of the window / file display area.
IB Copy selected block to location starting on line following cursor. Equivalent to pressing ctrl+c.
DB Delete selected block.
D Delete current line.
T Scroll to top of file.
B Scroll to bottom of file.
M Scroll to line number.
PD Scroll down one page (window full).
PU Scroll up one page.
S Search for string.
BF Search backwards for string.

More details on each command is below in the Esc Commands section.

Then there are the commands that are accessed by holding down the ctrl key (control) while pressing and releasing another key. These include:

Ctrl+ Command
F3 Save current document.
Spc Start selection (that is space bar).
X Cut selection.
V Copy selection to cursor.
C Move selection to cursor.

TODO: WIP: THIS PAGE STILL BEING CREATED