![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
editor chains search and replace
I see there is a way to limit search and replace to current file, but I do not see how to limit search and replace to a highlighted section within a file. Is this possible? Best regards, Pop
|
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
When I was coding it, I was not able to make this option work for some reason I do not remember now (It was 3 years ago). So I ended up abandoning this option because I did not think it would have much value for automation. If you are going to mark text, you are already in interactive mode and can apply calibre saved searches directly.
|
![]() |
![]() |
![]() |
#3 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
Quote:
a list of search and replace? Best regards, Pop |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
No, it will not work.
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,133
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Try this version and see whether it works for you. I gave it a quick go, but I am not willing to dig deeper on this issue.
|
![]() |
![]() |
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,247
Karma: 57979022
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You can select more than 1 SAVED SEARCH, and click Replace all in the Editor. That works for the selected search 'scope'
It is the 'selected text' bit that has me puzzled. If this is repetitive, can't you just make the FIND more refined so that the Selected Text is not needed? |
![]() |
![]() |
![]() |
#7 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
thanks
Quote:
I do my primary writing in the tag editor and no longer employ text editor or word processor. I do a lot of text expansion with calibre's snippets, but they require initiation with ctrl-j afterwords. I have tried out autokey (not autohotkey) but it will not use regex. This works real well for my purposes. It's compact. The top line numbers 1-0 produce four different text expansions for each key press depending on what is around the number: space1space, letter1space, space1letter, letter1space produce four different outputs. So you can input suffixes, prefixes, internal, or free-standing. Best regards, Pop |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Editor Plugin] Editor Chains | capink | Plugins | 94 | 07-03-2024 07:26 PM |
No plugin named Editor Chains found | tatagi | Calibre | 6 | 01-27-2023 09:34 AM |
Regex in search problems (NOT Search&Replace; the search bar) | lairdb | Calibre | 3 | 03-15-2017 07:10 PM |
Missing "function mode" for editor's Search & Replace | atux | Editor | 3 | 01-17-2016 08:40 AM |
Editor - Global Search/Replace of underscore format | Canoe | Editor | 1 | 07-11-2015 10:57 PM |