I am trying to create two macros that will jump to next/previous word but only using whitespace as delimiters
A use case for this is that I should be able to use the macro three times to get from one end of this snippet to the other (so it ignores repeated newlines and skips non alphanumeric characters too.
Here is the "jump to previous" macro that I have so far.
But it seems to fail at the end of paragraphs (testing in a DOS 1252 (ANSI - Latin 1) file), always leaving me back at the end of the same line. This may be because I am misunderstanding how \r\n works?
Two other questions:
1) I am trying to write this because control+left arrow/right arrow treats blocks of non alphanumeric characters as delimiters. Is there a macro command to change what UltraEdit treats as delimiters for this purpose?
2) I find that I need the "Key LEFT ARROW" command at the end to make sure the cursor is in the right point.. but that also means I can't use the macro to select text. Any thoughts on how I could accomplish this?
A use case for this is that I should be able to use the macro three times to get from one end of this snippet to the other (so it ignores repeated newlines and skips non alphanumeric characters too.
Code: Select all
z.z,z;z:z'z"z_z-z!z@z#z$z%z^z&z*z(z)z
z.z,z;z:z'z"z_z-z!z@z#z$z%z^z&z*z(z)z
z.z,z;z:z'z"z_z-z!z@z#z$z%z^z&z*z(z)z
Code: Select all
InsertMode
ColumnModeOff
HexOff
PerlReOn
Find RegExp Up Select "[^\s][\s]"
Key LEFT ARROW
Two other questions:
1) I am trying to write this because control+left arrow/right arrow treats blocks of non alphanumeric characters as delimiters. Is there a macro command to change what UltraEdit treats as delimiters for this purpose?
2) I find that I need the "Key LEFT ARROW" command at the end to make sure the cursor is in the right point.. but that also means I can't use the macro to select text. Any thoughts on how I could accomplish this?