[comp.sys.mac] LightspeedC Arrow Key Tricks

singer@endor.harvard.edu (Richard Siegel) (10/20/87)

	A number of people on this newsgroup have requested as a possible
enhancement to the LightspeedC editor the ability to perform movements
of the cursor similar to those available in VI. Since I'm an Emacs user
myself, I am not familiar with VI, but I mentioned these requests to
Mike Kahl.
	
	His response is that there *are* such shortcuts built into 
LightspeedC's editor. It's not by any means a complete subset of the VI
command set, but here's the summary:

	The left, right, up, and down arrow keys move the insertion point
in the appropriate direction. When used in conjunction with the Shift key,
the selection is extended in that direction.

	If you press Option and an arrow key, the insertion point will be
moved to the extreme in that direction; for example, Option-Down Arrow
will move the insertion point to the end of the document, and Option-Left
Arrow will move the insertion point to the beginning of the current line.

	The Option and Shift keys can be used with an arrow key to
do extended selections; for example: Option Shift Right Arrow will
select everything from the current insertion point to the end of
the current line; Option Down Arrow will select everything to the end
of the current file.

Hope these are useful.

		--Rich




**The opinions stated herein are my own opinions and do not necessarily
represent the policies or opinions of my employer (THINK Technologies, Inc).

* Richard M. Siegel | {decvax, ucbvax, sun}!harvard!endor!singer    *
* Customer Support  | singer@endor.harvard.edu			    *
* THINK Technologies, Inc.  (No snappy quote)                       *

smethers@psu-cs.UUCP (Paul Smethers) (10/23/87)

The given arrow commands are a good start.  The first think I would ask for
is to move them to the main keyboard keys (where my fingers are) by, say,
requiring the control or option-control combination to invoke them.  To avoid
conflict with menu commands, I could even live with control-shift for each
command with conjunction to normal keys (I can get used to almost anything
as long as my fingers don't have to leave from the home keys by much).  I'm
sure this would not be hard to add in to the current functionality.

The next step would be to add support for word movements.  All I need is
to move forward or backwords by words so that moving goes a little faster.

If it is possible, the final enhancement would be support for scrolling
the window from a key command.  This is more complicated, so I don't expect
it to be easily added.

VI is nice, but editing from the main keys, in any way, would be nice.

Oh yea, the final request, which somehow gets forgotten in some editors,
is to support key repeat on these commands.

Thanks for listening THINK, we all appreciate the support.