[comp.editors] Selecting a region

em@dce.ie (Eamonn McManus) (01/02/91)

kirkenda@cs.pdx.edu (Steve Kirkendall) writes:
>In the next version of Elvis, the "v" key will be used to visibly mark one
>some text for one of the operator commands.  You press "v" and the character
>that the cursor's on will be hilighted.  As you move the cursor around, the
>hilighted area stretches to include all characters between the original
>position and the current cursor position.  When you hit one of the operator
>keys, the operator is *immediately* applied to the hilighted text.
>
>The "Shift-V" key will do the same thing, but it will act on whole lines
>instead of characters.

I think it would be much better if you could provide an argument to the
operator which refers to the selected region.  You could overload the v key
for this; thus dv would delete from the cursor to the mark, and dV would do
the same but in lines.  It is nicer to make the decision about operating on
lines at the time of the operation rather than when starting the selection.
Requiring an argument also means that you can use operators for other
purposes while making the selection.

,
Eamonn