Looking For A Shortcut?
26 January, 2007
Not all shortcuts in Squeak are Obvious. The Seaside list was just discussing some of them.
It started with Lukas:
Select the string ‘enctype’ and type Apple+Shift+E (maybe also Ctrl+Shift+E, depending on your operating system). This will show you all the methods using this string …
Actually, they are all in the popup menus of pluggable texts morph…
(i) = cmd (or alt or ctrl or pom) + i
(I) = cmd + shift + i
——– here are the most useful for me…
(c) copy – (x) cut – (v) paste (d) do it – (p) print it – (i) inspect it – (I) explore it (s) accept – (L) cancel *(b) browse it*
*(n) senders of it* -*(N) references to it* -*(m) implementors of it* – * selectors containing it *
(E) method *strings* with it…
——— and some other…
(k) set font – (K) set style – (u) set alignment (f) find – (g) find again – (h) set search string (z) undo – (j) do again (replace) (G) file it in – (o) spawn
More from Lukus: (some are duplicates but the discriptions are good)
Anyway, this is a try on of what’s maybe not too obvious in Squeak:
apple+m i*m*plementors of selected selector
apple+n se*n*ders of selected selector
apple+b open a *b*rowser on the selected class (but also works on selectors)
apple+q completes the current selector (if you don’t have eCompletion loaded)
ctrl+t/f inserts if*T*rue:/if*F*alse: into the code
Probably have to swap apple/ctrl/alt/… according to on your OS and your keyboard settings.
ctrl + l/r indent lines left or right
Then Avi contributed Mercury:
Somewhat tangentially, this message inspired me to hack up something I’ve wanted for a while – a single unified search box which does the various class/method/literal searches you constantly need while working in Squeak. Just open the Mercury window (from the world menu), type something in and accept (ctrl-s).
The syntax, for now, is this:
Foo “browse class”
#Foo “refs to class”
Foo* “find a class (substring match)”
foo* “find a method (substring match)”
‘foo’ “find a string literal”
Left click – help – command key help
That was a nice thread. Hope you find it helpful.