Move to real beginning / end of a long soft wrapped line

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Move to real beginning / end of a long soft wrapped line

Postby frank grimes » Wed Feb 27, 2013 11:18 am

Hi!

If I have a lline of text that wraps I'd like to use the HOME and END keys to move to the beginning and end of the wrapped line, not the first or last columns. Is this possible?
frank grimes
Newbie
 
Posts: 3
Joined: Tue Feb 26, 2013 1:46 pm

Re: Move to real beginning / end of a long soft wrapped line

Postby Mofi » Wed Feb 27, 2013 12:52 pm

On Windows it is standard that Home sets caret to beginning of currently displayed line independent of real beginning of a line (or paragraph) and key End sets caret at end of currently displayed line.

There is only the configuration setting Home key always goes to column 1 at Advanced - Configuration - Editor - Miscellaneous for controlling if Home sets caret always to column 1 or to first non whitespace character in line except the caret is already at first non whitespace character of the displayed line.

There are the keys Alt+Left to move caret to beginning of previous paragraph and Alt+Right to move caret to beginning of next paragraph. A paragraph in UltraEdit is a sequence of lines delimited by 1 or more blank lines.

If you want to move caret to real beginning or end of a very long and therefore wrapped line by hotkey, you need to define 2 macros stored together into 1 macro file which is configured to be automatically loaded at startup of UltraEdit.

Macro LineHome

UltraEditReOn
Find RegExp Up "%"



Macro LineEnd

UltraEditReOn
Find RegExp "$"



You can use for both macros also PerlReOn instead of UltraEditReOn and use "^" as search string for LineHome. Which hotkeys you assign to these 2 macros is up to you.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4049
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to UltraEdit General Discussion