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 11-20-2020, 02:01 PM   #1
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
[GUI Plugin] Action Chains

Using this plugin you can define action chains that can be run from menu entries or an assigned keyboard shortcut. A chain can contain one or more action(s) that are run sequentially.

Available Actions:
The plugin defines some builtin actions you can use, it also provides a module editor where you can write your own actions using python.
  • Open With: Similar to the open with plugin, but with some modifications. Used in this plugin it allows you to chain it to other actions. e.g. update timestamps
  • Single Field Edit: Allows you to edit the value of a single field for selected books. You can choose the value at run-time, or use a predefined value, or define a template.
  • Search and replace: This action is based on calibre's search and replace and have the same interface, only difference is that it allows you define the values ahead of time in your chain. At run-time, it gets the predefined search/replace values and executes them, giving you the ability to chain it to multiple other actions (other search/replace or other actions).
  • Calibre Actions: This action allows you to choose an action from calibre interface actions, for the purpose of chaining it to other actions.
  • Selection Modifier: This action is useful when chaining actions together as it allows you to change the selections in calibre before an action. There are multiple criteria for modifying the selections. More on this below.
  • Copy to Clipboard: copy book metadata for selected books to clipboard. You choose the data copied by defining a template.
  • Formulas: Excel like formulas. e.g sum, mean, median .... etc. This action leverages calibre template language. Formulas can be entered at runtime or can be predefined. For more on this see this post.
  • Converts books: This uses calibre convert functionality. It allows you to create different conversion profile and chain them to other actions.
  • Run Python Code: For people who can program in python.

Limitations:
  • The chain runs in the main gui thread because some actions cannot run in a thread other than that of the main gui. As a result, the abort button for the progress bar (which is displayed in the status bar) is non responsive, so I removed it. There is currently no way to stop the chain midway.

How to use the plugin:

To make a new chain follow these steps:
  • From the drop-down menu choose the "Add/Modify chains" entry to open the config dialog.
  • In the config dialog press the add button to add a new empty chain.
  • Double click on the name field to give the new chain a name, and optionally choose a sub-menu and an icon.
  • To start adding actions to the chain, press the settings button in the chain row, which will open the add actions dialog.
  • In the add actions dialog, press on the add action button. After this choose and action you want from the actions combo-box. Press the action settings button configure the action.
  • Repeat for all actions you want to add, and then press OK.

Suggested Use Cases:

Here are some tips to help get you started:
  • Chaining multiple search/replace actions to together.
  • Adding a chain to edit the rating value and applying a custom last_rated_date timestamps afterwards. For this chain, you need two actions:
    • for the first action select Single Field Action and configure it by choosing the rating field and ticking the option to ask for value at run-time.
    • Add a second Single Field Action to apply the timestamps to your custom last rated date field. This time set it to a predefined value, then check the option "set to current time".
    Whenever you run this action through the menu or a keyboard shortcut, a rating dialog editor will pop up, choose the rating you want and it will apply to all selected books together with the timestamps.
  • You can take the above idea one step further, by defining 5 chains and assigning each one to a different keyboard shortcut. In each of those chain, instead of letting the chain ask you for a value at run-time, specify a predefined value for each chain, starting with value of ★ for the first chain and repeating for the others until you reach ★★★★★ for the last chain. Each chain can contain an extra action for timestamps as in the previous example. Now you can rate your books with configured shortcuts. To make this easier, there is a copy button that allows you to copy chains.

    Note: you need to insert the selection modifier even if you are using a single metadata edit dialog, as this dialog can change selections through the next and previous buttons, and by applying the selection modifier, it will select all books whose metadata have been updated.
  • You can use the template feature in the Single Field Action to setup persistent composite columns. Note however that while it might improve performance for huge libraries, you lose the convenience of composite columns being updated automatically, so you will have to run the chain periodically to update them.
  • A chain does not have to contain multiple actions, you can have a chain with only one action. For example you can have multiple chains for different copy to clipboard templates. As an example, if you want to copy a format (e.g. epub) path to clipboard, create a chain containing a single copy to clipboard action with the following template:
    Code:
    program: select(formats_paths(),'EPUB')
  • Another action that can be used alone in a chain is the Formulas action. For more on formulas, see this post.
  • You can use the Book List Double Clicked event to change the default action to any calibre action you want, by using the Event Manager to connect the event to a whatever chain you want. For more on this, see this post.

Note on the Selection Modifier Action:
  • Since all the actions are selection dependent, the Modifier Selection Action gives you the option to change the current selection ahead of any action. You can choose only books modified by previous action, or you can specify search criteria to further narrow down you selections
  • If you choose a search to narrow down you selection, this will only change the current view of calibre to results of this search, so you need tick option "select all books in current view" together with the search.
  • Some actions may affect only some of the selected books. For example if you use the bulk metadata editor to remove certain tags, this action will only affect books that have that tags. If you want your next action to apply only to modified books (e.g. you want to add timestamp to only modified books), add a Selection Modifier to change the selections to "books modified by last action".
  • The point above applies to adding new books. If you want to select all books added by last action, add a selection modified right after the add action, with option "Select books modified by last action" checked.
  • For users who have the highlight search setting turned on, the selection modifier will temporarily turn it off, and then restores it back after it finishes. This is done to allow the "select all books in current view" option to work as expected when combined with a search.
  • Starting with version 1.6.0, the plugin introduced a new feature called scopes that can replace the functionality of the selection modifier. Note that not all actions support the new scopes feature, so some actions, most notably Calibre Actions, will still depend on the Selection Modifier specify which book they will act on.

Note on Module Editor:
  • For information on how to write your own actions, see the comments in calibre_plugins.action_chains.actions.base
  • Instead of making a plugin for every small task you want, you can use the module to add a custom action and add it to its own chain, which will get its own menu entry.
  • For examples on how to write a simple custom action, see here. Another example that illustrate how to add a settings dialog to a custom action can be found here.

Conditional execution for chains and actions (branching):
  • For more information on how to implement conditions on chains and actions, that allows for branching, see this post.

Action chains template functions:
  • Action chains define some extra template functions to supplement calibre's template language. You can read more on this here.

Scopes:
  • Starting with version 1.6.0, the plugin introduced a new feature called scopes that can replace the functionality of the selection modifier for actions that support this new feature.

Event Manager
  • Starting with version 0.5.0 actions chains added an event manager where you can configure chains to run in response to events. You can read more on this here.

Action chains API
  • Starting with version 1.4.0 actions chains added an API that enables other plugins to communicate with action chains. You can read more on this here.

Custom actions and events:
  • A list of custom actions and events posted on this thread is maintained here.

Misc tips:
  • A list of some of the tips posted on this thread is maintained here.

Misc links
Editor Chains:
  • A plugin called Editor Chains that can automate editor actions can be found here. Note that is an experimental plugin.

Credits:
  • The icon dialog and the dynamic menus are based on code from the Open With plugin by kiwidude.
  • The Open With action is based on code from Open With plugin by kiwidude.
  • The Calibre Actions is based on code from the Favourites Menu plugin by kiwidude.
  • The module editor is based on calibre editor function editor by Kovid Goyal.
  • The Search and Replace Action is based on calibre's search and replace. (chaley and Kovid Goyal)
  • Special thanks for chaley for introducing multiple modifications to template language and dialog that are used by the plugin.

Installation Notes:
Special Notes:
  • Requires Calibre 6.12.0 or later.

Paypal Donations:
  • If you find this useful please feel free to show your appreciation.

Version History:
Spoiler:

Version 1.20.7 - 31 May 2024
Fix: Regression affecting moving rows.
Update: Chains dialog: Escape button while in filter mode will remove filter and scroll to the currently selected row.

Version 1.20.5 - 25 May 2024
Update: Chains dialog: Add text filtering.

Version 1.20.4 - 8 May 2024
Fix: for book_vars(), set_book_vars(), list_book_vars() get the vars dict from template global_vars.

Version 1.20.3 - 5 May 2024
Misc Fixes.

Version 1.20.2 - 11 April 2024
Fix: https://www.mobileread.com/forums/sh...postcount=1314

Version 1.20.0 - 15 March 2024
Update: Experimental: Run chains in jobs.

Version 1.19.4 - 31 January 2024
Fix: Convert books: Action should not quit if plugin_for_input_format() returns None. This can happen with some supported input formats like zip.
Fix: Single Field Edit: Typo in remove formats.

Version 1.19.2 - 15 January 2024
Update: Basic Scopes: Add checkbox to restrict search to selected books.

Version 1.19.1 - 11 January 2024
Modifications to the "Open With" action.
Bump schema version to 1.9

Version 1.18.19 - 26 November 2023
Fix: incorporate latest calibre fixes for Qt date bugs

Version 1.18.18 - 16 November 2023
Fix: Single Field Edit: Don't reset selected option when changing column. This helps keep templates in place when importing new chains that needs changing column name on the part of the user.

Version 1.18.16 - 8 November 2023
Fix: Qt bug regarding dates https://www.mobileread.com/forums/sh...d.php?t=357069

Version 1.18.15 - 28 October 2023
Update: Allow "Chain Caller" passing _variant_argument.

Version 1.18.13 - 10 September 2023
Fix: https://www.mobileread.com/forums/sh...postcount=1152

Version 1.18.12 - 28 July 2023
Update: Single Field Widgets: Use stacked layout for predefined widgets instead of dynamically creating and deleting the widget.
Update: Add load_plugin() function. Can be used by other plugins that implement on_modules_update().
Fix: Create a new predefined comments button to get around the error: RuntimeError: wrapped C/C++ object of type FlowToolBar has been deleted

Version 1.18.11 - 18 July 2023
Fix: Stretching when resizing the Actions Dialog. submitted by @chaley.

Version 1.18.10 - 17 July 2023
Update: Option to turn off chain progress bar. submitted by @chaley.

Version 1.18.9 - 11 July 2023
Update: New on_modules_update() API function.

Version 1.18.8 - 13 June 2023
Fix: Calibre Actions: Error when populating actions tree caused by SortAction returning int instead of str when calling QAction.text(). See: https://www.mobileread.com/forums/sh...postcount=1109, https://www.mobileread.com/forums/sh...postcount=1114, https://www.mobileread.com/forums/sh...postcount=1115
Update: Run Python Code: Add book_id to container object.

Version 1.18.7 - 24 May 2023
Update: Run Python Code: Add a new mode to run code for each book in the current scope, passes the container of the chosen format (epub or azw3) as an argument.
Update: Chain Caller is no longer experimental.

Version 1.18.6 - 9 April 2023
Fix: Bug when copying a separator.
Fix: Escape ampersands in menu entries.
Fix: Contamination of chain vars.

Version 1.18.5 - 5 March 2023
Update: When condition is not met, add the condition tooltip to the error message
Fix: Chain Variables: PyQt6 migration bug.

Version 1.18.4 - 6 February 2023
Fix: Search and Replace: Fix bug introduced by updates to calibre 6.12.0.

Version 1.18.3 - 30 December 2022
Fix: Chain Caller: don't call refresh_gui.

Version 1.18.2 - 19 December 2022
Fix: Bug in icon download.

Version 1.18.1 - 29 November 2022
Update: Add "Convert Books" Actions.
Fix: Bug in Chain Caller validation.

Version 1.18.0 - 4 November 2022
Update: Changes to support python template functions.
Update: Single Field Edit: Remember last size for interactive dialogs.

Version 1.17.5 - 9 August 2022
Update: update to calibre6 icon themes. Code borrowed from @JimmXinu.

Version 1.17.4 - 17 July 2022
Fix: PyQt6 migration bugs.

Version 1.17.3 - 15 July 2022
Fix: PyQt6 migration bugs.
Update: Modify the API by which other plugins provides resources (actions, events, scopes) to Action Chains. Now all types of plugins can provide resources by defining them in an action_chains.py module in the root directory of the plugin.

Version 1.17.2 - 9 July 2022
Fix: Bug in "Library About To Change" event when library_path is None.

Version 1.17.0 - 7 July 2022
Update: New action: "Run Python Code".
Update: New event: "Shutting Down".
Update: New event: "Library About To Change".

Version 1.16.4 - 29 June 2022
Fix: Export chain not working in PyQt6.

Version 1.16.3 - 10 February 2022
Fix: PyQt6 migration bug.

Version 1.16.2 - 31 January 2022
Fix: Single Field Edit: bug when using template option to add a format.

Version 1.16.1 - 13 January 2022
Fix: PyQt6 migration bug.

Version 1.16.0 - 6 January 2022
Changes for the upcoming PyQt6.

Version 1.15.1 - 1 January 2022
Fix: Regression with user defined templates.

Version 1.15.0 - 1 January 2022
Update: New action: Save/Restore Format.
Fix: Update templates before running template evaluator.
Fix: Error at startup building chain variations.

Version 1.14.0 - 6 November 2021
Update: Event Variants.
Update: Resources are imported from editor plugins as well.

Version 1.13.3 - 29 September 2021
Update: New template functions: book_field(), book_raw_field()
Fix: Vl Tab Changed Event: Improve performance when a tab is being dragged.
Fix: template_dialog_mode not set correctly.

Version 1.13.2 - 27 September 2021
Update: Vl Tab Changed Event: Add option to turn off event if vl tabs are hidden.
Update: Vl Tab Changed Event: Add additional event argument: last_vl.
Fix: Timer Event: Fix timer interval settings not read properly.

Version 1.13.1 - 25 September 2021
Fix: Vl Tab Changed Event: Signal vl_tab_changed is emitted multiple times when a new tab is added.

Version 1.13.0 - 22 September 2021
Update: Events: Add VL Tab Changed event.
Update: Single Field Edit: Disable template box when no field is chosen.

Version 1.12.0 - 27 August 2021
Update: Single Field Edit: Add formats and cover fields.
Update: Integration with Last Modified plugin hibernate mode.

Version 1.11.2 - 16 August 2021
Add restart signal for events dialog.

Version 1.11.0 - 15 August 2021
Update: Add event specific options.
Update: Timer event now configured from the event dialog.

Version 1.11.1 - 16 August 2021
Bug fix.

Version 1.10.0 - 7 August 2021
Update: Events: Add Book List Enter Key Pressed Event.
Update: Events: Rename "Library View Double Clicked" into "Book List Double Clicked". The event now responds to double clicks on the cover grid as well.
Update: Events: Add "Timer" event.
Update: Pressing F2 with multiple selections when active cell is submenu will pop up an input dialog to batch change the submenu for all selected entries.

Version 1.9.3 - 10 July 2021
Fix: Problem with Copy To Clipboard. https://www.mobileread.com/forums/sh...&postcount=608

Version 1.9.2 - 7 July 2021
Fix: Bug with name of "Search and Replace Action"

Version 1.9.1 - 3 July 2021
Update: Chain Caller: Option to pass variables from calling chain.
Update: refresh_gui: Check db.last_modified() before refreshing gui.
Update: New template function last_modified()
Update: Calibre Actions: Minor modifications.

Version 1.9.0 - 16 May 2021
Update: Allow adding separator to submenus.
Update: Calibre Actions: Add device actions.
Minor Fixes.

Version 1.8.10 - 14 May 2021
Fix: Search And Replace: Regression in validation.
Fix: Regression in chain validation.

Version 1.8.9 - 13 May 2021
Fix: Bug: https://bugs.launchpad.net/calibre/+bug/1928321 , https://www.mobileread.com/forums/sh...&postcount=576
Update: Chain Variations (Experimental): Rename _chain_argument into _variant_argument

Version 1.8.8 - 09 May 2021
Fix: Single Field Edit: Fix but where "Clear Value" does not work for the standard date column "timestamp".

Version 1.8.7 - 06 May 2021
Fix: KeyError when validating Open With action.

Version 1.8.6 - 05 May 2021
Fix: Regression in Single Field Edit when processing templates for marked field.
Minor improvements.

Version 1.8.5 - 05 May 2021
Fix: KeyError when having and empty event.

Version 1.8.4 - 05 May 2021
Update: Events: Store event arguments as chain variable _event_args.
Update: New Template Functions: field_names() and field_metadata()
Minor Fixes.

Version 1.8.3 - 27 April 2021
Some modification to allow the Chain Caller to have access to unsaved chains and to the parent chain name.

Version 1.8.2 - 27 April 2021
Update: Experimental: new "Chain Caller" action.
Minor changes.

Version 1.8.0
Update: New template functions: sanitize_path(), cover_path().
Update: Events: New "Calibre Initialized" Event.
Update: Experimental: New chain variation feature.
Update: Open With: Template GPM can be used for command arguments.
Fix: Crash if you delete a row from the actions table with editor open but no action selected.

Version 1.7.2 - 14 April 2021
Fix: Regression that led to chain conditions not being checked when called from keyboard shortcut.
Fix: Pass option to disable QApplication.processEvents() when a "Library View Double Clicked" is activated as it leads to active cell entering edit mode on double click for chains that have more than one action.
Update: Changes to the button delegate to make it behave like a real button.
Update: Search Using Templates: Add option to make template return a list of book ids.

Version 1.7.1 - 13 April 2021
Fix: Regression with conditions because of a missing import.

Version 1.7.0 - 9 April 2021
Update: Add persistent storage for templates. Can be accessed using these new template functions: persistent_vars(), set_persistent_vars(), list_persistent_vars(), delete_persistent_vars(), list_persistent_namespaces(), delete_persistent_namespaces()
Update: Copy To Clipboard: Add option to write to a file.
Update: Chain Variables: Add option to ask for variables at runtime.
Update: Library View Double Clicked: tweak to allow single click edit (action_chains_single_click_edit).
Update: Add a tweak to allow disabling submenu inheriting first action icon (action_chains_default_sub_menu_icon).
Update: Update the way table state is saved to avoid messing it up every-time a new column is added.
Update: Add options to customize scope icon and tooltip.
Update: Add new template function: list_book_vars().

Version 1.6.2 - 4 April 2021
Fix: Template Scopes: Discard book ids not currently present in library.
Minor changes to the icons.

Version 1.6.1 - 2 April 2021
Fix: Scope dialog should not open when double clicking on actions that does not support scopes.
Fix: Bug when importing settings and resources/images file is not present.

Version 1.6.0 - 2 April 2021
Update: Add scopes.
Update: Conditions button is removed and replaced by context menu items.
Fix: Bug with set_book_vars() when running for the first time when configuring a chain.

Version 1.5.2 - 27 March 2021
Update: Actions table: Add button to duplicate actions.

Version 1.5.1 - 26 March 2021
Fix: bug in treecombbox adding extra levels of user actions for every time the delegate is initiated.
Remove to_timestamp as it is made obsolete by the new changes introduced to calibre's format_date().

Version 1.5.0 - 25 March 2021
Fix: Calibre Actions: Bug that allowed choosing two actions if they are not top level items.
Update: Calibre Actions: Add option to wait for jobs started by action to finish before proceeding.
Update: Calibre Actions: Add option to wait for progress bar started by action to finish before proceeding.
Update: Calibre Actions: re-add previously excluded action like add books, remove books, convert books ... etc as they can be used with newly introduced options.
Update: New template function to_timestamp which makes it possible to do date comparisons by converting date to float numbers.
Update: Add new event: Library View Double Clicked.
API changes: Rename some methods.

Version 1.4.3 - 23 March 2021
Fix: Module editor failing to load source if it contains errors (e.g imported objects that no longer exist).
Minor modification to the TemplateBox.
Events: pass singal args to the Event loop.

Version 1.4.2 - 17 March 2021
Update: Single Field Edit: Add identifiers.
Fix: bug when deleting multiple non-contiguous rows.

Version 1.4.1 - 16 March 2021
Fix: Bug with colors in the tree combobox when in dark mode. Thanks to @chaley.

Version 1.4.0 - 15 March 2021
Update: Add a new Action: Search Using Templates.
Update: Change actions/events combobox into tree combobox.
Update: Import/Export: Include schema version plus other minor changes.
Update: Conditions Evaluator: Add option to turn off action validation of conditions are not met. The default as of this version if to verify all actions regardless of conditions unless this option is checked.
Update: (Experimental) Add two API methods: action_chains_resources(), on_action_chains_modules_update(). The first enables other plugins to provide action chains with resources (actions, events, template_functions). The second method makes the modules manager available for other plugins.
Code refactoring.

Version 1.3.3 - 5 March 2021
Fix: Calibre Actions: Always persist non translated strings in settings. This is done to avoid the settings being invalid if the the user switches languages.

Version 1.3.2 - 27 February 2021
Minor changes to TemplateBox.
Minor changes to category_items() template function.

Version 1.3.1 - 26 February 2021
Fix: For chains triggred by events, if conditions are not met, print a message to the status bar instead of an error dialog.
Fix: Single Field Edit: Bug when setting marks from template.
Single Field Edit: Some minor technical changes (pass plugin_action instead of db).

Version 1.3.0 - 21 February 2021
Fix: from_selection() and from_search() formulas always return a constant list of 1,2,3,4,5 when in any template dialog, no just in the formula dialog.
Update: Add new template function: category_items().
Update: Chain Variables: Double clicking the value cell always opens the formula dialog.

Version 1.2.4 - 20 February 2021
Update: Selection Modifier: Add two new options: "Clear Selections", "Select first book in current view"
Update: Add new template function set_book_vars.
Update: Chain Variables: Guarantee order of processing of variables is same as order in table.
Update: Chain Variables: Double clicking value cell will open template dialog if value start with "program:"

Version 1.2.3 - 20 February 2021
Update: Chain Variables: Add option to loop over all books per var in the table.
Update: Chain Variables: Right clicking value cell opens template editor.
Update: Add new template function book_vars to access book specific variables set by custom actions (using chain_loop.set_book_vars). They are no longer accessible from the globals template function, to provide consistent behavior that enables set_globals to work the same everywhere.
Fix: Formulas: Bug with mean value when fed an empty list or a list with no numerical values. It now handles it by returning 0.

Version 1.2.2 - 19 February 2021
Fix: Formulas: Give the template processor access to the chain_vars.
Update: Formulas functions available as part of template_functions and can be accessed from any other action in the plugin.

Version 1.2.1 - 15 February 2021
Minor bug fix.

Version 1.2.0 - 13 February 2021
Fix: Selection modifier: make sure to temporarily turn of search highlighting (if turned on by the user), to allow for the selection of all books in current search only.

Version 1.1.1 - 12 February 2021
Update: Single Field Edit: Setting template output to empty string deletes the column value for all datatypes.

Version 1.1.0 - 12 February 2021
Fix: Single Field Edit: Don't update column value if template returns a value identical to the current value.

Version 1.0.0 - 3 February 2021
Update: Allow Nested sub-menus by using ::: as a separator.
Fix: Single Field Edit: Bug checking enum types when applying templates.
Fix: Importing entries should not allow duplicate chain names as it leads to errors when menus are re-built.

Version 0.7.1 - 26 January 2021
Minor bug fix.

Version 0.7.0 - 26 January 2021
Update: Modify TemplateBox, ConditionsEval, FormulaEditor to use the new changes introduced by chaley that allow adding custom widgets to the Template Dialog, and pass functions to the initiator. Now they all inherit from the calibre's TemplateDialog without the need to re-implement any methods. This makes template functions defined by the plugins more integrated as they can be highlighted and also show their own source and documentation in the appropriate places in Template Editor.
Update: Allow hiding menu entries by putting them in a submenu called invisible.

Version 0.6.5 - 20 January 2021
Update: make disabling menu items based on chain conditions optional.
Fix: Bug where chain conditions are unnecessarily tested for actions without their own condition.

Version 0.6.4 - 18 January 2021
Update: add selection_count template function instead of the old way of pre-calculating selection count as a global_var

Version 0.6.3 - 17 January 2021
Update: Prior to running a chain, only validate actions that have no conditions, or those that have conditions that evaluate to true.

Version 0.6.2 - 11 January 2021
Update: Spanish translation. Thanks to @dunhill

Version 0.6.1 - 3 January 2021
Update: Add formulas action.

Version 0.6.0 - 31 December 2020
Fix: Open with handle books selected with missing formats.
Fix: Conditions Evaluator choose active index instead of first selected book.
Fix: Calculate selection count once in about_to_show_menu when evaluating conditions for chains to prevent the menu from taking long time to show.

Version 0.5.3 - 30 December 2020
Fix: Another regression in icon combobox.
Fix: Regression in check templates.
Fix: Error converting int output from templates.

Version 0.5.2 - 29 December 2020
Fix: Regression in icon combobox.

Version 0.5.1 - 29 December 2020
Minor fixes.

Version 0.5.0 - 26 December 2020
Update: Add event manager.
Update: Add optional icon and tooltip entries in Conditions Dialog.

Version 0.4.0 - 22 December 2020
Update: Add option to disable wait cursor for calibre actions.
Update: Add new action "Chain Variables".
Update: Add support for conditional executions of actions.
Update: Add support for conditional executions of chains.
Update: Add support for the new global template function.
Fix: pre-defined template error with marked field.
Fix: problem in open with action when using multiple selections in windows.

Version 0.3.3 - 19 December 2020
Fix: Problem with Calibre Actions when "Show marked books" is selected.

Version 0.3.2 - 17 December 2020
Minor bug fixes.

Version 0.3.1 - 4 December 2020
Fix: Reset errors after changing action settings.
Minor bug fixes.

Version 0.3.0 - 3 December 2020
Update: Add option to clear value in the single field edit.
Fix: Allow the user to choose undefined predefined values for bool, enumeration and rating field types.
Fix: Multiple other fixes to the single field edit.
Fix: When copying a chain in the customize dialog, ensure the name is unique

Version 0.2.1 - 1 December 2020
Update: make columns movable.
Update: save and restore columns state.

Version 0.2.0 - 29 November 2020
Update: re-write add actions as a table dialog.
Update: re-write config dialog table.

Version 0.1.2 - 23 November 2020
Update: Add marked column to single field edit action.
Fix: Turn off the wait cursor temporarily while single edit field dialog are on.
Fix: Refresh gui after running chain.
Fix: Problem with calibre's show all marked books chaining its name depending on number of marked books, messing up the stored setting in calibre actions.

Version 0.1.1 - 20 November 2020
Fix: Problem with predefined dates set to today.

Version 0.1.0 - 16 November 2020
Initial Release.


Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	3485
Size:	48.8 KB
ID:	183718   Click image for larger version

Name:	2.png
Views:	3548
Size:	62.0 KB
ID:	183719   Click image for larger version

Name:	3.png
Views:	3456
Size:	36.3 KB
ID:	183720   Click image for larger version

Name:	4.png
Views:	3237
Size:	84.0 KB
ID:	183721   Click image for larger version

Name:	5.png
Views:	3277
Size:	49.9 KB
ID:	183722   Click image for larger version

Name:	6.png
Views:	3177
Size:	32.4 KB
ID:	183723   Click image for larger version

Name:	7.png
Views:	2981
Size:	44.7 KB
ID:	183724   Click image for larger version

Name:	8.png
Views:	2996
Size:	19.9 KB
ID:	183725   Click image for larger version

Name:	9.png
Views:	2937
Size:	38.2 KB
ID:	183726  
Attached Files
File Type: zip Action Chains_1.20.7.zip (849.2 KB, 10462 views)

Last edited by capink; 07-02-2024 at 12:37 AM. Reason: Version 1.20.7
capink is offline   Reply With Quote
Old 11-20-2020, 05:18 PM   #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
reserved post.

Last edited by capink; 08-01-2023 at 05:15 PM.
capink is offline   Reply With Quote
Advert
Old 11-20-2020, 11:39 PM   #3
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: 9,770
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
This sounds almost like an exact solution to my post here. Definitely giving it a try.

Early feedback: One small feature that seems to be missing is the ability to add a descriptor/label to actions.

Works pretty well otherwise though. I'm experimenting with the selection modifier so I don't have separate actions for AO3 and FFNet fics.

Also, I found it's helpful to add a Calibre Action to toggle mark on all the books before starting a chain, and then at the very end setting a search to marked:true.

A small suggestion: It might be a good idea to have a custom action to prompt for confirmation for more...destructive action chains, and pressing "no" would halt the entire thing. I guess this could be made with a module though I'm not sure how.

Last edited by ownedbycats; 11-21-2020 at 02:46 AM.
ownedbycats is online now   Reply With Quote
Old 11-21-2020, 08:52 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
Quote:
Originally Posted by ownedbycats View Post
Early feedback: One small feature that seems to be missing is the ability to add a descriptor/label to actions.
Yes. I realized this after I've done it. First I needed to change the order of some actions, so I added drag and drop, but it is not perfect because it does not have visual indication of what is being dragged. So I thought adding identifiers might help.

I am thinking about rewriting it as a table to add identifiers and make changing order easier.

Quote:
Originally Posted by ownedbycats View Post
Also, I found it's helpful to add a Calibre Action to toggle mark on all the books before starting a chain, and then at the very end setting a search to marked:true.
Nice. At least some extra use for Calibre Actions

Quote:
Originally Posted by ownedbycats View Post
A small suggestion: It might be a good idea to have a custom action to prompt for confirmation for more...destructive action chains, and pressing "no" would halt the entire thing. I guess this could be made with a module though I'm not sure how.
As I pointed out in first post, I have not yet settled on how to deal with the control flow. But your request is simple enough to be used as demonstration of how to write custom actions, so here it is:

Code:
from PyQt5.Qt import QWidget, QVBoxLayout, QGroupBox, QTextEdit

from calibre.gui2 import question_dialog
from calibre_plugins.action_chains.actions.base import ChainAction

class ConfirmConfigWidget(QWidget):
    def __init__(self, plugin_action):
        QWidget.__init__(self)
        self._init_controls()

    def _init_controls(self):

        l = QVBoxLayout()
        self.setLayout(l)

        gb = QGroupBox('Confirm message')
        gb_l = QVBoxLayout()
        gb.setLayout(gb_l)

        self.tb = QTextEdit()
        self.tb.insertPlainText('Are you sure you want to proceed?')

        gb_l.addWidget(self.tb)
        l.addWidget(gb)

    def load_settings(self, settings):
        if settings:
            self.tb.setText(settings['message'])

    def save_settings(self):
        settings = {}
        settings['message'] = self.tb.toPlainText()
        return settings

class ConfirmAction(ChainAction):

    name = 'Confirm'

    def config_widget(self):
        return ConfirmConfigWidget

    def run(self, gui, settings, chain):
        message = settings.get('message', 'Are you sure you want to proceed?')
        if not question_dialog(gui, _('Are you sure?'), message, show_copy_button=False):
            raise chain.UserInterrupt

Last edited by capink; 03-23-2021 at 02:27 PM. Reason: typos
capink is offline   Reply With Quote
Old 11-21-2020, 03:41 PM   #5
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: 9,770
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Here's a small glitch I found:

Single Field Edit > Predefined Value > Today on a timestamp column seems to have trouble with timezones.

I'm -4:00 GMT, and running an action at 3:30 pm produces a timestamp of 7:30 pm. Not sure what would happen if I ran it when the timezones are on different dates.

EDIT: Actually, it seems to produce timestamps of the time that the action was created....not the time it was run. Odd.
Attached Thumbnails
Click image for larger version

Name:	2020-11-21 15_35_12-Single Field Edit.png
Views:	2559
Size:	11.2 KB
ID:	183508  

Last edited by ownedbycats; 11-21-2020 at 03:51 PM.
ownedbycats is online now   Reply With Quote
Advert
Old 11-21-2020, 04:09 PM   #6
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
Quote:
Originally Posted by ownedbycats View Post
Here's a small glitch I found:

Single Field Edit > Predefined Value > Today on a timestamp column seems to have trouble with timezones.

I'm -4:00 GMT, and running an action at 3:30 pm produces a timestamp of 7:30 pm. Not sure what would happen if I ran it when the timezones are on different dates.

EDIT: Actually, it seems to produce timestamps of the time that the action was created....not the time it was run. Odd.
Sorry. I made a last minute change before posting that altered it. Can you try this one attached here and report back on it.

Edit: You will have to remove the action and add it again.

Last edited by capink; 11-21-2020 at 04:32 PM. Reason: attached version moved to first post
capink is offline   Reply With Quote
Old 11-21-2020, 04:18 PM   #7
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: 9,770
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Trying to run/edit an existing action changing a datetime column failed with an error, but creating a new one worked with the proper timestamp. Here's the error in case you need it anyways:

Code:
calibre, version 5.5.0
ERROR: Unhandled exception: <b>TypeError</b>:cannot unpack non-iterable datetime.datetime object

calibre 5.5 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Action Chains (0, 1, 0) && Barnes & Noble (1, 2, 16) && Calibre Power Search Plugin (1, 7, 0) && CalibreSpy (1, 0, 83) && Comments Cleaner (1, 3, 0) && Count Pages (1, 11, 0) && Drop Search Results (1, 0, 10) && Embed Comic Metadata (1, 5, 2) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && Extract ISBN (1, 5, 0) && FanFicFare (3, 25, 8) && Fantastic Fiction (1, 4, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 8, 3) && Generate Cover (2, 0, 0) && GetFileName (0, 1, 1) && Goodreads (1, 5, 1) && Import List (1, 5, 1) && Job Spy (1, 0, 188) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 8, 0) && Kobo Utilities (2, 11, 8) && KoboTouchExtended (3, 4, 1) && Library Codes (1, 0, 47) && Manage Series (1, 2, 11) && Modify ePub (1, 6, 1) && MultiColumnSearch (1, 0, 85) && Open With (1, 5, 13) && Quality Check (1, 10, 1) && Reading List (1, 7, 1) && Save To Format (0, 0, 6) && SmartEject (2, 3, 0) && Sum Column (0, 3, 1) && View Manager (1, 6, 0)
Traceback (most recent call last):
  File "calibre_plugins.action_chains.action", line 209, in run_chain
  File "calibre_plugins.action_chains.chain_tools", line 96, in run_loop
  File "calibre_plugins.action_chains.chain_tools", line 79, in run_loop
  File "calibre_plugins.action_chains.actions.single_field", line 378, in run
  File "calibre_plugins.action_chains.dialogs.single_field_widgets", line 1009, in setter
TypeError: cannot unpack non-iterable datetime.datetime object
ownedbycats is online now   Reply With Quote
Old 11-21-2020, 04:26 PM   #8
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
Quote:
Originally Posted by ownedbycats View Post
Trying to run/edit an existing action changing a datetime column failed with an error, but creating a new one worked with the proper timestamp. Here's the error in case you need it anyways:

Code:
calibre, version 5.5.0
ERROR: Unhandled exception: <b>TypeError</b>:cannot unpack non-iterable datetime.datetime object

calibre 5.5 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Action Chains (0, 1, 0) && Barnes & Noble (1, 2, 16) && Calibre Power Search Plugin (1, 7, 0) && CalibreSpy (1, 0, 83) && Comments Cleaner (1, 3, 0) && Count Pages (1, 11, 0) && Drop Search Results (1, 0, 10) && Embed Comic Metadata (1, 5, 2) && EpubCheck (0, 2, 3) && EpubMerge (2, 11, 0) && Extract ISBN (1, 5, 0) && FanFicFare (3, 25, 8) && Fantastic Fiction (1, 4, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 8, 3) && Generate Cover (2, 0, 0) && GetFileName (0, 1, 1) && Goodreads (1, 5, 1) && Import List (1, 5, 1) && Job Spy (1, 0, 188) && Kindle hi-res covers (0, 5, 0) && Kobo Books (1, 8, 0) && Kobo Utilities (2, 11, 8) && KoboTouchExtended (3, 4, 1) && Library Codes (1, 0, 47) && Manage Series (1, 2, 11) && Modify ePub (1, 6, 1) && MultiColumnSearch (1, 0, 85) && Open With (1, 5, 13) && Quality Check (1, 10, 1) && Reading List (1, 7, 1) && Save To Format (0, 0, 6) && SmartEject (2, 3, 0) && Sum Column (0, 3, 1) && View Manager (1, 6, 0)
Traceback (most recent call last):
  File "calibre_plugins.action_chains.action", line 209, in run_chain
  File "calibre_plugins.action_chains.chain_tools", line 96, in run_loop
  File "calibre_plugins.action_chains.chain_tools", line 79, in run_loop
  File "calibre_plugins.action_chains.actions.single_field", line 378, in run
  File "calibre_plugins.action_chains.dialogs.single_field_widgets", line 1009, in setter
TypeError: cannot unpack non-iterable datetime.datetime object
I put the bulk edit widget erroneously in place of the config widget. So any single field action containing timestamps will need to be deleted and re-added again.

Edit: I updated the first post to include the fixed version. Please note that any single field action with date columns will have to be removed and re-added again.

Last edited by capink; 11-21-2020 at 04:29 PM.
capink is offline   Reply With Quote
Old 11-21-2020, 04:30 PM   #9
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: 9,770
Karma: 68326525
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thankfully I only have the one. "Mark as Read" sets #read to yes, #percentread to 100, #lastread to the current time, and pops up a rating dialog.
ownedbycats is online now   Reply With Quote
Old 11-22-2020, 06:17 AM   #10
jbacelar
Interested in the matter
jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.jbacelar ought to be getting tired of karma fortunes by now.
 
jbacelar's Avatar
 
Posts: 421
Karma: 426094
Join Date: Dec 2011
Location: Spain, south coast
Device: Pocketbook InkPad 3
I've tried it with a fairly long searchs and replaces chain, and it works like a charm (ugh! what a break).

Quote:
Originally Posted by capink View Post
I am thinking about rewriting it as a table to add identifiers and make changing order easier.
That will be very useful.

Congratulations! and thank you very much for this magnificent work.
jbacelar is offline   Reply With Quote
Old 11-22-2020, 09:25 AM   #11
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
Quote:
Originally Posted by jbacelar View Post
I've tried it with a fairly long searchs and replaces chain, and it works like a charm (ugh! what a break).
Glad it is of help to you.

Quote:
Originally Posted by jbacelar View Post
That will be very useful.
I will see about this. The current view has the advantage of integrating better with error messages. I am still trying to figure the best way to do this.

Another thing I am not sure about, is whether it makes sense to make the chains library specific, or keep them as they are now. If people have any input about this, I would be interested in hearing it. It might break existing settings though.
capink is offline   Reply With Quote
Old 11-22-2020, 09:32 AM   #12
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
Quote:
Originally Posted by ownedbycats View Post
Thankfully I only have the one. "Mark as Read" sets #read to yes, #percentread to 100, #lastread to the current time, and pops up a rating dialog.
After you are done exploring you should come back and write your own use cases .

One suggestion though, put the rating dialog action first and put a selection modifier with the option "select books modified by last action" right below it, and after that put all the other actions. This way if you press the cancel button on the rating dialog for whatever reason, the rest of actions are not carried out since there are no selection.
capink is offline   Reply With Quote
Old 11-22-2020, 11:29 AM   #13
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 962
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Haven't tried this plugin yet, but it looks really useful!

Quote:
Originally Posted by capink View Post
"select books modified by last action"
How about in addition to select books, you mark books with tag and take a user supplied tag.

This would let you search for marked:usertag after the chain ran to select subsets from different actions within the chain or maybe even reuse previous results within the chain.
compurandom is offline   Reply With Quote
Old 11-22-2020, 12:14 PM   #14
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
Quote:
Originally Posted by compurandom View Post
Haven't tried this plugin yet, but it looks really useful!



How about in addition to select books, you mark books with tag and take a user supplied tag.

This would let you search for marked:usertag after the chain ran to select subsets from different actions within the chain or maybe even reuse previous results within the chain.
Nice idea. I was actually thinking about how to revert to selections from previous actions. My initial thought was to store the selections somewhere. But your idea also works. If calibre mark tool allowed for marking with text, it would have been easy to use it from the "Calibre Action" action.
capink is offline   Reply With Quote
Old 11-22-2020, 12:50 PM   #15
compurandom
Guru
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 962
Karma: 418804
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by capink View Post
If calibre mark tool allowed for marking with text, it would have been easy to use it from the "Calibre Action" action.
I also wish I could see the list of text marks and select them from a menu.
I've thought about writing a plugin to do that, but haven't gotten around to it.
compurandom is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:22 PM.


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