Easy way to move text [was: Re: Is there any interest forDrag&Drop...]

Dan Ingalls Dan.Ingalls at disney.com
Wed Apr 19 21:28:16 UTC 2000


Mark Guzdial <guzdial at cc.gatech.edu> wrote...
>At first, I 
>thought you meant that you were supporting text drag-and-drop within 
>a pane (the way that BBedit, Word, etc. do).  That would be VERY 
>useful for moving chunks in a method around.  But reorganizing 
>classes and methods is not something I do often.

Incidentally, although it is a different UI, Squeak has a VERY convenient way to move text around.  A lot of people don't know about it because it is called the...

Exchange command
It's original and current design is to exchange the two most recently selected pieces of text.  So:  double click on one word, double click on another, type cmd-e, and *poof* they get exchanged.  Same for the bodies of two blocks, or two lines, etc.

Now, what many people don't realize is that if the second selection is null -- ie an insertion point -- then this same command will MOVE the entire first selection to the location of insertion point.  Zap.  It's sooo easy.

	- Dan






More information about the Squeak-dev mailing list