More Automate Related Features added:
Based on comments and requests from the testers of this proposed automate feature, the following improvements and changes have been made:
- Added Support for reformatting all CSS to Multiple Line format
- Added Support for reformatting all CSS to Single Line format
- Added Support for running a named Saved Search as ReplaceAll
- Changed the Automate Toolbar to use 3 QToolButtons that when clicked and held will pop-up a menu to allow editing Automate Lists
- Added a new AutomateEditor and support dialogs to allow creation and editing of the 3 automate lists that is based on the approach used in the MetaData editor with buttons
to choose a supported Tool command or an existing/installed plugin, and arrow keys to easily move lines.
All of this has been pushed to master.
To help document things:
The 3 Automate Lists are stored inside the Sigil preferences folder:
automate01.txt
automate02.txt
automate03.txt
Each file is utf-8 encoded with one tool command or plugin name per line.
A leading # indicates a comment.
To run an automate list, simply click on the corresponding robotic arm icon in the Automate Toolbar.
To edit/create an automate list, simply click and hold on the corresponding robotic arm icon in the Automate Toolbar and select Edit from the resulting pop-up menu.
All currently installed Plugins are supported by name.
The Tools now supported:
- AddCover
- CreateHTMLTOC
- DeleteUnusedMedia
- DeleteUnusedStyles
- GenerateNCXGuideFromNav
- GenerateTOC (will create from existing headers without the Heading Editor)
- MendPrettifyHTML
- MendHTML
- ReformatCSSMultipleLines
- ReformatCSSSingleLines
- RemoveNCXGuideFromEpub3
- RepoCommit (Checkpoint)
- RunSavedSearchReplaceAll [full name of a saved search]
- Save
- SplitOnSGFSectionMarkers
- StandardizeEpub (Restructure Epub to Sigil Norm)
- UpdateManifestProperties
- ValidateStylesheetsWithW3C
- WellFormedCheckEpub
I will be sending new test build links out to those who volunteered to test for further feedback and bug reports.
If interested to help out and willing to test and provide feedback, please PM "KevinH" and I will send you a link.
Thanks to all who have provided input on this process. Hopefully it will result in something useful for our more advanced users.
People who build from source your input is, as always, welcomed. Most importantly I am looking for feedback on the following:
Is this automate feature truly useful as implemented?
What additional Tool truly *needs* to be added (if any)?
Is the built-in Automate List Editor adequate given users can
use any text editor to accomplish the same thing easily enough?