"interactive" rectangle-editing

"interactive" rectangle-editing

Post by Vilar Cama » Sat, 23 Apr 2005 05:53:08


Hello everyone,

[This question was first posted at gnu.emacs.help, but I got no answers
so far.]

I'm searching for a feature (a minor mode, perhaps?) that allows me a
kind of "interactive" string-insert-rectangle. Restating my question:
Is there a tool that allows me to simultaneously type characters in the
same column of a range of lines, as of each typed character acts as
string-insert-rectangle? Something that also accepts Delete (would act
as delete-rectangle), yank (would also act as string-insert-rectangle),
and so on?

If someone knows the Windows' UltraEdit editor, there's a "Column Mode"
that acts exactly as I want.

Any tips?

--
Best regards,
Vilar Camara Neto
 
 
 

"interactive" rectangle-editing

Post by rgb » Sat, 23 Apr 2005 06:29:53


answers
question:
the
act
string-insert-rectangle),
Mode"

CUA mode has lots of nice rectangle stuff like that. Once in cua
mode type <S-return> to begin the rectangle. I use arrow keys to
create the rectangle. Once created, <return> changes which corner
has your cursor so you can control which side of it your typing
affects. <S-return> again to turn it off.

The comments in cua-mode.el describe all the things possible.
Reverse lines, upcase/downcase, open/close, increment numbers,
align, fill, kill....

 
 
 

"interactive" rectangle-editing

Post by Vilar Cama » Sat, 23 Apr 2005 12:19:09

Great tool, thanks!