Skip to content

un-pogaz/Mass-Search-Replace

Repository files navigation

Mass Search/Replace

MobileRead History License calibre Version Status

Mass Search/Replace is a small plugin to facilitate the execution of one or more of your favorite Search and Replace operations to your books metadata.

Each entry in the context menu will launch a list of Search/Replace operations that you have previously set up. Setting up an operation uses the Calibre Search and Replace module.

The plugin has the following features:

  • Editable context menu
  • Editables operations list
  • Error Strategy
  • Quick Search/Replace on various range: Selection, Current Search, Virtual library, Library.
  • Shared Search/Replace operation: set in once, used where you want, edit them and all reference has edited (compatible with Calibre saved Search/Replace system)

Available operation type:

  • Character match
  • Regular expression
  • Replace field

To use a "Shared Search/Replace operation", create and save a operation in the Calibre combo box, or select one that already exist. Important, don't edit any field after having select the "Shared operation" or the link will be broken. To edit a "Shared operation", it will have to be re-registered with the same name in the Calibre saved Search/Replace system. Once the "Shared operation" corrrectly save, the name of this one will appear in operations list.

Special Notes:

  • Uses the Calibre Search/Replace module.
  • You can destroy your library using this plugin. Changes are permanent. There is no undo function. You are strongly encouraged to back up your library before proceeding.

Credits:

  • The icon dialog and the dynamic menus for chains are based on code from the 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)
  • Thanks to capink and its plugin Action Chains without which this one wouldn't exist.

Installation

Open Preferences -> Plugins -> Get new plugins and install the "Mass Search/Replace" plugin. You may also download the attached zip file and install the plugin manually, then restart calibre as described in the Introduction to plugins thread

The plugin works for Calibre 5 and later.

Page: GitHub | MobileRead

Note for those who wish to provide a translation:
I am French! Although for obvious reasons, the default language of the plugin is English, keep in mind that already a translation.



configuration dialog of contextual menu button contextual menu configuration dialog of a operations-list configuration dialog for a Search/Replace operation