SheerPower® 4GL
A Guide to the SheerPower Language


Previous Contents Index

F.4.5 Delete Keystrokes

Table F-8 Delete
Keystroke Function Performed
delete delete the current selection or current character
backspace delete previous character
gold/F2 delete from cursor to end of word
gold/KP 3 delete from cursor to end of word [including any whitespace]; deleted characters saved in word paste buffer
gold/KP 2 delete from cursor to end of line
gold/ctrl/e delete from cursor to end of line
gold/end delete from cursor to end of line
gold/home delete from cursor to beginning of line
ctrl/u delete from cursor to beginning of line

F.4.6 Formatting Keystrokes

Table F-9 Formatting
Keystroke Function Performed
gold/a align the "=" and ":" in a group of variable assignments
gold/f Program file - wraps long lines of code correctly at the right-margin and inserts "&" at the end of the wrapped line of code. Code is indented accordingly.
gold/f Text file - wrap and fill selected text. If no text is selected, it defaults to the 'current paragraph'.
gold/KP 8 Program file - wraps long lines of code correctly at the right-margin and inserts "&" at the end of the wrapped line of code. Code is indented accordingly.
gold/KP 8 Text file - wrap and fill selected text. If no text is selected, it defaults to the 'current paragraph'.
gold/o organize routines within source code
gold/p generate program template
gold/r generate routine template
gold/s sort current column

F.5 Keystrokes for Movement Within a File

SheerPower has keystrokes which allows quick and easy movement within files. This saves much time when large files are being worked with.

Table F-10 Keystrokes for Movement within a File
Keystroke Function Performed
KP 1 move cursor to next word
F2 move cursor to beginning of next word
ctrl/KP4 move cursor left one word
KP 2 move cursor to the end of line (or next line if already at end of line)
ctrl/e move cursor to end of line (or end of next line if already at end of line)
end move cursor to end of line (or beginning of line if already at end of line, and visa versa)
ctrl/end go to the bottom of the file
ctrl/h move cursor to beginning of line (or beginning of previous line if already at beginning)
home move cursor to the beginning of current line
ctrl/home go to the top of the file
KP 0 move cursor to the beginning of the next line. If at EOF, a new line is started.
F1 move cursor to the beginning of the next line. If at EOF, a new line is started.
KP 7 move cursor one page up
KP 8 move cursor one page down
page down move cursor one page down
gold/page down move cursor to bottom of file
page up move cursor one page up
gold/page up move cursor to top of file
right arrow move cursor right one character
ctrl/right arrow move cursor right one word
left arrow move cursor left one character
ctrl/left arrow move cursor left one word
down arrow move cursor down one line
up arrow move cursor up one line
alt/down arrow prompts for # of lines to move down; moves cursor down that # of lines
alt/up arrow prompts for # of lines to move up; moves cursor up that # of lines
gold/F3 bring up FIND dialog box
gold/KP * bring up FIND dialog box
ctrl/g find next
F3 find next
F11 go to definition-place the cursor on a reference to a routine, then press F11 to go directly to that routine.
F12 show definition-place cursor on a reference to a routine, then press F12 to display the contents of the routine header in a new window.
KP * find next
ctrl/b toggle between current cursor position and previous cursor position
ctrl/f brings up the FIND dialog box
ctrl/m insert/remove bookmark
ctrl/n move cursor to next bookmark
ctrl/p move cursor to previous bookmark
gold/KP 0 insert a blank line before the current line. Move cursor to the blank line

F.6 Search, Find and Replace Keystrokes

If you want to find certain words or phrases within a file, and even replace it throughout an entire file, the following keystrokes will speed up that task enormously.

Table F-11 Search, Find and Replace Keystrokes
Keystroke Function Performed
gold/F3 bring up FIND dialog box
gold/KP * bring up FIND dialog box
F3 find next
gold/ctrl/f puts data into the "find buffer". F3 performs the "find".
ctrl/g find next
KP * find next
ctrl/f brings up the FIND dialog box
Insert toggle between insert and overstrike modes
gold/KP Enter bring up the REPLACE DIALOG BOX
ctrl/m insert/remove bookmark
ctrl/n move cursor to next bookmark
ctrl/p move cursor to previous bookmark
ctrl/b toggle between current cursor position and previous cursor position
alt/down arrow prompts for # of lines to move down; moves cursor down that # of lines
alt/up arrow prompts for # of lines to move up; moves cursor up that # of lines
gold/down arrow convert selection to lower case, skips quoted text
gold/up arrow convert selection to upper case, skips quoted text
F9 expansion key
gold/. (period) toggle select [SEL] mode
ctrl/r restore previous selection

F.7 Keypad Editing Keystrokes

In order to speed up the writing of programs and editing of text, high frequency use tasks have been mapped to the numeric keypad located on the right side of most personal computer keyboards. This allows for extremely fast one hand editing.

KP = keypad. To perform a KP keystroke, just press the keypad number or character indicated for the function you wish to perform. Some of the keystrokes use the 'GOLD' key, which is the [Esc] or [NumLock] key.


Previous Next Contents Index