[Newbies] Modify action bound to shortcut Cmd+p

Nicola Mingotti nmingotti at gmail.com
Thu Jul 25 13:26:39 UTC 2019


Often I would like to copy and paste Workspace code to my GoogleDocuments.

I use frequently the Cmd+p sequence to evaluate and print the value of an expression into the Workspace. 

My issue is that using frequently Cmd+p the syntax highlighter in the Workspace goes nut because it does not understand how the output results fits into the code. 

So, I would like the Cmd+p (or other sequence), could be Cmd+q, to do this for me:

1+2. Cmd+p 3
1+2. Cmd+q "=> 3"

'hello', ' world'. Cmd+p 'hello world'
'hello', ' world'. Cmd+q "=> 'hello world'"

So I would like the output to be preceded by a "=>" string and printed as a Smalltalk comment. 

Do you know how to do it ? 


More information about the Beginners mailing list