Observation The fact that in the normal turn of events a shadow tiddler remains a shadow tiddler until edited, then if you remove the plugin that defined that tiddler, the edited tiddler remains, is actually a bonus. Of course there will be cases where you want them deleted such as when removing test data. However it also allows you to edit tiddlers you want to keep in the wiki, and on deleting the plugin tiddler, the tiddlers you never edited will be removed from the wiki, is a useful way to selectively incorporate tiddlers from a repository and remove those you do not need, helping develop leaner wikis.
Regards Tony On Sunday, September 8, 2019 at 4:33:54 PM UTC+10, TonyM wrote: > > Folks, > > I built a Tiddler bundle to display info plugins in Control panel > > Plugins > Info > > Attached, just remove the .txt extension before dropping on a test wiki. > Then if you follow the instructions in my last post you can make your own > info bundle. > > Only one core tiddler is changed for this > example $:/core/ui/ControlPanel/Plugins although others will look as if > they came with the core given I reused the naming standards. > > Regards > Tony > > On Saturday, September 7, 2019 at 10:54:42 PM UTC+10, TonyM wrote: >> >> Jeremy, >> >> For give me for being a bit of a hacker. I have played with making my own >> tiddlers with a plugin-type of info, >> which I note is NOT documented here >> https://tiddlywiki.com/#Plugin%20Fields (perhaps this is understandable) >> >> However I found if I started to import multiple tiddlers, and renamed >> $:/import to tiddlername (Capturing the import json), and modified the >> tiddler type to info (deleting the status field) I created myself a hidden >> plugin - not listed in plugins, containing the batch of tiddlers I almost >> imported. Reloading I had all the shadow tiddlers appearing. Of course If I >> edit a tiddler it looses its bold font in the "info plugin", and overwrites >> the shadow. >> >> Disabling and reloading they are gone, but listed in the new info plugin >> in italics and they open new empty tiddlers. The edited tiddlers from when >> the plugin was active remain in the wiki as regular tiddlers, and can >> actually be deleted, perhaps must be. >> >> Not only has this suddenly shed light on the plugin mechanism but I have >> found away to capture importing tiddlers even from multiple JSON and >> storing them in abeyance and made available when needed by enabling the >> plugin. This has exposed a method by which I can load test data into a >> wiki, or configuration settings. >> >> This info plugin can be dragged and dropped to another wiki. >> Interestingly after importing If I open the "info" plugin (not a plugin >> title), the import mechanism offers to import the tiddlers. If it does so I >> expect It will create standard tiddlers that would override if it where a >> plugin. >> >> Anyway there is a lot of potential here, even if we were to create a new >> tiddler type of say "bundle", that used my proposed import but not get >> replaced as per the idea documented here; >> Suggested Import mechanisium refactor for hackability #4231 >> <https://github.com/Jermolene/TiddlyWiki5/issues/4231> >> >> I can explain further the value in such an mechanism if you wish, but >> perhaps the possibilities are obvious to you. >> >> - Packed data tiddlers >> - Restorable and removable data with a click save and reload to add >> or remove >> - Canned sets of config tiddlers to toggle multiple tiddler states >> - Ability to drag and drop to other wikis, a bundle defined in one >> wiki to another >> - A method by which to host and distribute json files of tiddlers >> (which are not active in the source wiki) without needing to upload >> independant files to the host. >> - A method by which a developer can commit tiddlers into a plugin >> bundle and selectively overwrite tiddlers to release a new version. Once >> happy commit these changes back into the plugin. >> - A way to distribute macros (excluding javascript plugin code) which >> can be selectively activated and deactivated. Especially good for >> designer >> tools. >> >> Apart from the import hackability I expect we would need a mechanism to >> optional delete imported or overwritten (shadow) tiddlers, so they do not >> remain in the wiki after the info plugin is disabled or deleted. And >> perhaps a method to list such pseudo plugins. I wonder if the lack of this >> clean up could cause problems already when people add/edit/delete plugins >> because the overwritten tiddlers will remain as a legacy. >> >> Regards >> Tony >> >> On Saturday, September 7, 2019 at 11:06:37 AM UTC+10, TonyM wrote: >>> >>> Jeremy >>> >>> The idea of temporary plugin sounds interesting! >>> >>> Tony >>> >>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fa6a8728-e014-4282-8b77-e0edc9990a85%40googlegroups.com.

