Modify action bound to shortcut Cmd+p

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Modify action bound to shortcut Cmd+p

Nicola Mingotti
Hi,

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 ?

bye
Nicola








_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners