by 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.