View Single Post
Old 07-28-2022, 01:48 AM   #900
tamaracks
Connoisseur
tamaracks began at the beginning.
 
tamaracks's Avatar
 
Posts: 53
Karma: 10
Join Date: Jun 2021
Device: Onyx Boox Nova3
Quote:
Originally Posted by capink View Post
Calibre6/PyQt6 has changed the way icons are stored. They are now stored in a resource file instead of a directory. As a result, Action Chains cannot support both default and custom icons by putting them in the same directory. Only custom icons will be supported for Cablire6. I don't think it is worth the effort to bring back support for calibre default icons.
Makes sense. Is there a way for me to pull a copy of the icons from Calibre to load as custom?

Quote:
Originally Posted by capink View Post
Calibre's template dialog supports text as well. Simply type whatever text you want (Using Copy To Clipboard template dialog) and it will be copied to the clipboard.
Ah ha! I think I just got intimidated by all the options in that action, so I wasn't sure if it could be that simple.

Quote:
Originally Posted by capink View Post
Have a look at Editor Chains and see if it helps. It can be integrated with Action Chains. Note, however, that it is not under active development.
That is interesting! I shall have to look into it at some point, but right now, I have a fair amount of automation set up in Sigil. It's just the TagMechanic plugin that I wish could have saved sets of options. But it does do a nice job of searching out tags without my having to make a regex that properly accounts for the opening and closing tag syntax.

Thanks!

Another question: Is there a way to disable an Action Chains menu item if no book is selected? I thought maybe I could test a basic template tag like title for a value, but it seems like the template functions are hanging on to the most recently selected book, even if nothing is selected in the current view. For instance, I have an chain that calls up the metadata view for a book via Calibre Actions. Sometimes I do something beforehand that unselects the books in the view, but I forget and when I run this chain, I get an error about nothing being selected. Just hoping to avoid that.
tamaracks is offline   Reply With Quote