![]() |
#1 |
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Jul 2023
Device: none
|
Problems with searching marked text
1. Open the epub
2. Select the first two lines that begin with <tr> 3. Mark selected text. 4. Regex search for f\d\d Replace all works iff wrap is on or the cursor is before the marked text. This is inconvenient as the cursor is generally at the end of the marked text from selecting. Filter Replacements Table and Dry Run Replace All Table, appear to ignore Marked Text and work on the prior search scope. This is the search I was using. [search_entries] 1\Name=Unnamed Search 1\Find=f\\d\\d 1\Replace= 1\Controls=RX DN AH size=1 |
![]() |
![]() |
![]() |
#2 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,728
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Marked Text is only supported when searching the current file.
Marked Text is not used when using the Filter Replacements Table or DryRunReplace. Those tools are meant for large numbers of instances, otherwise they are not needed. Search direction still matters. Yes if searching down the cursor must be above the marked text. Yes if searching up the cursor must be below the marked text. All search works this way in Sigil. Just try it in the normal Find and Replace window. As soon as you use the Search Menu to Mark Text you can see the target in the FindReplace set to "Marked Text". So your saved AH (All HTML files) target gets automatically replaced. Again searching and replacing using marked text is limited to the Current File (and always has been). Based on my testing with your example, searching in Marked Text works exactly as designed. Last edited by KevinH; 06-24-2025 at 07:23 PM. |
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Jul 2023
Device: none
|
Quote:
A simple workaround would be for mark selected text to move the cursor to the start of the marked text. |
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,728
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Why for a single click which depends on your search direction, or just turn on wrap then where the cursor is at the start does not matter.
Last edited by KevinH; 06-25-2025 at 09:44 AM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
marked without text | carterartist | Library Management | 4 | 09-11-2023 06:50 PM |
Searching for Text in Footnotes | aherinandrianina | Calibre | 1 | 12-05-2018 04:08 AM |
Transforming a marked text | roger64 | Editor | 14 | 05-26-2018 02:24 PM |
Marked text edit problem | MerlinMama | Editor | 5 | 07-29-2014 09:15 AM |
Search and replace with marked text | mrmikel | Editor | 1 | 05-01-2014 02:07 PM |