Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 04-29-2024, 02:22 PM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 303
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2024-04-29 12-15-52.png
Views:	96
Size:	170.2 KB
ID:	207914  
rjwse@aol.com is offline   Reply With Quote
Old 04-30-2024, 08:19 AM   #2
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,139
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.
capink is offline   Reply With Quote
Advert
Old 04-30-2024, 09:54 AM   #3
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 303
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
Quote:
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.
Thanks for replying. If you (1) mark text, (2) go interactive mode, (3) can you chain
a list of search and replace? Best regards, Pop
rjwse@aol.com is offline   Reply With Quote
Old 04-30-2024, 10:06 AM   #4
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
No, it will not work.
capink is offline   Reply With Quote
Old 04-30-2024, 10:21 AM   #5
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,139
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.
Attached Files
File Type: zip Editor Chains_1.1.8.zip (218.7 KB, 79 views)
capink is offline   Reply With Quote
Advert
Old 04-30-2024, 11:14 AM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,442
Karma: 58055868
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?
theducks is offline   Reply With Quote
Old 04-30-2024, 08:33 PM   #7
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 303
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
Quote:
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.
Thanks for this. I will download and try it. Best regards, Pop
rjwse@aol.com is offline   Reply With Quote
Old 04-30-2024, 08:57 PM   #8
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 303
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
thanks

Quote:
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?
I did not know you could highlight search and replace items! Thanks. You can also select text in the tag browser at the same time (it turns yellow with ctrl-shft-m) and when you hit Replace All it works flawlessly.
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
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2024-04-30 18-50-51.png
Views:	69
Size:	407.6 KB
ID:	207951   Click image for larger version

Name:	Screenshot from 2024-04-30 18-50-21.png
Views:	60
Size:	393.0 KB
ID:	207952  
rjwse@aol.com is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Editor Plugin] Editor Chains capink Plugins 94 07-03-2024 08:26 PM
No plugin named Editor Chains found tatagi Calibre 6 01-27-2023 10:34 AM
Regex in search problems (NOT Search&Replace; the search bar) lairdb Calibre 3 03-15-2017 08:10 PM
Missing "function mode" for editor's Search & Replace atux Editor 3 01-17-2016 09:40 AM
Editor - Global Search/Replace of underscore format Canoe Editor 1 07-11-2015 11:57 PM


All times are GMT -4. The time now is 07:53 PM.


MobileRead.com is a privately owned, operated and funded community.