Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 10:02 AM   #1
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,552
Karma: 6774048
Join Date: Nov 2009
Device: many
Allow Plugins to install Automate Lists?

Okay, here is another idea to help allow more complex or better plugins ...

What if we allow Plugins during their initial run to install their own automate lists for the user?

Automate lists allow for an extra parameter to be sent to any plugin. In an automate list you can pass any single line of text as a parameter to a plugin. And remember we now allow any name for an automate list with no real limits and automate lists build a similar launch menu to plugins.

So to make this clearer, one example would be a PrettyPrinterEditPCSS automate list to be installed for the user when PrettyPrinter is first launched. This list would pass an parameter to the PrettyPrinter plugin that would be used to change it from a silent runner of PrettyPrinter to an edit gui mode that would load up the prettyprinter.pcss into a QPlainTextEdit widget to allow the user to edit and change and save the prettyprinter.pcss file.

If we allow a plugin to install its own automate lists into the user's automate area, we can effectively provide a gui for the user to launch the plugin in a way that allows the plugin to use the automate parameter to control what or how the plugin works. In other words provide more than one menu entry for launching plugins.

I rarely use automate now, but something this would extend its usefulness considerably.


Thoughts?

Last edited by KevinH; Yesterday at 10:08 AM.
KevinH is online now   Reply With Quote
Old Yesterday, 11:17 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,552
Karma: 6774048
Join Date: Nov 2009
Device: many
Or, I guess we could allow the plugin.xml to add additional menu entries with the additional menu name provided as a plugin parameter somehow?

Something like:

<addmenu>EditPCSS</addmenu>

The primary menu would always be the plugin name to maintain backwards compatibility but if these addmenu fields are found, then multiple menu entries are created such as:

PrettyPrinter
PrettyPrinter_EditPCSS

Obviously the lack of translation for menu items is already an issue and this would make it worse, but ...

Last edited by KevinH; Yesterday at 12:00 PM.
KevinH is online now   Reply With Quote
Old Yesterday, 11:59 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,552
Karma: 6774048
Join Date: Nov 2009
Device: many
Or, I guess I could punt and look at the list of selected files in BookBrowser and if none are xhtml files, then run in gui mode to edit the pcss. A bit weird but doable without any changes to Sigil plugin management itself.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which plugins are essential to install? AnnieQuinn Calibre 33 12-21-2025 05:44 AM
Sigil 2.7.0 and automate lists Capricorn Sigil 3 12-01-2025 02:02 PM
Can't install plugins in Arch Linux's community sigil package roger64 Plugins 33 05-21-2016 05:06 AM
All user plugins won't install ... Hoods7070 Plugins 6 06-11-2012 08:30 AM
can't figure out how to install plugins zalamander Plugins 2 04-18-2011 08:04 AM


All times are GMT -4. The time now is 07:05 PM.


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