Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2025, 07:12 PM   #1501
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,902
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Click image for larger version

Name:	2025-05-28 20_09_20-Single Field Edit.png
Views:	33
Size:	13.2 KB
ID:	215901

I notice the predefined fields gets squished and disappears when the dialog is resized. Bug?
ownedbycats is offline   Reply With Quote
Old 05-29-2025, 01:10 PM   #1502
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,902
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Another question: I have a chain with an action (update cached metadata), only valid when device is plugged in. The entire chain is conditional to the connected device name.

When I accidentally run it without reconnecting the device, I get the message about failed validation rather than the condition action.

Is it possible to run the chain conditional first so I get the message reminding myself to reconnect the device?

Click image for larger version

Name:	2025-05-29 14_12_03-Window.png
Views:	38
Size:	72.7 KB
ID:	215924

Click image for larger version

Name:	2025-05-29 14_13_53-Evaluate Condition (only one template dialog allowed).png
Views:	32
Size:	25.7 KB
ID:	215925

Last edited by ownedbycats; 05-29-2025 at 01:14 PM.
ownedbycats is offline   Reply With Quote
Old 05-29-2025, 07:28 PM   #1503
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,194
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by ownedbycats View Post
Another question: I have a chain with an action (update cached metadata), only valid when device is plugged in. The entire chain is conditional to the connected device name.

When I accidentally run it without reconnecting the device, I get the message about failed validation rather than the condition action.

Is it possible to run the chain conditional first so I get the message reminding myself to reconnect the device?

Attachment 215924

Attachment 215925
You need to do 2 things:
  • Turn the action validation off by setting the same condition on the last action and ticking the checkbox "disable action validation if conditions are not met" in the action condition dialog.
  • At the top of the chain, use this custom action. Use the same condition, but change the condition value to empty string.

Last edited by capink; 05-29-2025 at 07:46 PM.
capink is offline   Reply With Quote
Old 05-29-2025, 08:35 PM   #1504
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,902
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
That works.. Can/should I disable the full-chain condition?
ownedbycats is offline   Reply With Quote
Old 05-29-2025, 08:59 PM   #1505
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,194
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Yes. It kinda useless with the current setup.
capink is offline   Reply With Quote
Old 06-08-2025, 12:11 PM   #1506
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,902
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: If a chain uses prompt-for-notification, how does it behave if it's a subchain in a chain caller? Will it stop the parent chain?

(maybe I asked this before )

Last edited by ownedbycats; 06-08-2025 at 12:17 PM.
ownedbycats is offline   Reply With Quote
Old 06-12-2025, 02:18 PM   #1507
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,194
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Yes, it should stop the parent chain.
capink is offline   Reply With Quote
Old 07-01-2025, 01:03 PM   #1508
Clem2605
Connoisseur
Clem2605 began at the beginning.
 
Posts: 52
Karma: 10
Join Date: May 2020
Device: Kobo H2O, Kobo Libra H2O, Boox Tab Ultra C
Is there any way to use the plugin to copy a composite column's content and paste it in another (normal text) column?

Context:
I use a composite 'Sort Column' to sort my books in Calibre, and I use the Calibre Sync plugin to access my books on my phone and my tablet. However, Calibre Sync cannot access composite columns' content. Which means that sorting my books there is pretty inefficient.
So I was wondering if I could create a simple text column where I could paste my sort column's content. I'm not doing that by hand, it's simply not worth it, but could it be done with the action chain plugin? I'm guessing I would use the Copy to Clipboard action for the first part, but how do I paste the content in my new column?

I don't really see another way to do it? I could maybe number the books in the order in which they appear once I've sorted them in Calibre, but I don't see how to even begin to do that, and it would need to be updated way more often than the first option.

If it changes anything:
- I have two libraries in which I would like to implement this column, both have the same sort column name.
- Calibre Sync's sorting is case-sensitive, so I ideally would like to switch to lowercase at some point (I can do that by myself if I use the Copy to Clipbord Action)
Clem2605 is offline   Reply With Quote
Old 07-01-2025, 01:13 PM   #1509
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,902
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Single-field edit, template program: lowercase($#columnname)

Use two $$s if you want raw_field.

Last edited by ownedbycats; 07-01-2025 at 01:19 PM.
ownedbycats is offline   Reply With Quote
Old 07-01-2025, 01:20 PM   #1510
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,626
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by Clem2605 View Post
Is there any way to use the plugin to copy a composite column's content and paste it in another (normal text) column?

Context:
I use a composite 'Sort Column' to sort my books in Calibre, and I use the Calibre Sync plugin to access my books on my phone and my tablet. However, Calibre Sync cannot access composite columns' content. Which means that sorting my books there is pretty inefficient.
So I was wondering if I could create a simple text column where I could paste my sort column's content. I'm not doing that by hand, it's simply not worth it, but could it be done with the action chain plugin? I'm guessing I would use the Copy to Clipboard action for the first part, but how do I paste the content in my new column?

I don't really see another way to do it? I could maybe number the books in the order in which they appear once I've sorted them in Calibre, but I don't see how to even begin to do that, and it would need to be updated way more often than the first option.

If it changes anything:
- I have two libraries in which I would like to implement this column, both have the same sort column name.
- Calibre Sync's sorting is case-sensitive, so I ideally would like to switch to lowercase at some point (I can do that by myself if I use the Copy to Clipbord Action)
Perhaps one option is a "Search and replace" with a regular expression. Something like:
* Search field: Composite column
* Search: (.*?)
* Replace: \1
* Destination field: Text column
Terisa de morgan is offline   Reply With Quote
Old 07-01-2025, 02:50 PM   #1511
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,410
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Terisa de morgan View Post
Perhaps one option is a "Search and replace" with a regular expression. Something like:
* Search field: Composite column
* Search: (.*?)
* Replace: \1
* Destination field: Text column
👍
And this can also do the case conversion.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Editor Plugin] Editor Chains capink Plugins 106 06-17-2025 05:36 PM
Action Chains Resources capink Plugins 77 06-16-2025 12:45 PM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM


All times are GMT -4. The time now is 03:47 AM.


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