11-22-2020, 04:02 PM | #16 |
Custom User Title
Posts: 9,759
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
A very minor visual glitch: "Ask at Runtime" metadata changes cause the cursor to appear like this. Thankfully things are still clickable.
Also, would it be possible to add "Re-apply current sort" as a Calibre action somehow? There's a slight glitch in Calibre where column icons don't immediately update if changed by a plugin. Last edited by ownedbycats; 11-22-2020 at 04:11 PM. |
11-22-2020, 04:27 PM | #17 | |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Definitely - I do sequences that are library specific, e.g. in Books I frequently do the following -- DOCX->EPUB conversion, Count Pages (words), and Modify EPUB. I would never use that in my Media or Movies libraries. BR |
|
Advert | |
|
11-22-2020, 04:36 PM | #18 |
Custom User Title
Posts: 9,759
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Note that the OP states that some tasks (conversion, background tasks) don't work properly.
Last edited by ownedbycats; 11-22-2020 at 04:43 PM. |
11-22-2020, 04:38 PM | #19 | |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
I need a clarification of the problem because it is not clear to me. Also if it helps, if you have view manager plugin installed, you can access whatever view you want (which might help with any sort preference). Last edited by capink; 11-22-2020 at 04:50 PM. Reason: add to the note about calibre actions dialogs |
|
11-22-2020, 04:46 PM | #20 | |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
Also, as noted by ownedbythecats, some actions like conversion don't work for reasons outlined in the opening post. |
|
Advert | |
|
11-22-2020, 04:49 PM | #21 |
Custom User Title
Posts: 9,759
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Example:
1. I have a column icon rule set to display an icon if the Languages field is empty. 2. If I use Action Chains to set the Language field, the icon doesn't immediately disappear. This is a common glitch when plugins change the metadata. 3. So I use "Re-apply current sort" (a default Calibre action, in the Keyboard Shortcuts) and the icons will refresh. |
11-22-2020, 04:52 PM | #22 | |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
And, there are situations where icons aren't refreshed that don't involve plugins - one that comes to mind is when an icon's presence is based on the existence of a specific format, after adding said format the icon doesn't appear without the 'refresh', but if it's removed it disappears immediately BR |
|
11-22-2020, 04:56 PM | #23 |
Custom User Title
Posts: 9,759
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I also occasionally get the glitch when editing from the book list too - I have an icon rule based on a psuedobool composite column, but changing one of the columns that the composite pulls from doesn't always update the icon right away.
|
11-22-2020, 05:13 PM | #24 | |
null operator (he/him)
Posts: 21,111
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
"sine chain" - a block-chain catching a wave BR |
|
11-22-2020, 05:42 PM | #25 | |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
Was not aware of the re-apply sort trick. If you want an action that does that, try this custom action. (Manage modules > create module > copy paste in the module editor, and give the module a name) Code:
from calibre_plugins.action_chains.actions.base import ChainAction class ResortAction(ChainAction): name = 'Re-sort' def run(self, gui, settings, chain): gui.current_view().resort() Last edited by capink; 03-23-2021 at 02:27 PM. |
|
11-23-2020, 08:09 AM | #26 |
Grand Sorcerer
Posts: 6,404
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
I'm giving this plugin a try for some common actions I do, usually to change a couple of metadata values (that I have now in one of my plugins, but I can clean them, perhaps). I'm using calibre portable 5.5 on Windows 10 and I have a couple of problems:
Edit: Second point removed, there was a problem in my column definition. Last edited by Terisa de morgan; 11-23-2020 at 09:21 AM. |
11-23-2020, 09:30 AM | #27 | ||
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
Quote:
If you are applying the template to a text column, I tried your example and it returns the month correctly. (see screens) If you want a pre-defined value that evaluates to current time, there is a checkbox for that, you can use templates but you don't need to. But make sure you have the latest version, because there was a glitch earlier. (see screenshot). Also whenever you hardcode a date value into a date column (does not matter for text columns) using a template, it is better to use a format that will not confuse parse_date (because sometimes it confuses months with days). So use 12-nov-2011 instead of 12-11-2011. (and the formatting will follow your column value as explained above) |
||
11-23-2020, 09:42 AM | #28 |
Grand Sorcerer
Posts: 6,404
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Yes, sorry, as you can see I've removed that point because it was my mistake when defined the date column.
|
11-23-2020, 10:38 AM | #29 | |
Grand Sorcerer
Posts: 12,096
Karma: 7908993
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
11-23-2020, 11:20 AM | #30 |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
In this case we are actually trying to write a template output into a date column. The result of the template is parsed by parse_date before it is written into the date column. Your tip about raw_field certainly applies, but only if we are getting the date value from another date column — which is not always the case — but if it is the case, your way would be the most straightforward way of doing it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Action Chains Resources | capink | Plugins | 66 | 11-10-2024 08:13 PM |
[Editor Plugin] Editor Chains | capink | Plugins | 94 | 07-03-2024 08:26 PM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 04:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 06:25 AM |