Page 1 of 1

Search/replace in bookmarked lines - request?

Posted: Tue May 07, 2019 3:33 pm
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.

Posted: Wed May 08, 2019 2:47 pm
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.

Posted: Thu May 09, 2019 10:33 pm
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

Posted: Fri May 10, 2019 3:00 pm
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.