Search/replace in bookmarked lines - request?

General questions about using TextPad

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

Post Reply
joekingtp2
Posts: 2
Joined: Sun May 05, 2019 9:28 am

Search/replace in bookmarked lines - request?

Post by joekingtp2 »

I think I've seen some textpad vintage addon that could search and replace only in the bookmarked lines (can't remember where I saw it).

This use case has been something I could use. This idea seems not to be available in any other text editor I know of.

Would this be possible?

Or select bookmarked lines - multiple selections?


I have thought about a convoluted macro to do the search and replace in bookmarked lines. Something like, add a line number to each line, extract the bookmarked lines, search and replace in those lines then replace those lines with the other lines , sort the lines to get back the original order, then remove the starting line number section.
mysig
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I don't recall ever being able to restrict a search to bookmarked lines or to turn bookmarked lines into a selection.
joekingtp2
Posts: 2
Joined: Sun May 05, 2019 9:28 am

Post by joekingtp2 »

https://textpad.com/forums/viewtopic.php?t=4721

'These tools were tested on the English version of TextPad 4.7.2' ...
'Bookmark Replace: perform replace operation with scope = bookmarked lines '
link to file 404
mysig
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

That is a post from 15 years ago relating to an old version of TextPad. The poster offered scripts for another application (AutoIt) to control TextPad. Maybe someone here has a copy of them. Otherwise you might have have to write your own script to do this.
Post Reply