two questions

Stefan Bruda yellowdog-general@lists.terrasoftsolutions.com
Thu May 22 07:28:01 2003


Hi.

At 07:47 -0400 on 2003-5-22 John Bragazzi wrote:
 >
 > 1) Is there a Linux text editor which allows you to cut rectangular 
 > areas of text and move them around in a file?

Sure, I use XEmacs for this all the time.  M-click drag (Esc click
drag in case your window manager intercepts M-click) selects
rectangularly, C-x r k kills (i.e., cuts) the selected rectangle, and
C-x r y yanks (i.e., pastes) at point the most recently killed
rectangle.  Rectangle operations do not interfere with the normal
kill/yank.

Also explore the menu Cmds -> Rectangles for more commands (in
particular, Cmds -> Rectangles -> Rectangle Mousing will allow you to
select a rectangle just with the normal click-drag).

There might be a lightweight editor out there that does the same, but
I am using XEmacs (the mightiest of them all applications) almost
exclusively anyway so I did not dig any further.

Stefan

-- 
If it was so, it might be; and if it were so, it would be; but as
it isn't, it ain't. That's logic.
    --Lewis Carroll, Through the Looking-Glass