| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (13 out of 14)

Keystroke Commands

G2 includes a number of keystroke commands for performing a variety of editing tasks.

In the explanations that follow, a word means a sequence of characters delimited by the beginning of the text, the end of the text, a punctuation mark, or one or more spaces, tabs, or line breaks.

Displaying Help

To display a help screen of all keystroke commands:

  1. Open the editor.

  2. Press the Help key or use the Control + / command.

The following figure shows the portion of the help screen related to the editor:


Moving the Cursor

To move the cursor... Use this command...
Right one character
Right Arrow key
Left one character
Left Arrow key
Up one line
Up Arrow key
Down one line
Down Arrow key
Right one word
Alt + f
Left one word
Alt + b
To the start of the text
Control + Home
Alt + <

To the start of the line
Home
Control + <

To the end of the text
Control + End
Alt + >

To the end of the line
End
Control + >


Note: Note that the arrow keys have a different meaning in the context of the editor than in other G2 contexts.

Deleting Text

To delete... Use this command...
Character left
Delete, Backspace, or Rubout keys
Character right
Control + g
Word left
Alt + Delete key or Control + w
Word right
Alt + d
Backward from cursor to beginning of text
Control + x


Note: Note that the Control + g command has a different meaning in the context of the editor than in other G2 contexts.

Inserting Tabs and Line Breaks

You enter a Tab character by pressing the Tab key.

You use one of two commands to insert a line break, depending on the type of editor you are using.

To insert a... Use this command in the standard editor... Use this command in the scrolling editor...
Line break
Control + j or Linefeed key
Return key

Controlling Tab Settings

When you enter a tab in the editor, G2 inserts spaces; G2 does not use preset tab stops.

To control the number of spaces that G2 inserts when using a tab:

Controlling the Editing Session

You use one of two commands to end the editing session, depending on the type of editor that you are using. You can also abort the editing session, and undo and redo by using a keystroke.

To do this... Use this command in the standard editor... Use this command in the scrolling editor...
Accept the text and close the editor
End button or Return key
End button or Control + Return key
Abort the editing session
Cancel button or Control+a
same
Undo
Alt + u
same
Redo
Alt + r
same
Search forwards
Alt + s
same
Search for next occurrence
Alt + n
same
Search backwards
Alt + p
same

Inserting Prompts by using the Keyboard

You can insert text directly from the natural language prompts at the bottom of the workspace by using a keystroke.

To insert... Use this command...
The first prompt
Control + Space Bar
The last prompt
Control + Shift + Space Bar

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (13 out of 14)

Copyright © 1997 Gensym Corporation, Inc.