Duplicate a line

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Ken

Duplicate a line

Post 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
Andreas

Re: Duplicate a line

Post 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
Frank Fesevur

Re: Duplicate a line

Post 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
Ken

Re: Duplicate a line

Post by Ken »

Where is the file on the site? I didn't see it in the downloads section? Am I not looking carefully?

-- Ken
Ken

Re: Duplicate a line

Post by Ken »

Where is the file on the site? I didn't see it in the downloads section? Am I not looking carefully?

-- Ken
Andreas

Re: Duplicate a line

Post by Andreas »

Go to Add-ons, then Macros.
Andreas
Ken

Re: Duplicate a line

Post by Ken »

Found it, works like a charm!
Post Reply