Macro copies selected lines from one file paste to another

Ideas for new features

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

Post Reply
cperilli
Posts: 5
Joined: Tue Aug 09, 2005 1:24 pm
Location: Washington, DC USA

Macro copies selected lines from one file paste to another

Post by cperilli »

Quite often I would like to run a macro that will search for any lines that contain a specific text string, copy the line, switch to a new file (already opened), paste the line, switch back to the original file and continue the macro to the end of file. When I try this it does not matter how many lines the macro finds, only one line gets pasted into the new file. However, cut and paste from file to file works just fine in TextPad 3.2.5 so I keep the old version handy solely to support this function in macros.

It would be very nice if you could restore this capability to copy/paste from file to file within a macro. Thank you.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Why not bookmark the lines (Find | Mark All) and then copy them together (Edit | Copy Other | Bookmarked Lines)?
cperilli
Posts: 5
Joined: Tue Aug 09, 2005 1:24 pm
Location: Washington, DC USA

That works great but...

Post by cperilli »

I sometimes will perform the following in a Macro:

1. Find a line based on search criteria.
2. Copy it.
3. Paste to other file.
4. Modify the pasted line or possibly add one or more lines of "canned" text after the pasted line.
5. Return to original file and allow macro to continue.

The results above can be achieved with the current TextPad using a somewhat different methodology so it's not a big deal. I just got used to the way I could deal with multiple files using the old TextPad so I still use it from time to time. Guess old habits die hard.

Thanks.
Post Reply