From http://www.mucow.com/squeak-qref.html

System Key Bindings

Applications that use standard Squeak text container widgets, including System Browsers, Workspaces, File Lists and Transcripts, provide facilities for manipulating the text and providing access to other system functionality. Many of these facilities can be reached by using the red-button menus, but many are more conveniently accessed using special key sequences. Of course, particular applications can use some, all or of none of these. In the following tables, a lower-case or numeric command "key" can be typed by simultaneously pressing the key and the Alt key (on Windows) or the command key (on MacOS). Upper-case keys are typed by simultaneously pressing either Shift-Alt (or Shift-Command) and the indicated key, or ctrl and the indicated key. Other special key presses are indicated below in square brackets.

General Editing Commands

Key

Description

Notes

z

Undo

 

x

Cut

 

c

Copy

 

v

Paste

 

a

Select all

 

D

Duplicate. Paste the current selection over the prior selection, if it is non-overlapping and legal

1

e

Exchange. Exchange the contents of current selection with the contents of the prior selection

1

y

Swap. If there is no selection, swap the characters on either side of the insertion cursor, and advance the cursor. If the selection has 2 characters, swap them, and advance the cursor.

 

w

Delete preceding word

 

Notes

  1. These commands are a bit unusual: they concern and affect not only the current selection, but also the immediately preceding selection.

Search and Replace

Key

Description

Notes

f

Find. Set the search string from a string entered in a dialog. Then, advance the cursor to the next occurrence of the search string.

 

g

Find again. Advance the cursor to the next occurrence of the search string.

 

h

Set Search String from the selection.

 

j

Replace the next occurrence of the search string with the last replacement made

 

A

Advance argument. Advance the cursor to the next keyword argument, or to the end of string if no keyword arguments remain.

 

J

Replace all occurrences of the search string with the last replacement made

 

S

Replace all occurrences of the search string with the present change text

 

Cancel/Accept

Key

Description

Notes

l

Cancel (also "revert"). Cancel all edits made since the pane was opened or since the last save

 

s

Accept (also "save"). Save the changes made in the current pane.

 

o

Spawn. Open a new window containing the present contents of this pane, and then reset this window to its last saved state (that is, cancel the present window).

 

Browsing and Inspecting

Key

Description

Notes

b

Browse "it" (where "it" is a class name). Opens a new browser.

1

d

Do "it" (where "it" is a Squeak expression)

1

i

Inspect "it": evaluate "it" and open an inspector on the result. ("it" is a Squeak expression). Exception: in a method list pane, i opens an inheritance browser.

1

m

Open a browser of methods implementing "it" (where "it" is a message selector)

1,2

n

Open a browser of methods that send "it" (where "it" is a message selector).

1,2

p

Print "it". Evaluate "it" and insert the results immediately after "it." (where "it" is a Smalltalk expression)

1

B

Set the present browser to browse "it" (where "it" is a class name)

1

E

Open a browser of methods whose source contain strings with "it" as a substring.

1

I

Open the Object Explorer on "it" (where "it" is an expression)

1

N

Open a browser of methods using "it" (where "it" is an identifier or class name)

1

O

Open single-message browser (in selector lists)

1

W

Open a browser of methods whose selectors include "it" as a substring.

1

Notes:

  1. A null selection will be expanded to a word, or to the whole of the current line, in an attempt to do what you want.
  2. For these operations, "it" means the outermost keyword selector in a large selection.

Special Conversions and Processing

Key

Description

Notes

C

Open a workspace showing a comparison of the selection with the contents of the clipboard

 

U

Convert linefeeds to carriage returns in selection

 

X

Force selection to lowercase

 

Y

Force selection to uppercase

 

Z

Capitalize all words in selection

 

Smalltalk Program Data Entry

Key

Description

Notes

q

Attempt to complete the selection with a valid and defined Smalltalk selector. Repeated commands yield additional selectors.

 

r

Recognizer. Invoke the Squeak glyph character recognizer. (Terminate recognition by mousing out of the window)

 

F

Insert 'ifFalse:'

 

T

Insert 'ifTrue:'

 

V

Paste author's initials, date and time.

 

L

Outdent (move selection or line one tab-stop left)

 

R

Indent (move selection or line one tab stop right)

 

[Ctl-return]

Insert return followed by as many tabs as the previous line (with a further adjustment for additional brackets in that line)

 

[shift-delete]

Forward delete. Or, deletes from the insertion point to the beginning of the current word.

 

Bracket Keys

These keys are used to enclose (or un-enclose, if the selection is already enclosed) the selection in a kind of "bracket". Conveniently, double clicking just inside any bracketed text selects the entire text, but not the brackets.

Key

Description

Notes

Control-(

Enclose within ( and ), or remove enclosing ( and )

 

Control- [

Enclose within [ and ], or remove enclosing [ and ]

 

Control- {

Enclose within { and }, or remove enclosing { and }

 

Control- <

Enclose within < and >, or remove enclosing < and >

 

Control- '

Enclose within ' and ', or remove enclosing ' and '

 

Control- "

Enclose within " and ", or remove enclosing " and "

 

Keys for Changing Text Style and Emphasis

Key

Description

Notes

k

Set font

 

u

Align

 

K

Set style

 

1

10 point font

 

2

12 point font

 

3

18 point font

 

4

24 point font

 

5

36 point font

 

6

Brings up a menu, providing choice of color, action-on-click, link to class comment, link to method, url.. To remove these properties, select more than the active part and then use command-0.

 

7

bold

 

8

italic

 

9

narrow (same as negative kern)

 

0

plain text (removes all emphasis)

 

- (minus)

underlined (toggles it)

 

=

struck out (toggles it)

 

_ (a.k.a. shift -)

negative kern (letters 1 pixel closer)

 

+ (a.k.a. shift =)

positive kern (letters 1 pixel further apart)