Purpose
This plugin is for regex match and replace it with a function.
Description
You can see the appearance of this plugin in the attachment.
This plugin is divided into three parts, the right side is used to display the print function output. The usefulness of the rest should be obvious at a glance. The splitter between the three parts can be pulled, and it is supported to keep only any one of the three parts.
This plugin only has a button to replace all.
The function of the plugin is still very rudimentary, please use it with caution.
After match all files, replace function will be called use match=None
Warning:
I haven't edited EPUB for a long time since work (and I also prefer Markdown now in my daily life because it works better in version control and file diff).
This plugin is just an implementation of
one of my suggestions. I had suggested this before and KevinH suggested that I implement it as a plugin. Although KevinH listed this feature as the first item on the to-do list, it can be seen that they think the built-in implementation of this feature is complicated. Some time ago I planned to familiarize myself with Qt, so I decided to combine this plan with developing a Sigil plugin, developing a plugin with PyQt. So I developed this.
This plugin is very simple. The editor pane I prepared has no code highlighting and automatic indentation. The principle of code implementation is just a simple exec function. And this plugin only process files in manifest.
And, because I haven't done EPUB related work for a long time, this plugin has only done some basic tests, and has not tested the effect of actual editing.
All kinds of questions are welcome, but there is no guarantee that they will be handled and resolved.
This plugin is released on Github under the GPLv3 license, anyone can develop new plugins based on my plugin.