Page 1 of 1

Duplicate a line

Posted: Tue Dec 19, 2000 9:18 am
by Ken
Boxer has a command to duplicate a line. You press F2 anywhere on the line. Is there a way to to that in Textpad with F2 or any other key / combination? A macro?

-- Ken

Re: Duplicate a line

Posted: Tue Dec 19, 2000 10:40 am
by Andreas
Record the following keys:
End, Right, Shift-Up, Ctrl-C, Left, Ctrl-V
End + Right positions to the beginning of next line (more safe than Pos1 as Pos1 jumps to First-Non-Blank or First-Char).
Shift-Up then selects the original line,
Ctrl-C puts it to the clipboard,
Left de-selects the line and positions cursor on its beginning
Ctrl-V gets copy of line from clipboard.
HTH
Andreas

Re: Duplicate a line

Posted: Wed Dec 20, 2000 3:54 am
by Frank Fesevur
I've created a macro that you can download from this site. I also requested to implement an internal command for this action

The macro uses the EditCopyLine command.

Regards,
Frank

Re: Duplicate a line

Posted: Fri Dec 22, 2000 8:47 am
by Ken
Where is the file on the site? I didn't see it in the downloads section? Am I not looking carefully?

-- Ken

Re: Duplicate a line

Posted: Fri Dec 22, 2000 8:47 am
by Ken
Where is the file on the site? I didn't see it in the downloads section? Am I not looking carefully?

-- Ken

Re: Duplicate a line

Posted: Sat Dec 23, 2000 11:06 am
by Andreas
Go to Add-ons, then Macros.
Andreas

Re: Duplicate a line

Posted: Tue Dec 26, 2000 2:08 pm
by Ken
Found it, works like a charm!