Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
// Search upwards for a DOS line termination.
Find Up "^p"
/*! If found, unselect it. The cursor is already on start of the next line.
Key LEFT ARROW followed by Key RIGHT ARROW cannot be used to unselect
the line termination because this could be an empty line and so the
cursor could be moved with right arrow to next line, but not with left
arrow back to previous line depending on the configuration settings.
So a Key HOME is used. But when configuration setting >Home Key always
Goto column 1< is not enabled, the cursor could be moved with first
HOME to first non-white space character. So use HOME again when this
happens. A simple unselect command would be fine. !*/
// No line termination found upwards - set cursor to top of the file.
/*! Empty lines should be ignored. So when the character at start of the
line is a carriage return (decimal code 13) or a line-feed (dec. 10)
move the cursor in column 1 down until a different character is found
or end of file is reached. At end of file nothing is selected. !*/
Key DOWN ARROW
Key DOWN ARROW
/*! Select now everything to next DOS line termination or to end of
file if the cursor is on start of a string at the end of the file. !*/
Find Select "^p"